Skip to content

Commit 61c9caa

Browse files
committed
tc
1 parent 3bbb71e commit 61c9caa

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.ci/docker/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,18 @@ COPY ./common/install_docs_reqs.sh install_docs_reqs.sh
1616
RUN bash ./install_docs_reqs.sh && rm install_docs_reqs.sh
1717

1818
COPY ./common/install_python.sh install_python.sh
19+
COPY ./requirements.txt requirements.txt
1920
RUN bash ./install_python.sh && rm install_python.sh
2021

2122
# Install conda and other packages
2223
# ENV ANACONDA_PYTHON_VERSION=3.10
2324
# ENV CONDA_CMAKE yes
24-
# ENV DOCS yes
25+
ENV DOCS yes
2526
# ENV PATH /opt/conda/envs/py_$ANACONDA_PYTHON_VERSION/bin:/opt/conda/bin:$PATH
26-
# COPY ./requirements.txt /opt/conda/
2727
# COPY ./common/install_conda.sh install_conda.sh
2828
# COPY ./common/common_utils.sh common_utils.sh
2929
# RUN bash ./install_conda.sh && rm install_conda.sh common_utils.sh /opt/conda/requirements.txt
30+
ENV PATH /opt/venv/py310/tutorials/bin:$PATH
3031

3132
USER ci-user
3233
CMD ["bash"]

.ci/docker/common/install_base.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ install_ubuntu() {
2727
libglfw3-dev \
2828
sox \
2929
libsox-dev \
30-
libsox-fmt-all
30+
libsox-fmt-all \
31+
python3.10 \
32+
python3.10-venv
3133

3234
# Cleanup package manager
3335
apt-get autoclean && apt-get clean

.ci/docker/common/install_python.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

33
set -ex
4-
sudo apt install python3.10
54

6-
python -v
7-
8-
pip --help
5+
python3.10 -m venv /opt/venv/tutorials
6+
source /opt/venv/tutorials/bin/activate
7+
pip install --upgrade pip
8+
pip install -r ./requirements.txt

0 commit comments

Comments
 (0)