Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate container image/Dockerfile from UBI8 to UBI9 #695

Merged
merged 2 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/checkupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: sudo apt-get install -y skopeo
- name: check change
run: |
skopeo inspect docker://registry.access.redhat.com/ubi8/ubi-minimal:latest | grep -Po '(?<="Digest": ")([^"]+)' \
skopeo inspect docker://registry.access.redhat.com/ubi9/ubi-minimal:latest | grep -Po '(?<="Digest": ")([^"]+)' \
| head -n1 > .baseimage
docker run --rm --entrypoint sh -u 0 quay.io/cloudservices/policies-ui-backend:latest -c \
'microdnf update > /dev/null; rpm -qa | sort | sha256sum' \
Expand Down
6 changes: 3 additions & 3 deletions src/main/docker/Dockerfile.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
###

# Build the project
FROM registry.access.redhat.com/ubi8/openjdk-17:latest AS build
FROM registry.access.redhat.com/ubi9/openjdk-17:latest AS build
USER root
COPY . /home/jboss
WORKDIR /home/jboss
RUN ./mvnw clean package -DskipTests --no-transfer-progress

# Build the container
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest

ARG JAVA_PACKAGE=java-17-openjdk-headless
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en'

# Install java
# Also set up permissions for user `1001`
RUN microdnf install openssl curl ca-certificates ${JAVA_PACKAGE} \
RUN microdnf install -y openssl ca-certificates ${JAVA_PACKAGE} \
&& microdnf update \
&& microdnf clean all \
&& mkdir /deployments \
Expand Down
Loading