From fed3407634c662720885658d179274b74c37f576 Mon Sep 17 00:00:00 2001 From: Evgeny L Date: Mon, 26 Aug 2019 21:20:00 +0000 Subject: [PATCH] Fix opensuse image build gate Gate started to fail with: /bin/sh: /usr/bin/python3: Permission denied Related changes in other projects: armada: https://review.opendev.org/#/c/676806/ pegleg: https://review.opendev.org/#/c/676944/ Change-Id: I66d1ea3af18b7007411d5851df48c61d5d429e17 --- images/airflow/Dockerfile.opensuse_15 | 5 +++-- images/shipyard/Dockerfile.opensuse_15 | 17 +++++++---------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/images/airflow/Dockerfile.opensuse_15 b/images/airflow/Dockerfile.opensuse_15 index 4d17dcff..cf6236e6 100644 --- a/images/airflow/Dockerfile.opensuse_15 +++ b/images/airflow/Dockerfile.opensuse_15 @@ -64,8 +64,9 @@ RUN set -ex && \ python3-pip \ python3-devel \ python3-python-dateutil \ - make \ - && python3 -m pip install -U pip \ + make + +RUN pip3 install -U pip \ && zypper clean -a \ && rm -rf \ /tmp/* \ diff --git a/images/shipyard/Dockerfile.opensuse_15 b/images/shipyard/Dockerfile.opensuse_15 index 947e74ac..284d4139 100644 --- a/images/shipyard/Dockerfile.opensuse_15 +++ b/images/shipyard/Dockerfile.opensuse_15 @@ -41,6 +41,7 @@ RUN set -ex && \ ca-certificates \ curl \ netcfg \ + python3 \ python3-devel \ python3-setuptools \ && zypper clean -a \ @@ -69,17 +70,13 @@ COPY ${ctx_base}/shipyard_client /home/shipyard/shipyard_client/ COPY ${ctx_base}/shipyard_airflow /home/shipyard/shipyard/ # Build - RUN set -ex \ - && buildDeps=' \ - gcc \ - git-core \ - libopenssl-devel \ - make \ - python3-pip \ - ' \ +ENV buildDeps="gcc git-core libopenssl-devel make python3-pip" +RUN set -ex \ && zypper -q update -y \ - && zypper --non-interactive install --no-recommends $buildDeps \ - && python3 -m pip install -U pip \ + && zypper --non-interactive install --no-recommends $buildDeps + +RUN set -ex \ + && pip3 install -U pip \ && pip3 install -r /home/shipyard/client_requirements.txt --no-cache-dir \ && cd /home/shipyard/shipyard_client \ && python3 setup.py install \