This is an example project for building Docker images on CircleCI 2.1. This project covers:
- Building Docker images in Docker CI container
- Caching Docker image layers without using potential premium feature
- Testing Docker images using Docker Compose
- Pushing Docker images to Docker Hub Registry
The example application in this project is fairly simple. To launch the app, just run:
$ docker-compose up
Then, you will get Hello World!
if you curl localhost:8000
.
You need to set the following environment variables on CircleCI UI:
DOCKERHUB_USERNAME
DOCKERHUB_PASSWORD
Join a team of freelance writers and write about your favorite technology topics for the CircleCI blog. Read more about the program here.