chore: fix missed changes for docker update

This commit is contained in:
Arthur Meyre
2021-11-30 18:25:08 +01:00
parent 3620c6355b
commit faa6dd4403
2 changed files with 3 additions and 17 deletions

View File

@@ -30,17 +30,3 @@ RUN apt-get update && apt-get upgrade --no-install-recommends -y && \
# Remove once compiler is on PyPi https://github.com/zama-ai/concretefhe-internal/issues/809
WORKDIR /pkg
COPY pkg/${WHEEL} .
ENV SRC_DIR_NAME=src
RUN echo "source /${SRC_DIR_NAME}/.docker_venv/bin/activate" >> /root/.bashrc && \
echo "if [[ \"\$?\" != \"0\" ]]; then" >> /root/.bashrc && \
echo " python3 -m venv /${SRC_DIR_NAME}/.docker_venv" >> /root/.bashrc && \
echo " source /${SRC_DIR_NAME}/.docker_venv/bin/activate" >> /root/.bashrc && \
echo " cd /${SRC_DIR_NAME}/ && make setup_env" >> /root/.bashrc && \
echo "fi" >> /root/.bashrc && \
echo "export MPLBACKEND=TkAgg" >> /root/.bashrc
WORKDIR /${SRC_DIR_NAME}
CMD ["/bin/bash"]

View File

@@ -6,10 +6,10 @@
set +e
# shellcheck disable=SC1091
if ! source /src/.docker_venv/bin/activate; then
python3 -m venv /src/.docker_venv
if ! source /root/dev_venv/bin/activate; then
python3 -m venv /root/dev_venv
# shellcheck disable=SC1091
source /src/.docker_venv/bin/activate
source /root/dev_venv/bin/activate
cd /src/ && make setup_env
fi