File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed
java/autonomousdb-wallet-secret-sample Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 110
110
<filtering >true</filtering >
111
111
<includes >
112
112
<include >Dockerfile</include >
113
+ <include >Dockerfile.nativeimage</include >
113
114
</includes >
114
115
</resource >
115
116
<resource >
159
160
<version >21.3.0.0</version >
160
161
</dependency >
161
162
</dependencies >
162
- </project >
163
+ </project >
Original file line number Diff line number Diff line change
1
+ FROM ghcr.io/graalvm/graalvm-ce:21.3.0
2
+ RUN gu install native-image
3
+
4
+ RUN mkdir /app
5
+ COPY libs /app/libs
6
+ COPY ${project.artifactId}.jar /app
7
+
8
+ RUN native-image -jar /app/${project.artifactId}.jar -H:Name=/app/${project.artifactId}
9
+
10
+ FROM oraclelinux:8-slim
11
+ RUN mkdir /app
12
+ COPY --from=0 "/app/${project.artifactId}" /app/${project.artifactId}
13
+ WORKDIR /app
14
+
15
+ # The driver will look for the wallet in folder /app/wallet
16
+ # This value must match the one in the mountPath of the container
17
+ # Reference in src/main/k8s/app.yaml
18
+
19
+ CMD ["/app/${project.artifactId}", \
20
+ "-Doracle.net.tns_admin=/app/wallet", \
21
+ "-Doracle.net.wallet_location=/app/wallet", \
22
+ "-Doracle.jdbc.fanEnabled=false"]
You can’t perform that action at this time.
0 commit comments