Skip to content

Commit

Permalink
Add tiny docker-compose rebuild script (letsencrypt#2039)
Browse files Browse the repository at this point in the history
For rebuilding when base images change, also adds some extra detail to README.md detailing when/why it should be used.
  • Loading branch information
Roland Bracewell Shoemaker authored Jul 13, 2016
1 parent 217b79b commit 8787c77
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ Or, using docker-compose:

docker-compose up

If a base image changes (i.e. `letsencrypt/boulder-tools`) you will need to rebuild
images for both the boulder and bhsm containers and re-create them. The quickest way
to do this is with this command:

./docker-rebuild.sh

Slow start
----------

Expand All @@ -36,7 +42,7 @@ install RabbitMQ from https://rabbitmq.com/download.html to get a
recent version. If you want to save some trouble installing MariaDB and RabbitMQ
you can run them using Docker:

docker-compose up -d bmysql brabbitmq
docker-compose up -d bmysql brabbitmq bhsm

Also, Boulder requires Go 1.5. As of September 2015 this version is not yet
available in OS repositories, so you will have to install from https://golang.org/dl/.
Expand Down
11 changes: 11 additions & 0 deletions docker-rebuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash -ex
# Stop any running boulder containers
docker-compose stop
# Rebuild anything that has changed since the last run
docker-compose build
# If docker-compose run is used before using `up -d` docker will
# default to using old containers built from previous images
# (if anything has changed). `up` takes any changes in configuration
# or image into consideration when choosing which containers to
# bring back up and will recreate any that are out of date
docker-compose up -d

0 comments on commit 8787c77

Please sign in to comment.