-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.yaml
61 lines (61 loc) · 1.73 KB
/
build.yaml
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
53
54
55
56
57
58
59
60
61
apiVersion: apps/v1
kind: Deployment
metadata:
name: aai-container-build
labels:
app: aai-container-build
spec:
replicas: 1
selector:
matchLabels:
app: aai-container-build
template:
metadata:
labels:
app: aai-container-build
spec:
containers:
- name: sapporo-web
# use the Docker image built by the build job
image: ghcr.io/AASCTC/sapporo-web:latest
ports:
- name: http
containerPort: 80
# define the build job
initContainers:
- name: sapporo-web
image: docker:20.10
volumeMounts:
- name: sapporo-web-source
mountPath: /app
command: ['docker']
args: ['build', '-t', 'ghcr.io/AASCTC/sapporo-web:latest', '/app/modules/sapporo-web']
volumes:
- name: sapporo-web-source
configMap:
name: sapporo-web-source-config
items:
- key: sapporo-web-source.tar.gz
path: sapporo-web.tar.gz
- name: sapporo-service
# use the Docker image built by the build job
image: ghcr.io/AASCTC/sapporo-service:latest
ports:
- name: ga4gh-workflow
containerPort: 1122
# define the build job
initContainers:
- name: sapporo-service
image: docker:20.10
volumeMounts:
- name: sapporo-service-source
mountPath: /app
command: ['docker']
args: ['build', '-t', 'ghcr.io/AASCTC/sapporo-service:latest', '/app/modules/sapporo-service']
volumes:
- name: sapporo-service-source
configMap:
name: sapporo-service-source-config
items:
- key: sapporo-service-source.tar.gz
path: sapporo-service.tar.gz