-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (20 loc) · 733 Bytes
/
Makefile
File metadata and controls
27 lines (20 loc) · 733 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
TAG := $$(git describe --long)
REGISTRY := registry.nersc.gov
PROJECT := als
REGISTRY_NAME := ${REGISTRY}/${PROJECT}/${IMG}
NAME_WEB_SVC := splash_userservice
IMG_WEB_SVC := ${NAME_WEB_SVC}:${TAG}
REGISTRY_WEB_SVC := ${REGISTRY}/${PROJECT}/${NAME_WEB_SVC}:${TAG}
NAME_POLLER := splash_ingest_poller
IMG_POLLER := ${NAME_POLLER}:${TAG}
REGISTRY_POLLER := ${REGISTRY}/${PROJECT}/${NAME_POLLER}:${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}