mintel / build-harness

🤖Collection of Makefiles to facilitate building Python/Golang projects, Dockerfiles, and more
Apache License 2.0
2 stars 6 forks source link

Add ability to set dev compose file which will be used additionally #8

Closed charlieparkes closed 4 years ago

charlieparkes commented 4 years ago

For example, you can now do this in your makefile

export COMPOSE_SERVICE_NAME=workflow
export COMPOSE_FLAGS?=-f docker/docker-compose.dev.yaml

-include $(shell curl -sSL -o .build-harness "https://raw.githubusercontent.com/mintel/build-harness/master/templates/Makefile.build-harness"; echo .build-harness)
charlieparkes commented 4 years ago

without setting COMPOSE_PROJECT_NAME in your makefile, the services will now be named as so:

Creating svc_1966417_501_gateway-cache_1 ... done
Creating svc_1966417_501_gateway-db_1    ... done
Creating svc_1966417_501_gateway_1       ... done
svc_1966417_501_gateway-cache_1 is up-to-date
svc_1966417_501_gateway-db_1 is up-to-date
svc_1966417_501_gateway_1 is up-to-date