Skip to content

Commit

Permalink
Merge pull request #151 from asmorodskyi/migrate_container
Browse files Browse the repository at this point in the history
Switch container to BCI-python
  • Loading branch information
asmorodskyi authored Jul 8, 2022
2 parents c23428b + 60cd78f commit 0df0b71
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.opensuse.org/opensuse/leap:15.3
FROM registry.suse.com/bci/python:3.10

ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 UWSGI_WSGI_FILE=/pcw/webui/wsgi.py UWSGI_MASTER=1
ENV UWSGI_HTTP_AUTO_CHUNKED=1 UWSGI_HTTP_KEEPALIVE=1 UWSGI_LAZY_APPS=1 UWSGI_WSGI_ENV_BEHAVIOR=holy
Expand All @@ -10,7 +10,7 @@ COPY requirements.txt /pcw/
# * Install system requirements
# * Install pip requirements
# * Empty system cache to conserve some space
RUN zypper -n in python3 python3-devel python3-pip gcc && pip3 install -r /pcw/requirements.txt && rm -rf /var/cache
RUN zypper -n in python310-devel python310-pip gcc libffi-devel && pip3.10 install -r /pcw/requirements.txt && rm -rf /var/cache

# Copy program files only
COPY ocw /pcw/ocw/
Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ azure-mgmt-storage==10.0.0
azure-mgmt-resource==10.0.0
azure-storage-blob==12.4.0
msrestazure==0.6.4
uwsgi==2.0.19.1
uwsgi==2.0.20
requests==2.25.1
django==3.1.7
django-tables2==2.3.4
django-filter==2.4.0
django-bootstrap4==2.3.1
django==4.0.6
django-tables2==2.4.1
django-filter==22.1
django-bootstrap4==22.1
texttable
oauth2client==4.1.3
google-api-python-client==2.0.2
Expand Down
2 changes: 0 additions & 2 deletions webui/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@

USE_I18N = True

USE_L10N = True

USE_TZ = True


Expand Down

0 comments on commit 0df0b71

Please sign in to comment.