[release-monitoring] Fix poetry deployment
Poetry deployment is too different in container than the deployment we used before. Let's try to use `pip-3 install .` as before, thanks to PEP-517, this should work as expected. [PEP-517](https://peps.python.org/pep-0517/) Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
parent
2326ab1da9
commit
a79b2eacdd
3 changed files with 4 additions and 6 deletions
|
@ -22,5 +22,5 @@ sar_openshift:
|
||||||
# Output file on local machine
|
# Output file on local machine
|
||||||
sar_output_file: anitya.json
|
sar_output_file: anitya.json
|
||||||
# Location of the script
|
# Location of the script
|
||||||
sar_script: /usr/local/bin/sar.py
|
sar_script: /usr/local/bin/sar
|
||||||
swap: false
|
swap: false
|
||||||
|
|
|
@ -55,8 +55,6 @@ items:
|
||||||
pushd anitya && \
|
pushd anitya && \
|
||||||
{% if env == 'staging' %}
|
{% if env == 'staging' %}
|
||||||
git checkout staging && \
|
git checkout staging && \
|
||||||
poetry export -f requirements.txt --output requirements.txt --without-hashes && \
|
|
||||||
pip-3 install -r requirements.txt && \
|
|
||||||
poetry build && \
|
poetry build && \
|
||||||
pip-3 install dist/*.whl && \
|
pip-3 install dist/*.whl && \
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -72,12 +70,12 @@ items:
|
||||||
popd && \
|
popd && \
|
||||||
{% if env != 'staging' %}
|
{% if env != 'staging' %}
|
||||||
python3 setup.py install && \
|
python3 setup.py install && \
|
||||||
pip-3 install . && \
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
pip-3 install . && \
|
||||||
popd && \
|
popd && \
|
||||||
rm -rf anitya
|
rm -rf anitya
|
||||||
# Let's use staging auth server in staging
|
|
||||||
{% if env == 'staging' %}
|
{% 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
|
RUN sed -i 's/id.fedoraproject.org/id.stg.fedoraproject.org/g' /usr/local/lib/python3.10/site-packages/social_core/backends/fedora.py
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ LogLevel info
|
||||||
TypesConfig /etc/mime.types
|
TypesConfig /etc/mime.types
|
||||||
AddDefaultCharset UTF-8
|
AddDefaultCharset UTF-8
|
||||||
CoreDumpDirectory /tmp
|
CoreDumpDirectory /tmp
|
||||||
Alias /docs /usr/local/lib/python3.10/anitya/static/docs/html/
|
Alias /docs /usr/local/lib/python3.10/site-packages/anitya/static/docs/html/
|
||||||
Alias /static /usr/local/lib/python3.10/site-packages/anitya/static/
|
Alias /static /usr/local/lib/python3.10/site-packages/anitya/static/
|
||||||
WSGIDaemonProcess anitya display-name=anitya processes=2 threads=2 maximum-requests=1000 home=/httpdir
|
WSGIDaemonProcess anitya display-name=anitya processes=2 threads=2 maximum-requests=1000 home=/httpdir
|
||||||
WSGIApplicationGroup %{GLOBAL}
|
WSGIApplicationGroup %{GLOBAL}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue