Skip to content

Commit

Permalink
Downloaded packages installation was failing because of missing packa…
Browse files Browse the repository at this point in the history
…ges.
  • Loading branch information
maqeel75 committed Dec 13, 2024
1 parent fc98899 commit 069425d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 4 additions & 6 deletions percona-xtradb-cluster-5.7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,18 @@ RUN set -ex; \
RUN set -ex; \
curl -O https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-9; \
rpm --import RPM-GPG-KEY-EPEL-9; \
curl -Lf -o /tmp/numactl-libs.rpm https://downloads.percona.com/downloads/packaging/numactl-libs-2.0.18-2.el9.x86_64.rpm; \
microdnf --setopt=install_weak_deps=0 --best install -y numactl-libs socat onigurum; \
curl -Lf -o /tmp/libev.rpm https://downloads.percona.com/downloads/packaging/libev-4.33-5.el9.x86_64.rpm; \
curl -Lf -o /tmp/jq.rpm https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/Packages/jq-1.6-14.el9.x86_64.rpm; \
curl -Lf -o /tmp/pv.rpm http://download.fedoraproject.org/pub/epel/9/Everything/x86_64/Packages/p/pv-1.6.20-1.el9.x86_64.rpm; \
rpmkeys --checksig /tmp/numactl-libs.rpm /tmp/libev.rpm /tmp/jq.rpm /tmp/pv.rpm; \
rpm -i /tmp/numactl-libs.rpm /tmp/libev.rpm /tmp/jq.rpm /tmp/pv.rpm; \
rm -rf /tmp/numactl-libs.rpm /tmp/libev.rpm /tmp/jq.rpm /tmp/pv.rpm
rpmkeys --checksig /tmp/libev.rpm /tmp/jq.rpm /tmp/pv.rpm; \
rpm -i /tmp/libev.rpm /tmp/jq.rpm /tmp/pv.rpm; \
rm -rf /tmp/libev.rpm /tmp/jq.rpm /tmp/pv.rpm

RUN set -ex; \
rpm -e --nodeps tzdata; \
microdnf --setopt=install_weak_deps=0 --best install -y \
openssl \
socat \
oniguruma \
shadow-utils \
hostname \
tzdata \
Expand Down
10 changes: 4 additions & 6 deletions percona-xtradb-cluster-5.7/Dockerfile.k8s
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,20 @@ RUN set -ex; \
rpm --import RPM-GPG-KEY-EPEL-9; \
curl -O https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux-9; \
rpm --import RPM-GPG-KEY-AlmaLinux-9; \
curl -Lf -o /tmp/numactl-libs.rpm https://downloads.percona.com/downloads/packaging/numactl-libs-2.0.18-2.el9.x86_64.rpm; \
microdnf --setopt=install_weak_deps=0 --best install -y numactl-libs socat onigurum; \
curl -Lf -o /tmp/libev.rpm https://downloads.percona.com/downloads/packaging/libev-4.33-5.el9.x86_64.rpm; \
curl -Lf -o /tmp/jq.rpm https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/Packages/jq-1.6-14.el9.x86_64.rpm; \
curl -Lf -o /tmp/pv.rpm http://download.fedoraproject.org/pub/epel/9/Everything/x86_64/Packages/p/pv-1.6.20-1.el9.x86_64.rpm; \
curl -Lf -o /tmp/compat-openssl.rpm https://downloads.percona.com/downloads/packaging/compat-openssl11-1.1.1k-4.el9_0.x86_64.rpm; \
rpmkeys --checksig /tmp/numactl-libs.rpm /tmp/libev.rpm /tmp/jq.rpm /tmp/pv.rpm /tmp/compat-openssl.rpm; \
rpmkeys --checksig /tmp/libev.rpm /tmp/jq.rpm /tmp/pv.rpm /tmp/compat-openssl.rpm; \
rpm -i /tmp/compat-openssl.rpm --nodeps; \
rpm -i /tmp/numactl-libs.rpm /tmp/libev.rpm /tmp/jq.rpm /tmp/pv.rpm; \
rm -rf /tmp/numactl-libs.rpm /tmp/libev.rpm /tmp/jq.rpm /tmp/pv.rpm /tmp/compat-openssl.rpm
rpm -i /tmp/libev.rpm /tmp/jq.rpm /tmp/pv.rpm; \
rm -rf /tmp/libev.rpm /tmp/jq.rpm /tmp/pv.rpm /tmp/compat-openssl.rpm

RUN set -ex; \
rpm -e --nodeps tzdata; \
microdnf install -y \
openssl \
socat \
oniguruma \
procps-ng \
shadow-utils \
hostname \
Expand Down

0 comments on commit 069425d

Please sign in to comment.