Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update poetry to 1.2.2 and regenerate lockfile #55

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
env:
DOCKER_BUILDKIT: "1"
PIPX_VERSION: "1.1.0"
POETRY_VERSION: "1.1.11"
POETRY_VERSION: "1.2.2"

jobs:
python:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
PIPX_VERSION: "1.1.0"
POETRY_VERSION: "1.1.11"
POETRY_VERSION: "1.2.2"

jobs:
pre-commit:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

env:
PIPX_VERSION: "1.1.0"
POETRY_VERSION: "1.1.11"
POETRY_VERSION: "1.2.2"

jobs:
test:
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LABEL org.opencontainers.image.licenses="MIT"
LABEL org.opencontainers.image.source="https://github.com/br3ndonland/inboard"
LABEL org.opencontainers.image.title="inboard"
LABEL org.opencontainers.image.url="https://github.com/br3ndonland/inboard/pkgs/container/inboard"
ARG LINUX_VERSION PIPX_VERSION=1.1.0 POETRY_VERSION=1.1.11
ARG LINUX_VERSION PIPX_VERSION=1.1.0 POETRY_VERSION=1.2.2
ENV APP_MODULE=inboard.app.main_base:app LINUX_VERSION=$LINUX_VERSION PATH=/opt/pipx/bin:/app/.venv/bin:$PATH PIPX_BIN_DIR=/opt/pipx/bin PIPX_HOME=/opt/pipx/home PIPX_VERSION=$PIPX_VERSION POETRY_VERSION=$POETRY_VERSION PYTHONPATH=/app
COPY --link poetry.lock poetry.toml pyproject.toml /app/
WORKDIR /app
Expand All @@ -23,7 +23,7 @@ elif [ "$LINUX_VERSION" = "slim" ]; then
fi
python -m pip install --no-cache-dir --upgrade pip "pipx==$PIPX_VERSION"
pipx install "poetry==$POETRY_VERSION"
poetry install --no-dev --no-interaction --no-root
poetry install --only main --no-interaction --no-root
HEREDOC
COPY --link inboard /app/inboard
ENTRYPOINT ["python"]
Expand All @@ -43,7 +43,7 @@ HEREDOC
FROM builder AS fastapi
ENV APP_MODULE=inboard.app.main_fastapi:app
RUN <<HEREDOC
poetry install --no-dev --no-interaction --no-root -E fastapi
poetry install --only main --no-interaction --no-root -E fastapi
. /etc/os-release
if [ "$ID" = "alpine" ]; then
apk del .build-deps
Expand All @@ -56,7 +56,7 @@ HEREDOC
FROM builder AS starlette
ENV APP_MODULE=inboard.app.main_starlette:app
RUN <<HEREDOC
poetry install --no-dev --no-interaction --no-root -E starlette
poetry install --only main --no-interaction --no-root -E starlette
. /etc/os-release
if [ "$ID" = "alpine" ]; then
apk del .build-deps
Expand Down
6 changes: 3 additions & 3 deletions docs/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ The _Dockerfile_ could look like this:
# Install Python requirements
COPY poetry.lock pyproject.toml /app/
WORKDIR /app
RUN poetry install --no-dev --no-interaction --no-root
RUN poetry install --only main --no-interaction --no-root

# Install Python app
COPY package /app/package
Expand Down Expand Up @@ -256,7 +256,7 @@ The basic build dependencies used by inboard include `gcc`, `libc-dev`, and `mak
build-base freetype-dev gcc libc-dev libpng-dev make openblas-dev postgresql-dev
fi

poetry install --no-dev --no-interaction --no-root
poetry install --only main --no-interaction --no-root

if [ "$ID" = "alpine" ]; then
apk del .build-project
Expand Down Expand Up @@ -309,7 +309,7 @@ A _Dockerfile_ equivalent to the Alpine Linux example might look like the follow
gcc libc-dev make wget
fi

poetry install --no-dev --no-interaction --no-root
poetry install --only main --no-interaction --no-root

if [ "$ID" = "debian" ] && echo "$INBOARD_DOCKER_TAG" | grep -q "slim"; then
apt-get purge --auto-remove -qy \
Expand Down
Loading