Docker & Ruby Boilerplate
This repo contains bolierplate for Docker & Ruby applications. It uses
docker-compose to orchestrate the build and TDD process.
See the SlashDeploy blog for more information.
- Download/clone this repo for your project
- Set the image name in
.gitignore. This line ensures
vendor/cacheis committed to source control.
- (Optional) remove
.gitlab-ci.ymlif you're not using GitLab.
make clean test-ci-- things should pass!
- Start coding!
make test-- things should still pass!
make clean test-cito review all changes
docker-compose.yml manages containers for the development and
test cycle. The
app container uses the image that would eventually
go to production. The
tests container is for running quick tests.
The source code directory is mounted as a local volume so there's no
need to rebuild the image to run tests. The
smoke container executes
a smoke test against the