Skip to content

Commit e0bc63f

Browse files
gkwan-ibmSaumya-Pandya
and
Saumya-Pandya
authored
Change to use kernel-slim image (#240)
* Change to use kernel-slim image * Update testApp.sh * Update testAppSN.sh * updated dockerImage to kernel slim * updated liberty-mvn-plugin version --------- Co-authored-by: Saumya-Pandya <[email protected]>
1 parent 0889306 commit e0bc63f

File tree

13 files changed

+21
-17
lines changed

13 files changed

+21
-17
lines changed

README.adoc

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// INSTRUCTION: Please remove all comments that start INSTRUCTION prior to commit. Most comments should be removed, although not the copyright.
22
// INSTRUCTION: The copyright statement must appear at the top of the file
33
//
4-
// Copyright (c) 2018, 2022 IBM Corporation and others.
4+
// Copyright (c) 2018, 2023 IBM Corporation and others.
55
// Licensed under Creative Commons Attribution-NoDerivatives
66
// 4.0 International (CC BY-ND 4.0)
77
// https://creativecommons.org/licenses/by-nd/4.0/
@@ -116,7 +116,7 @@ cd start
116116
mvn clean package
117117
```
118118

119-
include::{common-includes}/ol-icr-full-docker-pull.adoc[]
119+
120120

121121
Next, run the `docker build` commands to build container images for your application:
122122
[role='command']
@@ -146,7 +146,7 @@ include::{common-includes}/os-tabs.adoc[]
146146
REPOSITORY TAG
147147
inventory 1.0-SNAPSHOT
148148
system 1.0-SNAPSHOT
149-
openliberty/open-liberty full-java11-openj9-ubi
149+
openliberty/open-liberty kernel-slim-java11-openj9-ubi
150150
k8s.gcr.io/kube-proxy-amd64 v1.10.3
151151
k8s.gcr.io/kube-scheduler-amd64 v1.10.3
152152
k8s.gcr.io/kube-controller-manager-amd64 v1.10.3
@@ -166,7 +166,7 @@ k8s.gcr.io/pause-amd64 3.1
166166
REPOSITORY TAG
167167
inventory 1.0-SNAPSHOT
168168
system 1.0-SNAPSHOT
169-
openliberty/open-liberty full-java11-openj9-ubi
169+
openliberty/open-liberty kernel-slim-java11-openj9-ubi
170170
k8s.gcr.io/kube-proxy-amd64 v1.10.0
171171
k8s.gcr.io/kube-controller-manager-amd64 v1.10.0
172172
k8s.gcr.io/kube-apiserver-amd64 v1.10.0
@@ -202,7 +202,7 @@ Verify that the ***system:1.0-SNAPSHOT*** and ***inventory:1.0-SNAPSHOT*** image
202202
REPOSITORY TAG
203203
inventory 1.0-SNAPSHOT
204204
system 1.0-SNAPSHOT
205-
openliberty/open-liberty full-java11-openj9-ubi
205+
openliberty/open-liberty kernel-slim-java11-openj9-ubi
206206
```
207207

208208
If you don't see the ***system:1.0-SNAPSHOT*** and ***inventory:1.0-SNAPSHOT*** images, then check the Maven build log for any potential errors. If the images built without errors, push them to your container registry on IBM Cloud with the following commands:

finish/inventory/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
FROM icr.io/appcafe/open-liberty:full-java11-openj9-ubi
1+
FROM icr.io/appcafe/open-liberty:kernel-slim-java11-openj9-ubi
22

33
COPY --chown=1001:0 src/main/liberty/config /config/
4+
RUN features.sh
45
COPY --chown=1001:0 target/guide-kubernetes-intro-inventory.war /config/apps
56
RUN configure.sh

finish/inventory/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
<plugin>
9191
<groupId>io.openliberty.tools</groupId>
9292
<artifactId>liberty-maven-plugin</artifactId>
93-
<version>3.7.1</version>
93+
<version>3.8.2</version>
9494
</plugin>
9595
<!-- Plugin to run unit tests -->
9696
<plugin>

finish/system/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
FROM icr.io/appcafe/open-liberty:full-java11-openj9-ubi
1+
FROM icr.io/appcafe/open-liberty:kernel-slim-java11-openj9-ubi
22

33
COPY --chown=1001:0 src/main/liberty/config /config/
4+
RUN features.sh
45
COPY --chown=1001:0 target/guide-kubernetes-intro-system.war /config/apps
56
RUN configure.sh

finish/system/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<plugin>
7272
<groupId>io.openliberty.tools</groupId>
7373
<artifactId>liberty-maven-plugin</artifactId>
74-
<version>3.7.1</version>
74+
<version>3.8.2</version>
7575
</plugin>
7676
<!-- Plugin to run unit tests -->
7777
<plugin>

scripts/dailyBuild.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ sed -i "\#<artifactId>liberty-maven-plugin</artifactId>#a<configuration><install
1616
cat system/pom.xml
1717
cat inventory/pom.xml
1818

19-
sed -i "s;FROM icr.io/appcafe/open-liberty:full-java11-openj9-ubi;FROM $DOCKER_USERNAME/olguides:$BUILD;g" system/Dockerfile inventory/Dockerfile
19+
sed -i "s;FROM icr.io/appcafe/open-liberty:kernel-slim-java11-openj9-ubi;FROM $DOCKER_USERNAME/olguides:$BUILD;g" system/Dockerfile inventory/Dockerfile
2020
cat system/Dockerfile
2121
cat inventory/Dockerfile
2222

scripts/dockerImageTest.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ echo "Testing latest OpenLiberty Docker image"
1313
sed -i "\#<artifactId>liberty-maven-plugin</artifactId>#a<configuration><install><runtimeUrl>https://public.dhe.ibm.com/ibmdl/export/pub/software/openliberty/runtime/nightly/$DATE/$DRIVER</runtimeUrl></install></configuration>" system/pom.xml inventory/pom.xml
1414
cat system/pom.xml inventory/pom.xml
1515

16-
sed -i "s;FROM icr.io/appcafe/open-liberty:full-java11-openj9-ubi;FROM openliberty/daily:latest;g" system/Dockerfile inventory/Dockerfile
16+
sed -i "s;FROM icr.io/appcafe/open-liberty:kernel-slim-java11-openj9-ubi;FROM openliberty/daily:latest;g" system/Dockerfile inventory/Dockerfile
1717
cat system/Dockerfile inventory/Dockerfile
1818

1919
docker pull -q "openliberty/daily:latest"

scripts/testApp.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ mvn -ntp -Dhttp.keepAlive=false \
1414
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 \
1515
-q clean package
1616

17-
docker pull -q icr.io/appcafe/open-liberty:full-java11-openj9-ubi
17+
docker pull -q icr.io/appcafe/open-liberty:kernel-slim-java11-openj9-ubi
1818

1919
docker build -t system:1.0-SNAPSHOT system/.
2020
docker build -t inventory:1.0-SNAPSHOT inventory/.

scripts/testAppSN.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -euxo pipefail
33

44
mvn -q package
55

6-
docker pull icr.io/appcafe/open-liberty:full-java11-openj9-ubi
6+
docker pull icr.io/appcafe/open-liberty:kernel-slim-java11-openj9-ubi
77

88
docker build -t system:1.0-SNAPSHOT system/.
99
docker build -t inventory:1.0-SNAPSHOT inventory/.

start/inventory/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
FROM icr.io/appcafe/open-liberty:full-java11-openj9-ubi
1+
FROM icr.io/appcafe/open-liberty:kernel-slim-java11-openj9-ubi
22

33
COPY --chown=1001:0 src/main/liberty/config /config/
4+
RUN features.sh
45
COPY --chown=1001:0 target/guide-kubernetes-intro-inventory.war /config/apps
56
RUN configure.sh

start/inventory/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<plugin>
8686
<groupId>io.openliberty.tools</groupId>
8787
<artifactId>liberty-maven-plugin</artifactId>
88-
<version>3.7.1</version>
88+
<version>3.8.2</version>
8989
</plugin>
9090
<!-- Plugin to run unit tests -->
9191
<plugin>

start/system/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
FROM icr.io/appcafe/open-liberty:full-java11-openj9-ubi
1+
FROM icr.io/appcafe/open-liberty:kernel-slim-java11-openj9-ubi
22

33
COPY --chown=1001:0 src/main/liberty/config /config/
4+
RUN features.sh
45
COPY --chown=1001:0 target/guide-kubernetes-intro-system.war /config/apps
56
RUN configure.sh

start/system/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<plugin>
7272
<groupId>io.openliberty.tools</groupId>
7373
<artifactId>liberty-maven-plugin</artifactId>
74-
<version>3.7.1</version>
74+
<version>3.8.2</version>
7575
</plugin>
7676
<!-- Plugin to run unit tests -->
7777
<plugin>

0 commit comments

Comments
 (0)