Skip to content
forked from cyber-dojo/saver

repo for the cyberdojo/saver Docker image; a cyber-dojo microservice

License

Notifications You must be signed in to change notification settings

diegopego/saver

 
 

Repository files navigation

CircleCI

  • The source for the cyberdojo/saver Docker image.
  • A docker-containerized micro-service for cyber-dojo.
  • An HTTP Ruby Sinatra web service, offering a Group/Kata model+persistence API.

Development

To build the images, bring up the containers, and wait till they are alive and healthy:

$ ./build.sh && ./up.sh && ./wait.sh

To run the tests:

$ ./test.sh --help
Use: ./test.sh [server|client] [ID...]

No options runs all server tests, then all client tests

Options:
   server      run from inside the server container (unit tests)
   client      run from inside the client container (integration tests)
   ID...       run only the tests matching the given IDs
   -h|--help   show this help
  • The build.sh script (re)creates docker-compose.yml
  • In docker-compose.yml, the source and test dirs are volume-mounted over their image counterparts.
  • These overlays keeps the dev-cycle fast by reducing the need to build/up/wait.
  • You need to build/up/wait when:
    • You change a Dockerfile
    • You change a web server's config (there is no auto-reloading)

Group

Kata

Probe


cyber-dojo.org home page

About

repo for the cyberdojo/saver Docker image; a cyber-dojo microservice

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 89.0%
  • Shell 10.6%
  • Dockerfile 0.4%