This repository was archived by the owner on Feb 15, 2023. It is now read-only.
File tree 4 files changed +9
-23
lines changed
4 files changed +9
-23
lines changed Original file line number Diff line number Diff line change 9
9
10
10
steps :
11
11
- uses : actions/checkout@v2
12
- - name : Set up JDK 1.8
12
+ - name : Set up JDK 17
13
13
uses : actions/setup-java@v1
14
14
with :
15
- java-version : 1.8
15
+ java-version : 17
16
16
- name : Build with Maven
17
17
run : mvn -B package --file pom.xml
18
18
- name : Run unit test with Surefire
Original file line number Diff line number Diff line change 1
- # IBM Java SDK UBI is not available on public docker yet. Use regular
2
- # base as builder until this is ready. For reference:
3
- # https://github.com/ibmruntimes/ci.docker/tree/master/ibmjava/8/sdk/ubi-min
4
-
5
- FROM ibmjava:8-sdk AS builder
1
+ FROM registry.access.redhat.com/ubi8/openjdk-17:1.11 AS builder
6
2
LABEL maintainer="IBM Java Engineering at IBM Cloud"
7
3
4
+ USER root
8
5
WORKDIR /app
9
- RUN apt-get update \
10
- && apt-get install -y --no-install-recommends maven=3.6.0-1~18.04.1
11
-
12
6
COPY pom.xml .
13
- RUN mvn -N io.takari:maven: wrapper -Dmaven=3.5.0
7
+ RUN mvn -N wrapper: wrapper -Dmaven=3.8.4
14
8
15
9
COPY . /app
16
10
RUN ./mvnw install
@@ -20,6 +14,7 @@ ARG bx_dev_userid=1000
20
14
RUN export BX_DEV_USER=$bx_dev_user
21
15
RUN export BX_DEV_USERID=$bx_dev_userid
22
16
RUN if [ $bx_dev_user != "root" ]; then useradd -ms /bin/bash -u $bx_dev_userid $bx_dev_user; fi
17
+ USER 1001
23
18
24
19
# Multi-stage build. New build stage that uses the UBI as the base image.
25
20
@@ -28,7 +23,7 @@ RUN if [ $bx_dev_user != "root" ]; then useradd -ms /bin/bash -u $bx_dev_userid
28
23
# Docker at the moment.
29
24
# (https://github.com/ibmruntimes/ci.docker/tree/master/ibmjava/8/sfj/ubi-min)
30
25
31
- FROM adoptopenjdk/openjdk8:ubi-jre
26
+ FROM registry.access.redhat.com/ubi8/openjdk-17:1.11
32
27
33
28
# Copy over app from builder image into the runtime image.
34
29
RUN mkdir /opt/app
Original file line number Diff line number Diff line change 1
1
# In the short term, we are using the OpenJDK for UBI. Long term, we will use
2
2
# the IBM Java Small Footprint JVM (SFJ) for UBI, but that is not in public
3
3
# Docker at the moment.
4
- FROM adoptopenjdk/openjdk8:ubi
4
+ FROM registry.access.redhat.com/ubi8/openjdk-17:1.11
5
5
6
6
LABEL maintainer="IBM Java Engineering at IBM Cloud"
7
7
8
- RUN yum -y install --disableplugin=subscription-manager maven \
9
- && yum --disableplugin=subscription-manager clean all
10
-
11
-
12
8
ARG bx_dev_user=root
13
9
ARG bx_dev_userid=1000
14
10
RUN BX_DEV_USER=$bx_dev_user
Original file line number Diff line number Diff line change 10
10
<properties >
11
11
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
12
12
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
13
- <maven .compiler.source>1.8</maven .compiler.source>
14
- <maven .compiler.target>1.8</maven .compiler.target>
15
- <java .version>1.8</java .version>
13
+ <java .version>17</java .version>
16
14
<opentracing-spring-jaeger-web-starter .version>3.3.1</opentracing-spring-jaeger-web-starter .version>
17
15
<app .name>javaspringapp</app .name>
18
-
19
- <!-- Remove this once Spring boot updates to 2.17.0 or above-->
20
- <log4j2 .version>2.17.0</log4j2 .version>
21
16
</properties >
22
17
23
18
<parent >
You can’t perform that action at this time.
0 commit comments