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

Fix for Python 3.12.3 constrained #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# With Python 3.12.4 on Alpine 3.20, s3cmd 2.4.0 fails with an AttributeError.
# See ITSE-1440 for details.
FROM python:3.12.3-alpine
FROM python:3.12.4-alpine

# Current version of s3cmd is in edge/testing repo
RUN echo https://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
Expand All @@ -12,10 +12,15 @@ RUN apk update \
postgresql14-client \
py3-magic \
py3-dateutil \
s3cmd \
curl \
jq

jq

RUN wget https://github.com/s3tools/s3cmd/archive/refs/tags/v2.4.0.tar.gz \
&& tar xzf v2.4.0.tar.gz \
&& cd s3cmd-2.4.0 \
&& python setup.py install \
&& cd .. \
&& rm -rf s3cmd-2.4.0 v2.4.0.tar.gz
Comment on lines +18 to +23

Choose a reason for hiding this comment

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

Is there a benefit to installing from source, rather than using their pre-built binary in that GitHub release?

https://github.com/s3tools/s3cmd/releases/download/v2.4.0/s3cmd-2.4.0.zip

# Install sentry-cli
RUN curl -sL https://sentry.io/get-cli/ | bash

Expand Down