Skip to content

Commit

Permalink
QD-4163 Fix conda environments creation
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Sep 21, 2023
1 parent d267505 commit 6b11697
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 2023.2/python-community/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ENV JAVA_HOME="$QODANA_DIST/jbr" \
# hadolint ignore=SC2174,DL3009
RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
--mount=target=/var/cache/apt,type=cache,sharing=locked \
rm -f /etc/apt/apt.conf.d/docker-clean && \
rm -f /etc/apt/apt.conf.d/docker-clean && \
mkdir -m 777 -p /opt $QODANA_DATA $QODANA_CONF && apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates=20210119 \
Expand All @@ -34,7 +34,6 @@ RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \

ENV CONDA_DIR="/opt/miniconda3" \
CONDA_ENVS_PATH="$QODANA_DATA/cache/conda/envs" \
CONDA_PKGS_DIRS="$QODANA_DATA/cache/conda/pkgs" \
PIP_CACHE_DIR="$QODANA_DATA/cache/.pip/" \
FLIT_ROOT_INSTALL=1
ENV PATH="$CONDA_DIR/bin:$HOME/.local/bin:$PATH"
Expand Down Expand Up @@ -70,6 +69,7 @@ RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
echo "conda activate base" >> ~/.bashrc && ln -s ${CONDA_DIR}/bin/python3 /usr/bin/python3 && \
find ${CONDA_DIR}/ -follow -type f -name '*.a' -delete && find ${CONDA_DIR}/ -follow -type f -name '*.js.map' -delete && \
${CONDA_DIR}/bin/conda install -c conda-forge poetry pipenv && ${CONDA_DIR}/bin/conda clean -afy && \
chmod 777 -R $HOME/.conda && \
rm -rf /tmp/*

ARG QD_RELEASE="2023.2"
Expand Down
4 changes: 2 additions & 2 deletions 2023.2/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \

ENV CONDA_DIR="/opt/miniconda3" \
CONDA_ENVS_PATH="$QODANA_DATA/cache/conda/envs" \
CONDA_PKGS_DIRS="$QODANA_DATA/cache/conda/pkgs" \
PIP_CACHE_DIR="$QODANA_DATA/cache/.pip/" \
FLIT_ROOT_INSTALL=1
ENV PATH="$CONDA_DIR/bin:$HOME/.local/bin:$PATH"
Expand All @@ -43,7 +42,7 @@ ARG CONDA_VERSION="py310_22.11.1-1"
# hadolint ignore=SC2174,DL3009
RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
--mount=target=/var/cache/apt,type=cache,sharing=locked \
apt-get update && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
bzip2=1.0.8-4 \
libglib2.0-0=2.66.8-1 \
Expand All @@ -70,6 +69,7 @@ RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
echo "conda activate base" >> ~/.bashrc && ln -s ${CONDA_DIR}/bin/python3 /usr/bin/python3 && \
find ${CONDA_DIR}/ -follow -type f -name '*.a' -delete && find ${CONDA_DIR}/ -follow -type f -name '*.js.map' -delete && \
${CONDA_DIR}/bin/conda install -c conda-forge poetry pipenv && ${CONDA_DIR}/bin/conda clean -afy && \
chmod 777 -R $HOME/.conda && \
rm -rf /tmp/*

ENV PATH="/opt/yarn/bin:$PATH"
Expand Down

0 comments on commit 6b11697

Please sign in to comment.