Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
Install poetry into the base image for use in CI (#5)
Browse files Browse the repository at this point in the history
This will have zero impact on existing CI jobs, and will allow progress to move forward on Sceptre/sceptre#1035 without having to continue ugly attempts at path munging to get poetry working properly.

This is the exact approach taken by the base CircleCI Python images:
https://github.com/CircleCI-Public/cimg-python/blob/master/Dockerfile.template#L43
  • Loading branch information
tarkatronic authored May 21, 2021
1 parent 3f4a557 commit 3c20cfa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ARG PYENV_HOME=/home/circleci/.pyenv

ENV LANG=C.UTF-8 \
HOME=/home/circleci \
PATH=$PYENV_HOME/shims:$PYENV_HOME/bin:$PATH
PATH=$PYENV_HOME/shims:$PYENV_HOME/bin:/home/circleci/.poetry/bin:$PATH

RUN git clone --depth 1 https://github.com/pyenv/pyenv.git $PYENV_HOME \
&& rm -rfv $PYENV_HOME/.git \
Expand All @@ -47,4 +47,7 @@ RUN git clone --depth 1 https://github.com/pyenv/pyenv.git $PYENV_HOME \
&& pyenv install 3.9.4 \
&& pyenv global system 3.6.13 3.7.10 3.8.9 3.9.4

# Install the latest Poetry
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -

CMD ["/bin/sh"]

0 comments on commit 3c20cfa

Please sign in to comment.