-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bumps python to 3.10 and updates several packages
- Loading branch information
1 parent
64511f6
commit f3af0e2
Showing
11 changed files
with
62 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
cd /opt/ori | ||
celery worker -A ocd_backend.app:celery_app -l debug | ||
celery -A ocd_backend.app:celery_app worker -l debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.9-alpine | ||
FROM python:3.10-alpine | ||
MAINTAINER Joep Meindertsma <[email protected]> | ||
|
||
COPY ocd_backend/requirements.txt /opt/ori/ocd_backend/requirements.txt | ||
|
@@ -12,8 +12,8 @@ RUN apk add --update \ | |
libxml2-dev libxslt-dev poppler-dev jpeg-dev \ | ||
inotify-tools libmagic | ||
RUN apk add postgresql-dev gcc python3-dev musl-dev | ||
RUN pip install --upgrade 'pip<24.1' \ | ||
&& pip install cython==0.29.36 \ | ||
RUN pip install --upgrade 'pip<24.3.1' \ | ||
&& pip install cython==3.0.11 \ | ||
&& pip install --no-cache-dir -r /opt/ori/ocd_backend/requirements.txt \ | ||
&& pip uninstall -y cython \ | ||
&& cp /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime \ | ||
|
@@ -43,4 +43,4 @@ VOLUME /opt/ori/data | |
|
||
WORKDIR /opt/ori | ||
USER celery | ||
CMD celery --app=ocd_backend.app:celery_app worker --loglevel=info -Q transformers,enrichers --concurrency=3 --without-gossip --quiet | ||
CMD celery --app=ocd_backend.app:celery_app --quiet worker --loglevel=info -Q transformers,enrichers --concurrency=3 --without-gossip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.9-alpine | ||
FROM python:3.10-alpine | ||
MAINTAINER Joep Meindertsma <[email protected]> | ||
|
||
COPY ocd_backend/requirements.dev.txt /opt/ori/ocd_backend/requirements.txt | ||
|
@@ -12,8 +12,8 @@ RUN apk add --update \ | |
libxml2-dev libxslt-dev poppler-dev jpeg-dev \ | ||
inotify-tools libmagic | ||
RUN apk add postgresql-dev gcc python3-dev musl-dev | ||
RUN pip install --upgrade 'pip<24.1' \ | ||
&& pip install cython==0.29.36 \ | ||
RUN pip install --upgrade 'pip<24.3.1' \ | ||
&& pip install cython==3.0.11 \ | ||
&& pip install --no-cache-dir -r /opt/ori/ocd_backend/requirements.txt \ | ||
&& pip uninstall -y cython \ | ||
&& cp /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime \ | ||
|
@@ -43,4 +43,4 @@ VOLUME /opt/ori/data | |
|
||
WORKDIR /opt/ori | ||
USER celery | ||
CMD celery --app=ocd_backend.app:celery_app worker --loglevel=info -Q transformers,enrichers --concurrency=3 --without-gossip --quiet | ||
CMD celery --app=ocd_backend.app:celery_app --quiet worker --loglevel=info -Q transformers,enrichers --concurrency=3 --without-gossip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from ocd_backend.app import celery_app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
alembic==1.3.3 | ||
celery[redis]==4.4.6 | ||
redis==3.2.0 | ||
click==2.1 | ||
alembic==1.14.0 | ||
celery[redis]==5.4.0 | ||
redis==5.2.1 | ||
click==8.1.2 | ||
elasticsearch>=7.0.0,<8.0.0 | ||
flower==0.9.3 | ||
flower==2.0.1 | ||
iso8601==0.1.12 | ||
lxml==4.5.0 | ||
kombu==4.6.10 | ||
lxml==5.3.0 | ||
kombu==5.4.2 | ||
msgpack-python==0.4.2 | ||
nose2==0.9.2 | ||
pdftotext==2.1.4 | ||
Pillow==9.3.0 | ||
psycopg2==2.8.4 | ||
# psycopg2-binary | ||
PyLD==1.0.5 | ||
python-dateutil==2.7.3 | ||
python-dateutil==2.9.0 | ||
python-json-logger==0.1.11 | ||
python-magic==0.4.15 | ||
pyyaml==6.0.2 | ||
rdflib==4.2.2 | ||
requests[socks]==2.22.0 | ||
requests[socks]==2.32.3 | ||
sentry-sdk[celery] | ||
sqlalchemy==1.3.13 | ||
sqlalchemy-utils==0.36.1 | ||
urllib3==1.25.8 | ||
urllib3==2.2.3 | ||
translitcodec==0.7.0 | ||
zeep==3.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
alembic==1.3.3 | ||
celery[redis]==4.4.6 | ||
redis==3.2.0 | ||
click==2.1 | ||
alembic==1.14.0 | ||
celery[redis]==5.4.0 | ||
redis==5.2.1 | ||
click==8.1.2 | ||
elasticsearch>=7.0.0,<8.0.0 | ||
flower==0.9.3 | ||
flower==2.0.1 | ||
iso8601==0.1.12 | ||
lxml==4.5.0 | ||
kombu==4.6.10 | ||
lxml==5.3.0 | ||
kombu==5.4.2 | ||
msgpack-python==0.4.2 | ||
nose2==0.9.2 | ||
pdftotext==2.1.4 | ||
Pillow==9.3.0 | ||
psycopg2==2.8.4 | ||
# psycopg2-binary | ||
PyLD==1.0.5 | ||
python-dateutil==2.7.3 | ||
python-dateutil==2.9.0 | ||
python-json-logger==0.1.11 | ||
python-magic==0.4.15 | ||
pyyaml==6.0.2 | ||
rdflib==4.2.2 | ||
requests==2.22.0 | ||
requests==2.32.3 | ||
sentry-sdk[celery] | ||
sqlalchemy==1.3.13 | ||
sqlalchemy-utils==0.36.1 | ||
urllib3==1.25.8 | ||
urllib3==2.2.3 | ||
translitcodec==0.7.0 | ||
zeep==3.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters