This repository has been archived by the owner on Jul 3, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 'vagrant provision' for docker build/run
The docker 'reprovision' is not clever enough to kill it's previous incarnations, so manually do this in our docker 'setup step'. This means 'vagrant provision' will rebuild and rerun the end-result container, allowing us to iterate on the Dockerfile without destroy/up. This takes the process down to 8m-ish, over 20m-ish.
- Loading branch information
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,10 @@ cat > /etc/default/docker << 'EOF' | |
DOCKER_OPTS="-H 0.0.0.0:#{DOCKER_PORT} -H unix:///var/run/docker.sock" | ||
EOF | ||
service docker restart | ||
sleep 5 | ||
This comment has been minimized.
Sorry, something went wrong. |
||
(docker stop accelerated-claims ) >/dev/null 2>&1 | ||
(docker rm accelerated-claims || exit 0) >/dev/null 2>&1 | ||
(docker rmi -f accelerated-claims || exit 0) >/dev/null 2>&1 | ||
This comment has been minimized.
Sorry, something went wrong.
ashb
Contributor
|
||
CONF | ||
|
||
unless Vagrant.has_plugin?("vagrant-cachier") | ||
|
I wonder how could we get around this ... somehow I'm not a fan of this :-)