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

Add poetry 1.8 image #69

Merged
merged 1 commit into from
Sep 30, 2024
Merged
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
1 change: 1 addition & 0 deletions image-spec.csv
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ context_dir,image_tag,from_tag
./kube-tools/latest,kube-tools,
./node-setup,node-setup,base-ubi-9.4-minimal
./poetry/1.5,poetry-1.5,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we still building 1.5?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll send a separate PR to remove it, I didn't want to do it before all the jobs started passing with 1.8

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, thx - btw. the old 1.5 image would still be there, it would just not receive updates, so this may not need a 2 step process next time.

./poetry/1.8,poetry-1.8,base-ubi-9.4-minimal
./buildah/latest,buildah,
16 changes: 16 additions & 0 deletions poetry/1.8/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM to-be-replaced-by-local-ref/base:ubi-9.4-minimal

RUN set -euExo pipefail && shopt -s inherit_errexit && \
microdnf update -y && \
microdnf install -y make python3.9 git && \
microdnf clean all && \
rm -rf /var/cache/dnf/* && \
poetry_version=1.8.3 && \
installer_checksum="1be64f74ed0a7075331eeb27190aee77c2df37b368b6d7e7523923d178ed125e81f2fb6a13b809344dd56a233c2eeee30321d0a5828b87663336b2f97c1d53bc" && \
poetry_installer="$( mktemp )" && \
curl --fail --retry 5 --retry-all-errors -L "https://raw.githubusercontent.com/python-poetry/install.python-poetry.org/fcd759d6feb9142736a19f8a753be975a120be87/install-poetry.py" -o "${poetry_installer}" && \
sha512sum -c <( echo "${installer_checksum} ${poetry_installer}" ) && \
python3 "${poetry_installer}" --version "${poetry_version}" -y && \
rm "${poetry_installer}" && \
ln -s ~/.local/bin/poetry /usr/local/bin/poetry && \
poetry --version