Skip to content

Commit

Permalink
added python3.11 (#4)
Browse files Browse the repository at this point in the history
#HSPC-78
  • Loading branch information
polischuks authored Oct 25, 2023
1 parent ed4a484 commit 7b336ae
Show file tree
Hide file tree
Showing 7 changed files with 592 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,23 @@ jobs:
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-python
path: epicbox-python/310
image_name_tag: python:3.10.6
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_python_311_image:
name: Build epicbox/python 3.11 image
runs-on: [ self-hosted, small ]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-python/311
image_name_tag: python:3.11.5
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_ruby_image:
name: Build epicbox/ruby image
runs-on: [self-hosted, small]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
45 changes: 45 additions & 0 deletions epicbox-python/311/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
FROM python:3.11.5-slim


ENV DEBIAN_FRONTEND=noninteractive
ENV NLTK_DIR=/usr/local/nltk_data
ENV MYSTEM_DIR=/usr/local/bin

RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
default-libmysqlclient-dev \
gfortran \
libblas-dev \
libbz2-dev \
libfreetype6-dev \
libgdbm-dev \
libgeos-dev \
libjpeg-dev \
liblapack-dev \
liblzma-dev \
libncursesw5-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
libxslt-dev \
libz-dev \
locales \
pkg-config \
uuid-dev \
wget \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/* \
&& sed -i '/\(en_US.UTF-8\|ru_RU.UTF-8\)/s/^# //g' /etc/locale.gen \
&& locale-gen

COPY requirements.txt /tmp

RUN pip install --no-cache-dir -r /tmp/requirements.txt \
&& python -m nltk.downloader -d ${NLTK_DIR} averaged_perceptron_tagger brown gutenberg movie_reviews omw-1.4 punkt treebank word2vec_sample wordnet \
&& wget -qO- https://download.cdn.yandex.net/mystem/mystem-3.1-linux-64bit.tar.gz | tar xvz -C ${MYSTEM_DIR} \
&& rm /tmp/requirements.txt

RUN useradd -M -d /sandbox sandbox \
&& mkdir /sandbox \
&& chown sandbox:sandbox /sandbox
54 changes: 54 additions & 0 deletions epicbox-python/311/requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
https://github.com/StepicOrg/stepik-common/archive/1.0.0.zip#egg=stepic-common==1.0.0
https://github.com/StepicOrg/stepik-utils/archive/1.2.0.zip#egg=stepic-utils==1.2.0
https://github.com/StepicOrg/stepik-bioinformatics/archive/1.0.0.zip#egg=stepic-bioinformatics==1.0.0
https://github.com/StepicOrg/stepik-alignment/archive/1.1.0.zip#egg=stepik-alignment==1.1.0

sympy==1.12
numpy==1.25.2
scipy==1.11.2
pandas==2.1.0
lxml==4.9.3
hypothesis==6.84.3
toolz==0.12.0
# Cython is required by scikit-image
Cython==3.0.2
matplotlib==3.7.3
networkx==3.1
scikit-image==0.21.0
scikit-learn==1.3.0
# rsa to check encrypted tokens
rsa==4.9
# natural language processing
nltk==3.8.1
pymorphy2==0.9.1
pymystem3==0.2.0
sumy==0.11.0
gensim==4.3.2
fasttext==0.9.2

# big data specialization
apache-airflow==2.7.1

mip==1.15.0
shapely==2.0.1
pycosat==0.6.3

myhdl==0.11

# Hyperskill
django==4.2.5
beautifulsoup4==4.12.2

# Stepik Academy
djangorestframework==3.14.0
factory_boy==3.3.0

opencv-python-headless==4.8.0.76

pysqlite3-binary==0.5.1

# required by admin quiz
pytest==7.4.2
requests==2.31.0
# required by sql challenge
mysqlclient==2.2.0
Loading

0 comments on commit 7b336ae

Please sign in to comment.