Skip to content

Commit

Permalink
Fine-tune microdnf commands used while building images (RedHatInsight…
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenneg authored Sep 9, 2024
1 parent f71570d commit e6eb2eb
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 12 deletions.
4 changes: 3 additions & 1 deletion docker/Dockerfile.notifications-aggregator.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:latest

# Update the base image packages
USER root
RUN microdnf update --refresh --nodocs && microdnf clean all
# See https://www.mankier.com/8/microdnf
RUN microdnf upgrade --refresh --nodocs --setopt=install_weak_deps=0 -y
RUN microdnf clean all
USER jboss

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en'
Expand Down
4 changes: 3 additions & 1 deletion docker/Dockerfile.notifications-backend.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:latest

# Update the base image packages
USER root
RUN microdnf update --refresh --nodocs && microdnf clean all
# See https://www.mankier.com/8/microdnf
RUN microdnf upgrade --refresh --nodocs --setopt=install_weak_deps=0 -y
RUN microdnf clean all
USER jboss

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en'
Expand Down
4 changes: 3 additions & 1 deletion docker/Dockerfile.notifications-connector-drawer.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:latest

# Update the base image packages
USER root
RUN microdnf update --refresh --nodocs && microdnf clean all
# See https://www.mankier.com/8/microdnf
RUN microdnf upgrade --refresh --nodocs --setopt=install_weak_deps=0 -y
RUN microdnf clean all
USER jboss

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en'
Expand Down
4 changes: 3 additions & 1 deletion docker/Dockerfile.notifications-connector-email.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:latest

# Update the base image packages
USER root
RUN microdnf update --refresh --nodocs && microdnf clean all
# See https://www.mankier.com/8/microdnf
RUN microdnf upgrade --refresh --nodocs --setopt=install_weak_deps=0 -y
RUN microdnf clean all
# Add RedHat CAs on OS truststore (check https://certs.corp.redhat.com/ for more details)
COPY --from=build /home/jboss/recipients-resolver/src/main/resources/mtls-ca-validators.crt /etc/pki/ca-trust/source/anchors/mtls-ca-validators.crt
RUN update-ca-trust
Expand Down
4 changes: 3 additions & 1 deletion docker/Dockerfile.notifications-connector-google-chat.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:latest

# Update the base image packages
USER root
RUN microdnf update --refresh --nodocs && microdnf clean all
# See https://www.mankier.com/8/microdnf
RUN microdnf upgrade --refresh --nodocs --setopt=install_weak_deps=0 -y
RUN microdnf clean all
USER jboss

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:latest

# Update the base image packages
USER root
RUN microdnf update --refresh --nodocs && microdnf clean all
# See https://www.mankier.com/8/microdnf
RUN microdnf upgrade --refresh --nodocs --setopt=install_weak_deps=0 -y
RUN microdnf clean all
USER jboss

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en'
Expand Down
4 changes: 3 additions & 1 deletion docker/Dockerfile.notifications-connector-servicenow.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:latest

# Update the base image packages
USER root
RUN microdnf update --refresh --nodocs && microdnf clean all
# See https://www.mankier.com/8/microdnf
RUN microdnf upgrade --refresh --nodocs --setopt=install_weak_deps=0 -y
RUN microdnf clean all
USER jboss

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en'
Expand Down
4 changes: 3 additions & 1 deletion docker/Dockerfile.notifications-connector-slack.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:latest

# Update the base image packages
USER root
RUN microdnf update --refresh --nodocs && microdnf clean all
# See https://www.mankier.com/8/microdnf
RUN microdnf upgrade --refresh --nodocs --setopt=install_weak_deps=0 -y
RUN microdnf clean all
USER jboss

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en'
Expand Down
4 changes: 3 additions & 1 deletion docker/Dockerfile.notifications-connector-splunk.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:latest

# Update the base image packages
USER root
RUN microdnf update --refresh --nodocs && microdnf clean all
# See https://www.mankier.com/8/microdnf
RUN microdnf upgrade --refresh --nodocs --setopt=install_weak_deps=0 -y
RUN microdnf clean all
USER jboss

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en'
Expand Down
4 changes: 3 additions & 1 deletion docker/Dockerfile.notifications-connector-webhook.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:latest

# Update the base image packages
USER root
RUN microdnf update --refresh --nodocs && microdnf clean all
# See https://www.mankier.com/8/microdnf
RUN microdnf upgrade --refresh --nodocs --setopt=install_weak_deps=0 -y
RUN microdnf clean all
USER jboss

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en'
Expand Down
4 changes: 3 additions & 1 deletion docker/Dockerfile.notifications-engine.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:latest

# Update the base image packages
USER root
RUN microdnf update --refresh --nodocs && microdnf clean all
# See https://www.mankier.com/8/microdnf
RUN microdnf upgrade --refresh --nodocs --setopt=install_weak_deps=0 -y
RUN microdnf clean all
USER jboss

ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en'
Expand Down
4 changes: 3 additions & 1 deletion docker/Dockerfile.notifications-recipients-resolver.jvm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:latest

# Update the base image packages
USER root
RUN microdnf update --refresh --nodocs && microdnf clean all
# See https://www.mankier.com/8/microdnf
RUN microdnf upgrade --refresh --nodocs --setopt=install_weak_deps=0 -y
RUN microdnf clean all
# Add RedHat CAs on OS truststore (check https://certs.corp.redhat.com/ for more details)
COPY --from=build /home/jboss/recipients-resolver/src/main/resources/mtls-ca-validators.crt /etc/pki/ca-trust/source/anchors/mtls-ca-validators.crt
RUN update-ca-trust
Expand Down

0 comments on commit e6eb2eb

Please sign in to comment.