-
Notifications
You must be signed in to change notification settings - Fork 25
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
Poetry #179
Poetry #179
Conversation
Hi @peppelinux , the Dockerfile don't install poetry, work with old method: Lines 29 to 32 in 5a424ee
Could you have missed a commit? |
@peppelinux other question, with env in poetry I have some problem: poetry env is readed
But fail the poetry dependance installation:
This can be a system problem, I need to study this problem |
yeah, weird |
@peppelinux , simplified poetry dockerfile (start from python-xx-alpine): FROM python:3.13-alpine
# Metadata params
ARG BUILD_DATE
ARG VERSION
ARG VCS_URL="https://github.com/italia/iam-proxy-italia.git"
ARG VCS_REF
ARG AUTHORS
ARG VENDOR
# Metadata : https://github.com/opencontainers/image-spec/blob/main/annotations.md
LABEL org.opencontainers.image.authors=$AUTHORS \
org.opencontainers.image.vendor=$VENDOR \
org.opencontainers.image.title="iam-proxy-italia" \
org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.version=$VERSION \
org.opencontainers.image.source=$VCS_URL \
org.opencontainers.image.revision=$VCS_REF \
org.opencontainers.image.description="Docker Image di iam-proxy-italia."
RUN apk add --update --no-cache tzdata mailcap poetry
WORKDIR /satosa_proxy
ADD poetry.lock pyproject.toml ./
RUN poetry lock && poetry install P.S. must be add |
This PR must use a static venv path, according to the requirement shown below |
We can add FROM python:3.13-alpine
# Metadata params
ARG BUILD_DATE
ARG VERSION
ARG VCS_URL="https://github.com/italia/iam-proxy-italia.git"
ARG VCS_REF
ARG AUTHORS
ARG VENDOR
# Metadata : https://github.com/opencontainers/image-spec/blob/main/annotations.md
LABEL org.opencontainers.image.authors=$AUTHORS \
org.opencontainers.image.vendor=$VENDOR \
org.opencontainers.image.title="iam-proxy-italia" \
org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.version=$VERSION \
org.opencontainers.image.source=$VCS_URL \
org.opencontainers.image.revision=$VCS_REF \
org.opencontainers.image.description="Docker Image di iam-proxy-italia."
RUN apk add --update --no-cache tzdata mailcap poetry
RUN poetry config virtualenvs.in-project true
ADD poetry.lock pyproject.toml /
RUN poetry lock && poetry install
WORKDIR /satosa_proxy Now I'm in train, when have a good internet connection I try |
@MdreW I have fixed all the issues, including the one about poetry and several other deprecations and stuffs foudn in a total state of regression |
this PR switches from virtualenv and pip to poetry