refactor Makefile
- use ereuse project (to avoid confusion between devicehub project and devicehub image) - facilitate the docker image URL on the make docker_build
This commit is contained in:
parent
2c4b0006cc
commit
6a58dcc68f
11
Makefile
11
Makefile
|
@ -1,4 +1,4 @@
|
|||
project := dkr-dsg.ac.upc.edu/devicehub
|
||||
project := dkr-dsg.ac.upc.edu/ereuse
|
||||
|
||||
branch := `git branch --show-current`
|
||||
commit := `git log -1 --format=%h`
|
||||
|
@ -17,6 +17,11 @@ docker_build:
|
|||
docker build -f docker/postgres.Dockerfile -t ${postgres_image} .
|
||||
# DEBUG
|
||||
#docker build -f docker/postgres.Dockerfile -t ${postgres_image} . --progress=plain --no-cache
|
||||
@printf "\n##########################\n"
|
||||
@printf "\ndevicehub image: ${devicehub_image}\n"
|
||||
@printf "postgres image: ${postgres_image}\n"
|
||||
@printf "\ndocker images built\n"
|
||||
@printf "\n##########################\n\n"
|
||||
|
||||
docker_publish:
|
||||
docker push ${devicehub_image}
|
||||
|
@ -26,6 +31,4 @@ docker_publish:
|
|||
docker:
|
||||
$(MAKE) docker_build
|
||||
$(MAKE) docker_publish
|
||||
@printf "\nimage: ${devicehub_image}\n"
|
||||
@printf "\nimage: ${postgres_image}\n"
|
||||
@printf "\ndocker images built and published\n"
|
||||
@printf "\ndocker images published\n"
|
||||
|
|
Reference in New Issue