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

Python 3.5 deprecation warnings using docker container #218

Open
ernestm opened this issue Feb 9, 2021 · 2 comments
Open

Python 3.5 deprecation warnings using docker container #218

ernestm opened this issue Feb 9, 2021 · 2 comments

Comments

@ernestm
Copy link

ernestm commented Feb 9, 2021

When using the cevoaustralia/aws-google-auth docker container to auth to AWS using google, the following messages have begun to appear:

/usr/lib/python3.5/site-packages/secretstorage/dhcrypto.py:16: CryptographyDeprecationWarning: Python 3.5 support will be dropped in the next release of cryptography. Please upgrade your Python.

/usr/lib/python3.5/site-packages/boto3/compat.py:94: PythonDeprecationWarning: Boto3 will no longer support Python 3.5 starting February 1, 2021. To continue receiving service updates, bug fixes, and security updates please upgrade to Python 3.6 or later. More information can be found here: https://aws.amazon.com/blogs/developer/announcing-the-end-of-support-for-python-3-4-and-3-5-in-the-aws-sdk-for-python-and-aws-cli-v1/
warnings.warn(warning, PythonDeprecationWarning)

danmoz added a commit to danmoz/aws-google-auth that referenced this issue Jan 11, 2022
@alongwill
Copy link

I tested this change to the Dockerfile which worked for me:

-FROM alpine:3.5
+FROM alpine:3.15.0
...
-RUN pip3 install -r /build/requirements.txt
+RUN pip3 install --upgrade pip && pip3 install -r /build/requirements.txt

As a side note also had to set the timezone via TZ env var to avoid tzlocal complaining it wasn't set.

export TZ=UTC
docker run -it -e GOOGLE_USERNAME \
  -e GOOGLE_IDP_ID -e GOOGLE_SP_ID \
  -e AWS_PROFILE -e ROLE_ARN -e TZ \
  -v ~/.aws:/root/.aws alongwill/aws-google-auth \
  --region eu-west-1 -d 28800

@sbbowers
Copy link

3.6 is already end-of-life. I've been using aws-google-auth on python 3.9 with no issues for awhile. Could we consider using a base of python:3.9-alpine or testing it against python:3.10-alpine?

danmoz added a commit to danmoz/aws-google-auth that referenced this issue May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants