Skip to content

Sample CI workflows around using Docker (e.g., publishing, compose, caching). Whale be fun.

Notifications You must be signed in to change notification settings

kelvintaywl/whale-of-a-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


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

About

Sample CI workflows around using Docker (e.g., publishing, compose, caching). Whale be fun.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published