Skip to content

Commit

Permalink
QD-9255 Fix permissions for poetry inside conda env
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Jul 10, 2024
1 parent 965add3 commit 9a68a37
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion 2024.1/base/python.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,6 @@ 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 && \
poetry config virtualenvs.create false && \
chmod 777 -R $HOME/.conda $CONDA_DIR/bin $CONDA_DIR/lib $HOME/.config/pypoetry/ && \
rm -rf /tmp/*
3 changes: 2 additions & 1 deletion 2024.1/python-community/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ 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 && \
poetry config virtualenvs.create false && \
chmod 777 -R $HOME/.conda $CONDA_DIR/bin $CONDA_DIR/lib $HOME/.config/pypoetry/ && \
rm -rf /tmp/*

ARG QD_RELEASE="2024.1"
Expand Down
3 changes: 2 additions & 1 deletion 2024.1/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ 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 && \
poetry config virtualenvs.create false && \
chmod 777 -R $HOME/.conda $CONDA_DIR/bin $CONDA_DIR/lib $HOME/.config/pypoetry/ && \
rm -rf /tmp/*

ENV PATH="/opt/yarn/bin:$PATH"
Expand Down
3 changes: 2 additions & 1 deletion 2024.2/base/python.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,6 @@ 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 && \
poetry config virtualenvs.create false && \
chmod 777 -R $HOME/.conda $CONDA_DIR/bin $CONDA_DIR/lib $HOME/.config/pypoetry/ && \
rm -rf /tmp/*
3 changes: 2 additions & 1 deletion 2024.2/python-community/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ 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 && \
poetry config virtualenvs.create false && \
chmod 777 -R $HOME/.conda $CONDA_DIR/bin $CONDA_DIR/lib $HOME/.config/pypoetry/ && \
rm -rf /tmp/*

ARG QD_RELEASE="2024.2"
Expand Down
3 changes: 2 additions & 1 deletion 2024.2/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ 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 && \
poetry config virtualenvs.create false && \
chmod 777 -R $HOME/.conda $CONDA_DIR/bin $CONDA_DIR/lib $HOME/.config/pypoetry/ && \
rm -rf /tmp/*

ENV PATH="/opt/yarn/bin:$PATH"
Expand Down
3 changes: 2 additions & 1 deletion next/base/python.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,6 @@ 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 && \
poetry config virtualenvs.create false && \
chmod 777 -R $HOME/.conda $CONDA_DIR/bin $CONDA_DIR/lib $HOME/.config/pypoetry/ && \
rm -rf /tmp/*

0 comments on commit 9a68a37

Please sign in to comment.