Created
April 10, 2015 05:09
-
-
Save angch/5e56e73032885822f089 to your computer and use it in GitHub Desktop.
Makefile for docker-compose to pull images from docker-compose.yml properly.
This file contains hidden or 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
.PHONY: pull up start all | |
all: pull up | |
pull: | |
grep image docker-compose.yml | grep -v -E "^#" | awk '{print $$2}' | xargs -n1 docker pull | |
up: | |
docker-compose up -d | |
start: | |
docker-compose start -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment