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

Update base image to Debian Bookworm #346

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bobidle
Copy link
Contributor

@bobidle bobidle commented Oct 18, 2023

Adjustments to use Debian Bookworm as base image. Only the build via docker was tested.

Successful test builds

Docker Image :emulator

docker build -f emulators/Dockerfile -t google-cloud-cli:emulators --build-arg CLOUD_SDK_VERSION=458.0.0 emulators/

Docker Image :slim

docker build -f debian_slim/Dockerfile -t google-cloud-cli:slim --build-arg CLOUD_SDK_VERSION=458.0.0 debian_slim/

Docker Image :debian_component_based

docker build -f debian_component_based/Dockerfile -t google-cloud-cli:debian_component_based --build-arg CLOUD_SDK_VERSION=458.0.0 debian_component_based/

Failed test builds

Docker Image :latest

docker build -f Dockerfile -t google-cloud-cli:latest --build-arg CLOUD_SDK_VERSION=458.0.0 .

Error message

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 google-cloud-cli-app-engine-python : Depends: python2.7 but it is not installable
E: Unable to correct problems, you have held broken packages.

Fix #345

@bobidle
Copy link
Contributor Author

bobidle commented Dec 5, 2023

I updated the lines in the Dockerfiles according to the latest docs entries

For newer distributions (Debian 9+ or Ubuntu 18.04+) run the following command:

curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg

echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list

https://cloud.google.com/sdk/docs/install#deb

@cloudsdkdocker via commit e96ec52 the gpg key usage in an apt source list was reverted.

Are the changes from the docs still problematic and might break the build? I can't reproduce any failures locally.

@bobidle
Copy link
Contributor Author

bobidle commented Mar 15, 2024

In Google Cloud CLI v486.0.0 (2024-03-12) Python 2 is no longer supported by App Engine. But the Debian packages still depends on it.

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.

Upgrade Debian image to bookworm
1 participant