Skip to content

fix: update libraries and python for the base image#570

Merged
iennae merged 4 commits into
mainfrom
sigje-modernize-dockerfile
Aug 22, 2024
Merged

fix: update libraries and python for the base image#570
iennae merged 4 commits into
mainfrom
sigje-modernize-dockerfile

Conversation

@iennae

@iennae iennae commented Aug 22, 2024

Copy link
Copy Markdown
Contributor

pulled a selection from the testing infra docs. nox probably needs to pull a latest as well.

@iennae iennae requested a review from a team as a code owner August 22, 2024 06:19
@iennae

iennae commented Aug 22, 2024

Copy link
Copy Markdown
Contributor Author

if tests pass replaces #552; I selected the versions of python and CLOUD_SDK_VERSION based on

https://github.com/googleapis/google-cloud-python/blob/main/.kokoro/docker/docs/Dockerfile

I suspect that this could be simplified a lot more because I think the base is building from https://github.com/googleapis/testing-infra-docker/blob/main/python/cloud-devrel-kokoro-resources/python-base/Dockerfile

@iennae

iennae commented Aug 22, 2024

Copy link
Copy Markdown
Contributor Author

#571 needs to happen first so that nox doesn't get complaints about old version of python not being supported.

Comment thread .kokoro/docker/Dockerfile
ENV CLOUD_SDK_VERSION 489.0.0
# Use system python for cloud sdk.
ENV CLOUDSDK_PYTHON /usr/bin/python
ENV CLOUDSDK_PYTHON python3.12

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Should we use something like ENV CLOUDSDK_PYTHON $(which python3)? (Not sure if that's valid Docker)

@iennae iennae merged commit 21d4d6b into main Aug 22, 2024
@iennae iennae deleted the sigje-modernize-dockerfile branch August 22, 2024 20:01
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

Successfully merging this pull request may close these issues.

2 participants