Skip to content

Commit

Permalink
Makefile: regenerate dockerfiles on start
Browse files Browse the repository at this point in the history
Add dockerfiles used by the docker-compose setup as dependencies of
the `start` target to keep them updated as there are changes to their
dependent files.
  • Loading branch information
bd808 committed Oct 14, 2020
1 parent 3663153 commit 2ab0290
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ PROJECT_DIR := $(dir $(this))
PIPELINE_DIR := $(PROJECT_DIR)/.pipeline
BLUBBEROID := https://blubberoid.wikimedia.org
DOCKERIZE := /srv/dockerize/bin/dockerize
DOCKERFILES := $(PIPELINE_DIR)/local-python.Dockerfile $(PIPELINE_DIR)/dev-nodejs.Dockerfile
DEFAULT_CONTAINERS := web db

help:
Expand All @@ -30,7 +31,7 @@ help:
awk 'BEGIN {FS = ":.*?## "}; {printf "%-20s %s\n", $$1, $$2}'
.PHONY: help

start: .env ## Start the docker-compose stack
start: .env $(DOCKERFILES) ## Start the docker-compose stack
docker-compose up --build --detach ${DEFAULT_CONTAINERS}
.PHONY: start

Expand Down

0 comments on commit 2ab0290

Please sign in to comment.