Docker & Node Boilerplate
This repo uses
docker-compose to orchestrate the
build and test process. See the SlashDeploy blog for more
- Download/clone this repo for your project
- Set the Docker image name in
- (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 test the final Docker image
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