Skip to content

Commit c94d965

Browse files
committed
feat: add numpy, pandas and seaborn to poentry.toml
These libraries are needed for the ab_plot.py Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
1 parent d31ee7c commit c94d965

File tree

3 files changed

+2036
-1378
lines changed

3 files changed

+2036
-1378
lines changed

tools/devctr/Dockerfile

Lines changed: 7 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,17 @@ 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"
92+
# RUN pip3 install --upgrade poetry
9093

9194
ARG VENV="/opt/venv"
9295
COPY tools/devctr/poetry.lock /tmp/poetry/
9396
COPY tools/devctr/pyproject.toml /tmp/poetry/
9497
RUN cd /tmp/poetry \
95-
&& virtualenv $VENV \
98+
&& python3 -m venv $VENV \
9699
&& . $VENV/bin/activate \
97100
&& poetry install --only main --no-directory --no-interaction \
98101
&& rm -rf ~/.local/share/virtualenv/ ~/.cache /tmp/poetry \

0 commit comments

Comments
 (0)