docker: publish new image and put it in d-compose
This commit is contained in:
parent
907bf2dba0
commit
f37800dcd3
3
Makefile
3
Makefile
|
@ -20,11 +20,12 @@ docker_build:
|
|||
|
||||
docker_publish:
|
||||
docker push ${devicehub_image}
|
||||
docker push ${postgres_image}
|
||||
|
||||
.PHONY: docker
|
||||
docker:
|
||||
$(MAKE) docker_build
|
||||
#$(MAKE) docker_publish
|
||||
$(MAKE) docker_publish
|
||||
@printf "\nimage: ${devicehub_image}\n"
|
||||
@printf "\nimage: ${postgres_image}\n"
|
||||
@printf "\ndocker images built and published\n"
|
||||
|
|
|
@ -4,7 +4,7 @@ services:
|
|||
devicehub:
|
||||
init: true
|
||||
# TODO
|
||||
image: dkr-dsg.ac.upc.edu/devicehub/devicehub:dpp__0fb4fa5b
|
||||
image: dkr-dsg.ac.upc.edu/devicehub/devicehub:dpp_docker__eafcac09
|
||||
#build .
|
||||
environment:
|
||||
- DB_USER=${DB_USER}
|
||||
|
@ -28,7 +28,7 @@ services:
|
|||
- ${SNAPSHOTS_PATH}:/mnt/snapshots:ro
|
||||
|
||||
postgres:
|
||||
image: dkr-dsg.ac.upc.edu/devicehub/postgres:dpp__0fb4fa5b
|
||||
image: dkr-dsg.ac.upc.edu/devicehub/postgres:dpp_docker__eafcac09
|
||||
# 4. To create the database.
|
||||
# 5. Give permissions to the corresponding users in the database.
|
||||
# extra src https://github.com/docker-library/docs/blob/master/postgres/README.md#environment-variables
|
||||
|
|
Reference in New Issue