From de6e51a155a90a539f2dc9f5cc8e4d2124b7f6be Mon Sep 17 00:00:00 2001 From: Oleksandr Havryliak Date: Sat, 21 Dec 2024 16:45:40 +0200 Subject: [PATCH] PBM fix mixed env --- pbm-functional/pytest/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pbm-functional/pytest/Dockerfile b/pbm-functional/pytest/Dockerfile index a5b1610..153c537 100644 --- a/pbm-functional/pytest/Dockerfile +++ b/pbm-functional/pytest/Dockerfile @@ -46,8 +46,8 @@ RUN yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noar mkdir -p /pbm-old && mkdir -p /pbm-new && mkdir /etc/pykmip && mkdir /etc/vault && mkdir /etc/x509 && \ VERSION=$(mongod --version | tail -n +2 | sed 's|Build Info: ||' | jq -r .version | sed -E 's|-.+||') && \ ARCH=$(mongod --version | tail -n +2 | sed 's/Build Info: //' | jq -r .environment.distarch) && \ - if [ $ARCH == x86_64 ]; then curl -Lf -o mongo-ce.tgz https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel93-$VERSION.tgz || true; fi && \ - if [ $ARCH == aarch64 ]; then curl -Lf -o mongo-ce.tgz https://fastdl.mongodb.org/linux/mongodb-linux-aarch64-rhel93-$VERSION.tgz || true ; fi && \ + if [ $ARCH == x86_64 ]; then curl -Lf -o mongo-ce.tgz https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel93-$VERSION.tgz || curl -Lf -o mongo-ce.tgz https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel90-$VERSION.tgz ||true; fi && \ + if [ $ARCH == aarch64 ]; then curl -Lf -o mongo-ce.tgz https://fastdl.mongodb.org/linux/mongodb-linux-aarch64-rhel93-$VERSION.tgz || curl -Lf -o mongo-ce.tgz https://fastdl.mongodb.org/linux/mongodb-linux-aarch64-rhel90-$VERSION.tgz || true ; fi && \ mkdir -p /opt/mongodb && tar -C /opt/mongodb --transform='s,^/*[^/]*,,S' -xzvf mongo-ce.tgz || true && rm -rf mongo-ce.tgz || true COPY --from=builder /pbm-new/ /pbm-new/ COPY --from=builder /pbm-old/ /pbm-old/