Skip to content
/ sc-base Public
forked from sem-con/sc-base

Base container for the Semantic Container infrastructure.

License

Notifications You must be signed in to change notification settings

MyPCH/sc-base

 
 

Repository files navigation

Base Container

Semantic Containers enable secure and traceable data exchange between 2 parties.

more infos and documentation: https://ownyourdata.eu/en/semcon

Usage

Get the image for the base container from Dockerhub: https://hub.docker.com/r/semcon/sc-base/

Perform the following steps to start the base container:

  1. Start the container
    docker run -d -p 3000:3000 semcon/sc-base
  2. Initialize the container
    curl -H "Content-Type: application/json" -d "$(< init.json)" -X POST http://localhost:3000/api/desc
  3. Write data into the container
    curl -H "Content-Type: application/json" -d '{"my": "data"}' -X POST http://localhost:3000/api/data
  4. Read data from container
    curl http://localhost:3000/api/data
  5. create image with data
    docker commit container_name semcon/data-example
    and afterwards you can start the container and access the data:
    docker run -d -p 3001:3000 semcon/data-example
    curl http://localhost:3001/api/data

Improve the Base Container

Please report bugs and suggestions for new features using the GitHub Issue-Tracker and follow the Contributor Guidelines.

If you want to contribute, please follow these steps:

  1. Fork it!
  2. Create a feature branch: git checkout -b my-new-feature
  3. Commit changes: git commit -am 'Add some feature'
  4. Push into branch: git push origin my-new-feature
  5. Send a Pull Request

 

Lizenz

MIT License 2018 - OwnYourData.eu

About

Base container for the Semantic Container infrastructure.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 98.7%
  • Other 1.3%