Commit d10c54e6 authored by Reillyhewitson's avatar Reillyhewitson
Browse files

Update base to rocky9

Change all instances of yum to dnf
Updated jdk and jre to use correct packages
parent f6291bce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@
# The Ansible Docker modules require the Docker Python SDK, which requires pip to install, which requires EPEL

- name: Install pip for system python on CentOS / RHEL
  yum:
  dnf:
    name: pip
    state: latest
  when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
+5 −5
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
## Currently just a fully-updated CentOS 7 with common packages and entrypoint
#####

FROM centos:7.8.2003
FROM rockylinux:9.2.20230513

# Create the esgf user that will be used to run apps
ENV ESGF_UID 1000
@@ -27,12 +27,12 @@ ENV LC_ALL en_US.UTF-8
# Upgrade all existing packages
# Updating CACHE_BUST to the current time will bust the cache and force a rebuild
RUN CACHE_BUST="20220923"; \
    yum makecache && yum upgrade -y && yum clean all
    dnf makecache && dnf upgrade -y && dnf clean all

# Install ca-certificates and openssl
RUN yum makecache && \
    yum install -y epel-release ca-certificates openssl && \
    yum clean all
RUN dnf makecache && \
    dnf install -y epel-release ca-certificates openssl && \
    dnf clean all

# Install Tini
ENV TINI_VERSION v0.18.0
+3 −3
Original line number Diff line number Diff line
@@ -11,6 +11,6 @@ FROM ${ESGF_REPOSITORY_BASE}/base:${ESGF_IMAGES_VERSION}

USER root

RUN yum makecache && \
    yum install -y java-11-openjdk-devel-11.0.15.0.9 && \
    yum clean all
RUN dnf makecache && \
    dnf install -y java-11-openjdk-devel-11.0.20.0.8-3.el9 && \
    dnf clean all
+3 −3
Original line number Diff line number Diff line
@@ -10,8 +10,8 @@ FROM ${ESGF_REPOSITORY_BASE}/base:${ESGF_IMAGES_VERSION}

USER root

RUN yum makecache && \
    yum install -y java-11-openjdk-headless-11.0.15.0.9 && \
    yum clean all
RUN dnf makecache && \
    dnf install -y java-11-openjdk-headless-11.0.20.0.8-3.el9 && \
    dnf clean all

USER $ESGF_UID
+4 −4
Original line number Diff line number Diff line
@@ -18,10 +18,10 @@ ENV LS_SETTINGS_DIR /etc/logstash
# Use Elastic's RPM repository to install logstash
# In the same command, in order to avoid another layer, transfer ownership of
# /usr/share/logstash to the ESGF user and group
COPY logstash.repo /etc/yum.repos.d/logstash.repo
RUN yum makecache && \
    yum install -y logstash-7.10.0 && \
    yum clean all && \
COPY logstash.repo /etc/dnf.repos.d/logstash.repo
RUN dnf makecache && \
    dnf install -y logstash-7.10.0 && \
    dnf clean all && \
    chown -R $ESGF_UID:$ESGF_GID /usr/share/logstash

# Install configuration files
Loading