Skip to content

Commit

Permalink
Merge pull request #35 from Percona-Lab/PMM-7-bump-linux-version
Browse files Browse the repository at this point in the history
PMM-7 bump linux version
  • Loading branch information
yurkovychv authored Feb 12, 2024
2 parents 1fab66b + 38c615b commit d724634
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pmm_psmdb-pbm_setup/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM oraclelinux:8
FROM oraclelinux:9
ARG REPO=testing
ARG PMM_REPO=experimental
ARG PBM_VERSION=latest
Expand All @@ -25,8 +25,8 @@ RUN set -ex; \
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A 99DB70FAE1D7CE227FB6488205B555B38483C65D 94E279EB8D8F25B21810ADF121EA45AB2F86D6A1; \
gpg --batch --export --armor 430BDF5C56E7C94E848EE60C1C4CBDCDCD2EFD2A > ${GNUPGHOME}/RPM-GPG-KEY-Percona; \
gpg --batch --export --armor 99DB70FAE1D7CE227FB6488205B555B38483C65D > ${GNUPGHOME}/RPM-GPG-KEY-centosofficial; \
gpg --batch --export --armor 94E279EB8D8F25B21810ADF121EA45AB2F86D6A1 > ${GNUPGHOME}/RPM-GPG-KEY-EPEL-8; \
rpmkeys --import ${GNUPGHOME}/RPM-GPG-KEY-Percona ${GNUPGHOME}/RPM-GPG-KEY-centosofficial ${GNUPGHOME}/RPM-GPG-KEY-EPEL-8; \
gpg --batch --export --armor 94E279EB8D8F25B21810ADF121EA45AB2F86D6A1 > ${GNUPGHOME}/RPM-GPG-KEY-EPEL-9; \
rpmkeys --import ${GNUPGHOME}/RPM-GPG-KEY-Percona ${GNUPGHOME}/RPM-GPG-KEY-centosofficial ${GNUPGHOME}/RPM-GPG-KEY-EPEL-9; \
curl -Lf -o /tmp/percona-release.rpm https://repo.percona.com/yum/percona-release-latest.noarch.rpm; \
rpmkeys --checksig /tmp/percona-release.rpm; \
rpm -i /tmp/percona-release.rpm; \
Expand All @@ -35,23 +35,23 @@ RUN set -ex; \
percona-release enable pbm ${REPO} && \
percona-release enable ${PSMDB_REPO} ${REPO} && \
percona-release enable original ${PMM_REPO} && \
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
yum update --refresh -y && \
if [ $PSMDB_VERSION == "latest" ]; then \
yum -y install percona-server-mongodb \
percona-server-mongodb-tools \
percona-server-mongodb-server \
percona-server-mongodb-mongos ; \
else \
yum -y install percona-server-mongodb-${PSMDB_VERSION}.el8 \
percona-server-mongodb-tools-${PSMDB_VERSION}.el8 \
percona-server-mongodb-server-${PSMDB_VERSION}.el8 \
percona-server-mongodb-mongos-${PSMDB_VERSION}.el8 ; \
yum -y install percona-server-mongodb-${PSMDB_VERSION}.el9 \
percona-server-mongodb-tools-${PSMDB_VERSION}.el9 \
percona-server-mongodb-server-${PSMDB_VERSION}.el9 \
percona-server-mongodb-mongos-${PSMDB_VERSION}.el9 ; \
fi && \
if [ $PBM_VERSION == "latest" ]; then \
yum -y install percona-backup-mongodb ; \
else \
yum -y install percona-backup-mongodb-${PBM_VERSION}.el8 ; \
yum -y install percona-backup-mongodb-${PBM_VERSION}.el9 ; \
fi && \
if [[ $PMM_CLIENT_VERSION == http* ]]; then \
yum -y install pmm2-client && \
Expand All @@ -65,7 +65,7 @@ RUN set -ex; \
yum update --refresh -y \
yum -y install pmm2-client ; \
else \
yum -y install pmm2-client-${PMM_CLIENT_VERSION}-6.el8 ; \
yum -y install pmm2-client-${PMM_CLIENT_VERSION}-6.el9 ; \
fi && \
systemctl enable mongod && \
systemctl enable pbm-agent && \
Expand Down

0 comments on commit d724634

Please sign in to comment.