forked from dhis2/dhis2-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jib.yaml
41 lines (34 loc) · 1017 Bytes
/
jib.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
apiVersion: jib/v1alpha1
kind: BuildFile
from:
image: ${baseImage}
platforms:
- architecture: "amd64"
os: "linux"
- architecture: "arm64"
os: "linux"
creationTime: ${timestamp}
format: Docker
environment:
"CATALINA_OPTS": "-Dcontext.path=''"
labels:
"DHIS2_VERSION": ${dhis2Version}
"DHIS2_BUILD_REVISION": ${gitCommit}
"DHIS2_BUILD_BRANCH": ${gitBranch}
user: ${imageUser}
layers:
entries:
- name: "WAR"
properties:
files:
- src: ${unarchivedWarDir}
dest: ${imageAppRoot}
- src: "dhis-2/dhis-web-server/src/main/jib/usr/local/tomcat/conf/server.xml"
dest: "/usr/local/tomcat/conf/server.xml"
- src: "dhis-2/dhis-web-server/src/main/jib/usr/local/tomcat/conf/Catalina/localhost"
dest: "/usr/local/tomcat/conf/Catalina/localhost"
- src: "dhis-2/dhis-web-server/src/main/jib/opt/dhis2"
dest: "/opt/dhis2"
properties:
user: ${imageUser}
group: ${imageUser}