Skip to content
Snippets Groups Projects
Commit 3c529047 authored by Michele Alberti's avatar Michele Alberti
Browse files

[docker] Add Makefile target for pushing an image to the LAISER account on docker hub.

parent 610bddc2
No related branches found
No related tags found
No related merge requests found
...@@ -20,13 +20,17 @@ ...@@ -20,13 +20,17 @@
# # # #
########################################################################## ##########################################################################
.PHONY: all .PHONY: pub push
all: Dockerfile all: Dockerfile
@echo "You may want to consider adding ARGS=--no-cache to force" @echo "You may want to consider adding ARGS=--no-cache to force"
@echo "Docker to rebuild all layers." @echo "Docker to rebuild all layers."
docker build . -t laiser/caisar:pub -f $^ --rm docker build . -t laiser/caisar:pub -f $^ --rm
push: all
@echo "You may need to execute 'docker login' beforehand."
docker push laiser/caisar:pub
Dockerfile: Makefile Dockerfile.template env.template Dockerfile: Makefile Dockerfile.template env.template
sed 's|@UBUNTU_OPAM_BASE@|ocaml/opam:ubuntu-ocaml-4.13|g' Dockerfile.template | \ sed 's|@UBUNTU_OPAM_BASE@|ocaml/opam:ubuntu-ocaml-4.13|g' Dockerfile.template | \
sed 's|@ENV@|$(shell cat env.template)|g' | \ sed 's|@ENV@|$(shell cat env.template)|g' | \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment