Skip to content

Latest commit

 

History

History
59 lines (35 loc) · 2.29 KB

README.md

File metadata and controls

59 lines (35 loc) · 2.29 KB

Whale of a Time

This repository explores all the typical Docker-related operations within CI builds.

In these samples, we will be using CircleCI for our CI builds.

Please see the various workflows declared in .circleci/config.yml for examples.

Notes

Some of these examples can really be simplified by using many of the orbs offered by CircleCI! In particular, we could simplify our lives with the powerful Docker orb.

However, in these examples, I would like to keep it as 'low-tech' as possible.

Example workflows

build_test_publish

This workflow builds a custom Nginx image, tests that our image can be spin up before publishing to a image repository (Docker Hub in this case).

Bonus: We also take a screenshot of the custom Nginx server's web page here

The published image is hosted in Docker Hub.

dockeri.co

Features:

  • docker image build
  • docker container run
  • dockerize tool
  • docker image push
  • docker cp

Build for custom nginx

See sample build

compose_tests

This workflow spins up 2 containers of a fictional service (1 DB, 1 web app) via Docker-Compose, and runs integration tests (Newman) against the web app.

Features:

Build for docker compose tests

See sample build