Skip to content

Commit

Permalink
Revert "Bug causing deployment to fail with Poetry version > 1.3.0 (#458
Browse files Browse the repository at this point in the history
)" (#461)

This reverts commit 27d8621.

Co-authored-by: Alex Law <[email protected]>
  • Loading branch information
MattPereira and alexlaw528 authored Oct 21, 2023
1 parent 27d8621 commit 02aa4f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions dev/django.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ WORKDIR /code
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# Download Poetry into Path
# shellcheck disable=SC2034
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry POETRY_VERSION=1.3.0 python3 -
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python3 -
ENV PATH=/opt/poetry/bin:$PATH

# Download dependencies
Expand Down
9 changes: 4 additions & 5 deletions stage/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ ENV POETRY_HOME=/usr/local/poetry
ENV PATH="$POETRY_HOME/bin:${PATH}"

# Set up shell for pipe
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
SHELL ["/bin/sh", "-o", "pipefail", "-c"]

# hadolint ignore=DL3018
RUN apk update && apk add --no-cache curl gcc musl-dev libffi-dev jq

# Disabling shellcheck SC2034 because it considers the unused variables POETRY_HOME and POETRY_VERSION as a bug
# shellcheck disable=SC2034
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry POETRY_VERSION=1.3.0 python3 -
# I could not make the linter accept 4006, so I will put this here. Whoever is interested should find a way to resolve this without ignoring.
# hadolint ignore=DL4006
RUN curl -sSL https://install.python-poetry.org | python3 -

COPY backend/pyproject.toml .
COPY backend/poetry.lock .
Expand Down

0 comments on commit 02aa4f7

Please sign in to comment.