forked from Qiskit/qiskit-serverless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (39 loc) · 1.7 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# =========
# Constants
# =========
version=latest
repository=icr.io/quantum-public
ifeq ($(shell uname -p), arm)
arch="arm64"
else
arch="amd64"
endif
notebookImageName=$(repository)/quantum-serverless-notebook
rayNodeImageName=$(repository)/quantum-serverless-ray-node
gatewayImageName=$(repository)/quantum-serverless-gateway
repositoryServerImageName=$(repository)/quantum-repository-server
# =============
# Docker images
# =============
build-and-push: build-all push-all
build-all: build-notebook build-ray-node build-gateway build-repository-server
push-all: push-notebook push-ray-node push-gateway push-repository-server
build-notebook:
docker build -t $(notebookImageName):$(version) -f Dockerfile-notebook .
build-ray-node:
docker build -t $(rayNodeImageName):$(version) --build-arg TARGETARCH=$(arch) -f Dockerfile-ray-node .
docker build -t $(rayNodeImageName):$(version)-py310 --build-arg TARGETARCH=$(arch) --build-arg IMAGE_PY_VERSION=py310 -f Dockerfile-ray-node .
docker build -t $(rayNodeImageName):$(version)-py39 --build-arg TARGETARCH=$(arch) --build-arg IMAGE_PY_VERSION=py39 -f Dockerfile-ray-node .
docker build -t $(rayNodeImageName):$(version)-py38 --build-arg TARGETARCH=$(arch) --build-arg IMAGE_PY_VERSION=py38 -f Dockerfile-ray-node .
build-gateway:
docker build -t $(gatewayImageName):$(version) -f ./gateway/Dockerfile .
build-repository-server:
docker build -t $(repositoryServerImageName):$(version) -f ./repository/Dockerfile .
push-notebook:
docker push $(notebookImageName):$(version)
push-ray-node:
docker push $(rayNodeImageName):$(version)
push-gateway:
docker push $(gatewayImageName):$(version)
push-repository-server:
docker push $(repositoryServerImageName):$(version)