Skip to content

Commit 7b97660

Browse files
committed
feat: add numpy, pandas and seaborn to poentry.toml
These libraries are needed for the ab_plot.py. At the same time update `python` version defined in the `pyproject.toml`. This is required because for some reason poetry errors when pooling dependencies saying the python version is too old. Updating the python version caused other problems with poetry installation with `pip3 install`. Because of this, change the way poetry is insatlled by pooling it directly from a website. Additionally the change broke somehow `virtualenv`, so just install `python3-venv` manually. Signed-off-by: Egor Lazarchuk <[email protected]>
1 parent cac5e79 commit 7b97660

File tree

3 files changed

+2035
-1378
lines changed

3 files changed

+2035
-1378
lines changed

tools/devctr/Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ RUN apt-get update \
7171
iptables \
7272
openssh-client \
7373
pkgconf \
74-
python3 python3-dev python3-pip \
74+
python3 python3-dev python3-pip python3-venv \
7575
screen tmux \
7676
tzdata \
7777
tini \
@@ -85,14 +85,16 @@ RUN apt-get update \
8585
libcap2 \
8686
# for debugging
8787
gdb strace trace-cmd \
88-
&& rm -rf /var/lib/apt/lists/* \
89-
&& pip3 install --upgrade poetry
88+
&& rm -rf /var/lib/apt/lists/*
89+
90+
RUN curl -sSL https://install.python-poetry.org | python3 -
91+
ENV PATH="/root/.local/bin:$PATH"
9092

9193
ARG VENV="/opt/venv"
9294
COPY tools/devctr/poetry.lock /tmp/poetry/
9395
COPY tools/devctr/pyproject.toml /tmp/poetry/
9496
RUN cd /tmp/poetry \
95-
&& virtualenv $VENV \
97+
&& python3 -m venv $VENV \
9698
&& . $VENV/bin/activate \
9799
&& poetry install --only main --no-directory --no-interaction \
98100
&& rm -rf ~/.local/share/virtualenv/ ~/.cache /tmp/poetry \

0 commit comments

Comments
 (0)