Skip to content

Commit

Permalink
Build arg for Poetry version and set to latest for testing on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkafton committed Jan 31, 2024
1 parent 78bd021 commit dc5bb9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ RUN mkdir /src
RUN adduser --disabled-password --gecos "" mitodl
RUN mkdir /var/media && chown -R mitodl:mitodl /var/media

ARG POETRY_VERSION=1.5.1

# Poetry env configuration
ENV \
# poetry:
POETRY_VERSION=1.5.1 \
POETRY_VERSION=$POETRY_VERSION \
POETRY_VIRTUALENVS_CREATE=false \
POETRY_CACHE_DIR='/tmp/cache/poetry'

Expand Down
2 changes: 2 additions & 0 deletions docker-compose-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ services:
build:
context: .
dockerfile: Dockerfile
args:
POETRY_VERSION: 1.7.0
environment:
PORT: 8061
env_file: .env.ci
Expand Down

0 comments on commit dc5bb9e

Please sign in to comment.