Skip to content

Commit dced6ac

Browse files
committed
Bump s2i-core image to ubi9
Also update all ubi8->ubi9 references. Signed-off-by: Harald Judt <[email protected]>
1 parent 9b56e6c commit dced6ac

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

1.0/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.access.redhat.com/ubi8/s2i-core
1+
FROM registry.access.redhat.com/ubi9/s2i-core
22

33
# This image provides a Common Lisp environment based on QuickLisp and
44
# that you can use to run your Common Lisp applications.
@@ -37,7 +37,7 @@ RUN rm /etc/rhsm-host && \
3737
WORKDIR $HOME
3838
COPY ./root/ /
3939

40-
# Build libev from source since it is not available in ubi8-base nor ubi8-app-stream repos
40+
# Build libev from source since it is not available in ubi9-base nor ubi9-app-stream repos
4141
RUN curl -O "http://dist.schmorp.de/libev/Attic/libev-${LIBEV_VERSION}.tar.gz" && \
4242
tar xvf libev-${LIBEV_VERSION}.tar.gz && \
4343
cd libev-${LIBEV_VERSION} && \
@@ -49,7 +49,7 @@ RUN curl -O "http://dist.schmorp.de/libev/Attic/libev-${LIBEV_VERSION}.tar.gz" &
4949
cd "$HOME" && \
5050
rm -rf libev*
5151

52-
# Build libssh2 from source since it is not available in ubi8-base nor ubi8-app-stream repos
52+
# Build libssh2 from source since it is not available in ubi9-base nor ubi9-app-stream repos
5353
RUN curl -O "https://libssh2.org/download/libssh2-${LIBSSH2_VERSION}.tar.bz2" && \
5454
tar xvf libssh2-${LIBSSH2_VERSION}.tar.bz2 && \
5555
cd libssh2-${LIBSSH2_VERSION} && \

1.0/s2i-lisp.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"kind": "BuildConfig",
1010
"apiVersion": "v1",
1111
"metadata":{
12-
"name": "lisp-ubi8-build"
12+
"name": "lisp-ubi9-build"
1313
},
1414
"spec": {
1515
"triggers": [
@@ -37,18 +37,18 @@
3737
"env": [
3838
{
3939
"name": "IMAGE_NAME",
40-
"value": "openshift/lisp-ubi8"
40+
"value": "openshift/lisp-ubi9"
4141
}],
4242
"from": {
4343
"kind": "ImageStreamTag",
44-
"name": "swarm-ubi8:latest"
44+
"name": "swarm-ubi9:latest"
4545
}
4646
}
4747
},
4848
"output": {
4949
"to": {
5050
"kind": "ImageStreamTag",
51-
"name": "lisp-ubi8:latest"
51+
"name": "lisp-ubi9:latest"
5252
}
5353
}
5454
}
@@ -57,7 +57,7 @@
5757
"kind": "ImageStream",
5858
"apiVersion": "v1",
5959
"metadata": {
60-
"name": "lisp-ubi8"
60+
"name": "lisp-ubi9"
6161
},
6262
"spec": {
6363
"dockerImageRepository": "",

1.0/s2i/bin/usage

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ To use it, install S2I: https://github.com/openshift/source-to-image
88
99
Sample invocation:
1010
11-
s2i build https://github.com/container-lisp/sample-lisp-app.git containerlisp/lisp-10-ubi8
11+
s2i build https://github.com/container-lisp/sample-lisp-app.git containerlisp/lisp-10-ubi9
1212
1313
You can then run the resulting image via:
1414
docker run -p 8080:8080 sample-lisp-app

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ application using standalone
1717
[S2I](https://github.com/openshift/source-to-image) and then run the
1818
resulting image with [docker](http://docker.io) execute:
1919
```
20-
$ s2i build https://github.com/container-lisp/sample-lisp-app quay.io/containerlisp/lisp-10-ubi8 sample-lisp-app
20+
$ s2i build https://github.com/container-lisp/sample-lisp-app quay.io/containerlisp/lisp-10-ubi9 sample-lisp-app
2121
$ docker run -p 8080:8080 sample-lisp-app
2222
```
2323

@@ -30,7 +30,7 @@ $ curl 127.0.0.1:8080
3030

3131
You will likely, however, prefer [OpenShift](https://www.openshift.com), where applications are created like so:
3232
```
33-
$ oc new-app quay.io/containerlisp/lisp-10-ubi8~git://github.com/container-lisp/sample-lisp-app
33+
$ oc new-app quay.io/containerlisp/lisp-10-ubi9~git://github.com/container-lisp/sample-lisp-app
3434
```
3535

3636
A [slynk](https://github.com/joaotavora/sly) server will be started on
@@ -140,8 +140,8 @@ repository.
140140
Public Container Images
141141
-----------------------
142142

143-
The ubi8-based S2I images are published on quay.io, as
144-
`quay.io/containerlisp/lisp-10-ubi8`. Image tags are as follows:
143+
The ubi9-based S2I images are published on quay.io, as
144+
`quay.io/containerlisp/lisp-10-ubi9`. Image tags are as follows:
145145

146146
* `latest`: the most recent build of the very latest quicklisp, SBCL
147147
and OS bits.

hack/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Name of resulting image will be: 'NAMESPACE/BASE_IMAGE_NAME-VERSION-OS'.
55
#
66
# BASE_IMAGE_NAME - Usually name of the main component within container.
7-
# OS - Specifies distribution - "ubi8"
7+
# OS - Specifies distribution - "ubi9"
88
# VERSION - Specifies the image version - (must match with subdirectory in repo)
99
# TEST_MODE - If set, build a candidate image and test it
1010
# TAG_ON_SUCCESS - If set, tested image will be re-tagged as a non-candidate

hack/common.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ SKIP_SQUASH?=1
22

33
build = hack/build.sh
44

5-
OS = ubi8
5+
OS = ubi9
66

77
script_env = \
88
SKIP_SQUASH=$(SKIP_SQUASH) \

hack/update-base.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ die() {
1212
which grype &>/dev/null || die "This script requires grype."
1313

1414
echo "Scanning latest image for fixed vulnerabilities..."
15-
podman rmi quay.io/containerlisp/lisp-10-ubi8:latest > /dev/null
16-
VULNS=$(grype -q -o table --only-fixed quay.io/containerlisp/lisp-10-ubi8:latest | grep -i rpm | grep -v suppressed | awk '{printf("%25s\t%s\n", $1, $5)}')
15+
podman rmi quay.io/containerlisp/lisp-10-ubi9:latest > /dev/null
16+
VULNS=$(grype -q -o table --only-fixed quay.io/containerlisp/lisp-10-ubi9:latest | grep -i rpm | grep -v suppressed | awk '{printf("%25s\t%s\n", $1, $5)}')
1717

1818
if ! test -z "$VULNS"; then
1919
LISP_BASE_BUILD_DATE=$(date)

tekton/s2i-lisp-task.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spec:
2222
- name: generate
2323
image: quay.io/openshift-pipeline/s2i
2424
workingdir: /workspace/source
25-
command: ['s2i', 'build', '$(inputs.params.PATH_CONTEXT)', 'quay.io/containerlisp/lisp-10-ubi8', '--as-dockerfile', '/gen-source/Dockerfile.gen']
25+
command: ['s2i', 'build', '$(inputs.params.PATH_CONTEXT)', 'quay.io/containerlisp/lisp-10-ubi9', '--as-dockerfile', '/gen-source/Dockerfile.gen']
2626
volumeMounts:
2727
- name: gen-source
2828
mountPath: /gen-source

0 commit comments

Comments
 (0)