Skip to content

Commit df957d5

Browse files
authored
Merge pull request #504 from WASdev/addSymlink23003-lcj
Add symlink to /fixes for 23.0.0.3 images + doc updates
2 parents 0e7908c + 6e56cb2 commit df957d5

File tree

10 files changed

+50
-13
lines changed

10 files changed

+50
-13
lines changed

README.md

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
## Container images
2121

22-
* Our recommended set uses Red Hat's [Universal Base Image](https://www.redhat.com/en/blog/introducing-red-hat-universal-base-image) as the Operating System and are re-built daily. They are available from [IBM Container Registry](docs/icr-images.md) and [Docker Hub](https://hub.docker.com/r/ibmcom/websphere-liberty).
22+
* Our recommended set uses Red Hat's Universal Base Image (UBI) as the Operating System and are re-built daily. They are available from [IBM Container Registry (ICR)](docs/icr-images.md) and [Docker Hub](https://hub.docker.com/r/ibmcom/websphere-liberty). We strongly recommend using the images in ICR. Unlike Docker Hub, pulls from ICR are not rate limited.
2323
* Another set, using Ubuntu as the Operating System can be found on [Docker Hub](https://hub.docker.com/_/websphere-liberty). These are re-built automatically anytime something changes in the layers below.
2424

2525
## Building an application image
@@ -29,27 +29,45 @@ According to best practices for container images, you should create a new image
2929
Your application image template should follow a pattern similar to:
3030

3131
```dockerfile
32-
FROM icr.io/appcafe/websphere-liberty:kernel-java8-openj9-ubi
32+
FROM icr.io/appcafe/websphere-liberty:kernel-java17-openj9-ubi
33+
34+
# Default setting for the verbose option. Set it to true to debug the application container image build failures
35+
ARG VERBOSE=false
3336

3437
# Add Liberty server configuration including all necessary features
3538
COPY --chown=1001:0 server.xml /config/
3639

37-
# This script will add the requested XML snippets to enable Liberty features and grow image to be fit-for-purpose using featureUtility.
38-
# Only available in 'kernel'. The 'full' tag already includes all features for convenience.
40+
# Modify feature repository (optional)
41+
# A sample is in the 'Getting Required Features' section below
42+
COPY --chown=1001:0 featureUtility.properties /opt/ibm/wlp/etc/
43+
44+
# This script will add the requested XML snippets to enable Liberty features and grow the image to be fit-for-purpose using featureUtility.
3945
RUN features.sh
4046

4147
# Add interim fixes (optional)
4248
COPY --chown=1001:0 interim-fixes /opt/ibm/fixes/
4349

44-
# Add app
50+
# Add application
4551
COPY --chown=1001:0 Sample1.war /config/dropins/
4652

47-
# This script will add the requested XML snippets, grow image to be fit-for-purpose and apply interim fixes
53+
# This script will add the requested server configurations, apply any interim fixes and populate caches to optimize runtime
4854
RUN configure.sh
4955
```
5056

5157
This will result in a container image that has your application and configuration pre-loaded, which means you can spawn new fully-configured containers at any time.
5258

59+
### Getting Required Features
60+
61+
The `kernel` tag provides just the bare minimum server. You can grow it to include the features needed by your application by invoking `features.sh`.
62+
Liberty features are downloaded from Maven Central repository by default. But you can specify alternatives using `/opt/ibm/wlp/etc/featureUtility.properties`:
63+
```
64+
remoteRepo.url=https://my-remote-server/secure/maven2
65+
remoteRepo.user=operator
66+
remoteRepo.password={aes}KM8dhwcv892Ss1sawu9R+
67+
```
68+
69+
Refer to [Repository and proxy modifications](https://openliberty.io/docs/ref/command/featureUtility-modifications.html) for more information.
70+
5371
## Optional Enterprise Functionality
5472

5573
This section describes the optional enterprise functionality that can be enabled via the Dockerfile during `build` time, by setting particular argument (`ARG`) or environment variable (`ENV`) and calling `RUN configure.sh`. Each of these options trigger the inclusion of specific configuration via XML snippets (except for `VERBOSE`), described below:
@@ -153,14 +171,14 @@ The Liberty session caching feature builds on top of an existing technology call
153171

154172
```dockerfile
155173
### Infinispan Session Caching ###
156-
FROM icr.io/appcafe/websphere-liberty:kernel-java8-openj9-ubi AS infinispan-client
174+
FROM icr.io/appcafe/websphere-liberty:kernel-java17-openj9-ubi AS infinispan-client
157175

158176
# Install Infinispan client jars
159177
USER root
160178
RUN infinispan-client-setup.sh
161179
USER 1001
162180

163-
FROM icr.io/appcafe/websphere-liberty:kernel-java8-openj9-ubi AS open-liberty-infinispan
181+
FROM icr.io/appcafe/websphere-liberty:kernel-java17-openj9-ubi AS open-liberty-infinispan
164182

165183
# Copy Infinispan client jars to Open Liberty shared resources
166184
COPY --chown=1001:0 --from=infinispan-client /opt/ibm/wlp/usr/shared/resources/infinispan /opt/ibm/wlp/usr/shared/resources/infinispan
@@ -272,7 +290,7 @@ containing all the features. You will also need to make sure to call `RUN config
272290
You can also set it through Dockerfile
273291

274292
```dockerfile
275-
FROM icr.io/appcafe/websphere-liberty:kernel-java8-openj9-ubi
293+
FROM icr.io/appcafe/websphere-liberty:kernel-java17-openj9-ubi
276294
ARG FEATURE_REPO_URL=http://wlprepos:8080/19.0.0.x/repo.zip
277295
ARG VERBOSE=false
278296
RUN configure.sh
@@ -282,7 +300,7 @@ Note: This feature requires a `curl` command to be in the container image.
282300
Some base images do not provide `curl`. You can add it before calling `confiure.sh` this way:
283301

284302
```dockerfile
285-
FROM icr.io/appcafe/websphere-liberty:kernel-java8-openj9-ubi
303+
FROM icr.io/appcafe/websphere-liberty:kernel-java17-openj9-ubi
286304
USER root
287305
RUN apt-get update && apt-get install -y curl
288306
USER 1001

docs/icr-images.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,20 @@ full-java11-openj9-ubi
3636
full-java17-openj9-ubi
3737
```
3838

39+
## 23.0.0.4
40+
41+
```
42+
23.0.0.4-kernel-java8-openj9-ubi
43+
23.0.0.4-kernel-java8-ibmjava-ubi
44+
23.0.0.4-kernel-java11-openj9-ubi
45+
23.0.0.4-kernel-java17-openj9-ubi
46+
47+
23.0.0.4-full-java8-openj9-ubi
48+
23.0.0.4-full-java8-ibmjava-ubi
49+
23.0.0.4-full-java11-openj9-ubi
50+
23.0.0.4-full-java17-openj9-ubi
51+
```
52+
3953
## 23.0.0.3
4054

4155
```

ga/23.0.0.3/kernel/Dockerfile.ubi.ibmjava8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ RUN mkdir /logs \
8989
&& ln -s $WLP_OUTPUT_DIR/defaultServer /output \
9090
&& ln -s /opt/ibm/wlp/usr/servers/defaultServer /config \
9191
&& ln -s /opt/ibm /liberty \
92+
&& ln -s /opt/ibm/fixes /fixes \
9293
&& ln -s /opt/ibm/wlp/usr/shared/resources/lib.index.cache /lib.index.cache \
9394
&& mkdir -p /config/configDropins/defaults \
9495
&& mkdir -p /config/configDropins/overrides \

ga/23.0.0.3/kernel/Dockerfile.ubi.openjdk11

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ RUN mkdir /logs \
9090
&& ln -s $WLP_OUTPUT_DIR/defaultServer /output \
9191
&& ln -s /opt/ibm/wlp/usr/servers/defaultServer /config \
9292
&& ln -s /opt/ibm /liberty \
93+
&& ln -s /opt/ibm/fixes /fixes \
9394
&& ln -s /opt/ibm/wlp/usr/shared/resources/lib.index.cache /lib.index.cache \
9495
&& mkdir -p /config/configDropins/defaults \
9596
&& mkdir -p /config/configDropins/overrides \

ga/23.0.0.3/kernel/Dockerfile.ubi.openjdk17

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ RUN mkdir /logs \
9090
&& ln -s $WLP_OUTPUT_DIR/defaultServer /output \
9191
&& ln -s /opt/ibm/wlp/usr/servers/defaultServer /config \
9292
&& ln -s /opt/ibm /liberty \
93+
&& ln -s /opt/ibm/fixes /fixes \
9394
&& ln -s /opt/ibm/wlp/usr/shared/resources/lib.index.cache /lib.index.cache \
9495
&& mkdir -p /config/configDropins/defaults \
9596
&& mkdir -p /config/configDropins/overrides \

ga/23.0.0.3/kernel/Dockerfile.ubi.openjdk8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ RUN mkdir /logs \
9090
&& ln -s $WLP_OUTPUT_DIR/defaultServer /output \
9191
&& ln -s /opt/ibm/wlp/usr/servers/defaultServer /config \
9292
&& ln -s /opt/ibm /liberty \
93+
&& ln -s /opt/ibm/fixes /fixes \
9394
&& ln -s /opt/ibm/wlp/usr/shared/resources/lib.index.cache /lib.index.cache \
9495
&& mkdir -p /config/configDropins/defaults \
9596
&& mkdir -p /config/configDropins/overrides \

ga/23.0.0.3/kernel/Dockerfile.ubuntu.ibmjava8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ RUN mkdir /logs \
8888
&& ln -s $WLP_OUTPUT_DIR/defaultServer /output \
8989
&& ln -s /opt/ibm/wlp/usr/servers/defaultServer /config \
9090
&& ln -s /opt/ibm /liberty \
91+
&& ln -s /opt/ibm/fixes /fixes \
9192
&& ln -s /opt/ibm/wlp/usr/shared/resources/lib.index.cache /lib.index.cache \
9293
&& mkdir -p /config/configDropins/defaults \
9394
&& mkdir -p /config/configDropins/overrides \

ga/23.0.0.3/kernel/Dockerfile.ubuntu.openjdk11

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ RUN mkdir /logs \
8888
&& ln -s $WLP_OUTPUT_DIR/defaultServer /output \
8989
&& ln -s /opt/ibm/wlp/usr/servers/defaultServer /config \
9090
&& ln -s /opt/ibm /liberty \
91+
&& ln -s /opt/ibm/fixes /fixes \
9192
&& ln -s /opt/ibm/wlp/usr/shared/resources/lib.index.cache /lib.index.cache \
9293
&& mkdir -p /config/configDropins/defaults \
9394
&& mkdir -p /config/configDropins/overrides \

ga/23.0.0.3/kernel/Dockerfile.ubuntu.openjdk17

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ RUN mkdir /logs \
8888
&& ln -s $WLP_OUTPUT_DIR/defaultServer /output \
8989
&& ln -s /opt/ibm/wlp/usr/servers/defaultServer /config \
9090
&& ln -s /opt/ibm /liberty \
91+
&& ln -s /opt/ibm/fixes /fixes \
9192
&& ln -s /opt/ibm/wlp/usr/shared/resources/lib.index.cache /lib.index.cache \
9293
&& mkdir -p /config/configDropins/defaults \
9394
&& mkdir -p /config/configDropins/overrides \

test/test-stock-quote/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,12 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
FROM ibmcom/websphere-liberty:kernel-java8-openj9-ubi
16+
FROM ibmcom/websphere-liberty:kernel-java17-openj9-ubi
1717

1818
COPY --chown=1001:0 config /config/
1919

2020
ARG VERBOSE=false
2121

22-
RUN features.sh
23-
2422
COPY --chown=1001:0 stock-quote-1.0-SNAPSHOT.war /config/apps/StockQuote.war
2523

2624
RUN configure.sh

0 commit comments

Comments
 (0)