Skip to content

Commit ef2098e

Browse files
author
Pawel Josefsson
committed
using UBI
1 parent 0735f64 commit ef2098e

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

run/helloworld/pom.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,24 @@ limitations under the License.
8383
<version>3.3.1</version>
8484
<configuration>
8585
<from>
86-
<image>registry.access.redhat.com/ubi8/openjdk-17-runtime</image>
86+
<!-- https://catalog.redhat.com/software/containers/ubi8/openjdk-17-runtime/618bdc5f843af1624c4e4ba8 -->
87+
<!-- export IMAGE_DIGEST="@$(skopeo inspect docker://registry.access.redhat.com/ubi8/openjdk-17-runtime:latest |jq -r .Digest)" -->
88+
<image>registry.access.redhat.com/ubi8/openjdk-17-runtime@${env.IMAGE_DIGEST}</image>
8789
</from>
8890
<to>
8991
<image>registry:5000/jib/helloworld</image>
9092
</to>
9193
<container>
9294
<creationTime>USE_CURRENT_TIMESTAMP</creationTime>
93-
<user>1001</user>
9495
<entrypoint>INHERIT</entrypoint>
96+
<appRoot>/deployments</appRoot>
97+
<environment>
98+
<JAVA_CLASSPATH>@/deployments/jib-classpath-file</JAVA_CLASSPATH>
99+
<JAVA_MAIN_CLASS>@/deployments/jib-main-class-file</JAVA_MAIN_CLASS>
100+
</environment>
101+
<labels>
102+
<base-image-ref>registry.access.redhat.com/ubi8/openjdk-17-runtime@${env.IMAGE_DIGEST}</base-image-ref>
103+
</labels>
95104
</container>
96105
</configuration>
97106
</plugin>

0 commit comments

Comments
 (0)