From 595568964fc62f0ccf14600e89761ba91cdc95ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kone=C4=8Dn=C3=BD?= Date: Tue, 27 Sep 2022 13:49:57 +0200 Subject: [PATCH] [release-monitoring] Generate docs in virtual environment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I'm not sure what is happening, but the docs and bootstrap symlink are not installed in the system. Let's try to first install Anitya to virtual environment and build the docs and after that do a direct install to container. Also don't remove the cloned folder, so we can look what is happening there. Signed-off-by: Michal Konečný --- .../release-monitoring/templates/buildconfig.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/roles/openshift-apps/release-monitoring/templates/buildconfig.yml b/roles/openshift-apps/release-monitoring/templates/buildconfig.yml index e47c6c1202..25f266ec0e 100644 --- a/roles/openshift-apps/release-monitoring/templates/buildconfig.yml +++ b/roles/openshift-apps/release-monitoring/templates/buildconfig.yml @@ -55,8 +55,9 @@ items: pushd anitya && \ {% if env == 'staging' %} git checkout staging && \ - poetry build && \ - pip-3 install dist/*.whl && \ + python3 -m venv --system-site-packages .venv && \ + source .venv/bin/activate && \ + pip-3 install . && \ {% else %} git checkout production && \ python3 setup.py install && \ @@ -68,12 +69,15 @@ items: mkdir -p ../anitya/static/docs/ && \ cp -r _build/html/* ../anitya/static/docs/ && \ popd && \ -{% if env != 'staging' %} +{% if env == 'staging' %} + deactivate && \ +{% else %} python3 setup.py install && \ {% endif %} pip-3 install . && \ - popd && \ - rm -rf anitya + popd +# popd && \ +# rm -rf anitya {% if env == 'staging' %} # Let's use staging auth server in staging RUN sed -i 's/id.fedoraproject.org/id.stg.fedoraproject.org/g' /usr/local/lib/python3.10/site-packages/social_core/backends/fedora.py