-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
27 lines (25 loc) · 1.33 KB
/
Makefile
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
#################################
# Docker targets
#################################
.PHONY: images
images:
@echo "Building docker images..."
docker build -t "${HUB_NAMESPACE}chainsail-celery-worker:latest" -f ./docker/celery/Dockerfile .
docker build -t "${HUB_NAMESPACE}chainsail-scheduler:latest" -f ./docker/scheduler/Dockerfile .
docker build -t "${HUB_NAMESPACE}chainsail-nginx:latest" -f ./docker/nginx/Dockerfile .
docker build -t "${HUB_NAMESPACE}chainsail-user-code:latest" -f docker/user-code/Dockerfile .
docker build -t "${HUB_NAMESPACE}chainsail-httpstan-server:latest" -f docker/httpstan-server/Dockerfile .
docker build -t "${HUB_NAMESPACE}chainsail-mpi-node-k8s:latest" -f docker/node/Dockerfile .
docker build -t "${HUB_NAMESPACE}chainsail-mcmc-stats-server:latest" -f docker/mcmc-stats-server/Dockerfile .
@echo "Done."
.PHONY: push-images
push-images: images
@echo "Pushing docker images..."
docker push "${HUB_NAMESPACE}chainsail-celery-worker:latest"
docker push "${HUB_NAMESPACE}chainsail-scheduler:latest"
docker push "${HUB_NAMESPACE}chainsail-nginx:latest"
docker push "${HUB_NAMESPACE}chainsail-user-code:latest"
docker push "${HUB_NAMESPACE}chainsail-httpstan-server:latest"
docker push "${HUB_NAMESPACE}chainsail-mpi-node-k8s:latest"
docker push "${HUB_NAMESPACE}chainsail-mcmc-stats-server:latest"
@echo "Done."