Skip to content

Commit

Permalink
python 3.10: build uwsgi python plugin for 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
RayPlante committed Jun 22, 2024
1 parent 117c199 commit 2ee0fe7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions docker/ejsonschema/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ FROM oar-metadata/jqfromsrc:latest

RUN apt-get update && apt-get install -y unzip uwsgi uwsgi-src \
uuid-dev libcap-dev libpcre3-dev python3-distutils
RUN PYTHON=python3.8 uwsgi --build-plugin "/usr/src/uwsgi/plugins/python python38" && \
mv python38_plugin.so /usr/lib/uwsgi/plugins/python38_plugin.so && \
chmod 644 /usr/lib/uwsgi/plugins/python38_plugin.so
RUN PYTHON=python3 uwsgi --build-plugin "/usr/src/uwsgi/plugins/python python3" && \
mv python3_plugin.so /usr/lib/uwsgi/plugins/python3_plugin.so && \
chmod 644 /usr/lib/uwsgi/plugins/python3_plugin.so

RUN update-alternatives --install /usr/lib/uwsgi/plugins/python3_plugin.so \
python_plugin.so /usr/lib/uwsgi/plugins/python38_plugin.so 1
RUN update-alternatives --install /usr/lib/uwsgi/plugins/python_plugin.so \
python_plugin.so /usr/lib/uwsgi/plugins/python3_plugin.so 1

RUN python -m pip install "setuptools<66.0.0"
RUN python -m pip install json-spec jsonschema==2.4.0 requests \
Expand All @@ -17,16 +17,16 @@ RUN python -m pip install --no-dependencies jsonmerge==1.3.0
WORKDIR /root

RUN curl -L -o ejsonschema.zip \
https://github.com/usnistgov/ejsonschema/archive/master.zip && \
https://github.com/usnistgov/ejsonschema/archive/1.0rc4.zip && \
unzip ejsonschema.zip && \
cd ejsonschema-master && \
python setup.py install --install-purelib=/usr/local/lib/python3.8/dist-packages
cd ejsonschema-1.0rc4 && \
python setup.py install --install-purelib=/usr/local/lib/python3.10/dist-packages

RUN curl -L -o pynoid.zip \
https://github.com/RayPlante/pynoid/archive/master.zip && \
unzip pynoid.zip && \
cd pynoid-master && \
python setup.py install --install-purelib=/usr/local/lib/python3.8/dist-packages
python setup.py install --install-purelib=/usr/local/lib/python3.10/dist-packages

CMD ["bash"]

2 changes: 1 addition & 1 deletion docker/pymongo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This provides the base support for Python 3.8 and MongoDB 4.4
# This provides the base support for Python 3.10 and MongoDB 7.0

FROM mongo:7.0-jammy
# VOLUME /data
Expand Down

0 comments on commit 2ee0fe7

Please sign in to comment.