-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (22 loc) · 756 Bytes
/
Makefile
File metadata and controls
33 lines (22 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
TAG := $$(git describe --tags)
REGISTRY := registry.nersc.gov
PROJECT := als
REGISTRY_NAME := ${REGISTRY}/${PROJECT}/${IMG}
NAME_WEB_SVC := splash_server
IMG_WEB_SVC := ${NAME_WEB_SVC}:${TAG}
REGISTRY_WEB_SVC := ${REGISTRY}/${PROJECT}/${NAME_WEB_SVC}:${TAG}
.PHONY: build
hello:
@echo "Hello" ${REGISTRY}
build_service:
@docker build -t ${IMG_WEB_SVC} -f Dockerfile .
@echo "tagging to: " ${IMG_WEB_SVC} ${REGISTRY_WEB_SVC}
@docker tag ${IMG_WEB_SVC} ${REGISTRY_WEB_SVC}
push_service:
@echo "Pushing " ${REGISTRY_WEB_SVC}
@docker push ${REGISTRY_WEB_SVC}
run_service:
@echo docker run -d -p 80:80 ${REGISTRY_WEB_SVC}
@docker run -d -p 80:80 ${REGISTRY_WEB_SVC}
login:
@docker log -u ${DOCKER_USER} -p ${DOCKER_PASS}