27742db4fb
this repo is a reinitialization with a change in the concept previous repo had git subtree of django-musician and django-orchestra, that was too static for our interest next approach is a script that pulls git repos, and that would be needed if you want to build everything, if not, just with the docker compose you would have enough for running the containers, hence, downloading the images from the docker registry
26 lines
698 B
Makefile
26 lines
698 B
Makefile
project := dkr-dsg.ac.upc.edu/trustchain-oc1-orchestral
|
|
|
|
branch := `git branch --show-current`
|
|
commit := `git log -1 --format=%h`
|
|
tag := ${branch}__${commit}
|
|
|
|
# docker images
|
|
orchestra_image := ${project}/orchestra:${tag}
|
|
musician_image := ${project}/musician:${tag}
|
|
|
|
docker_build:
|
|
docker build -f docker/orchestra.Dockerfile -t ${orchestra_image} .
|
|
docker build -f docker/musician.Dockerfile -t ${musician_image} .
|
|
|
|
docker_publish:
|
|
docker push ${orchestra_image}
|
|
docker push ${musician_image}
|
|
|
|
.PHONY: docker
|
|
docker:
|
|
$(MAKE) docker_build
|
|
$(MAKE) docker_publish
|
|
@printf "\nimage: ${orchestra_image}\n"
|
|
@printf "\nimage: ${musician_image}\n"
|
|
@printf "\ndocker images built and published\n"
|