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

Upgrade Debian image to bookworm #345

Open
muffl0n opened this issue Oct 12, 2023 · 8 comments · May be fixed by #346
Open

Upgrade Debian image to bookworm #345

muffl0n opened this issue Oct 12, 2023 · 8 comments · May be fixed by #346

Comments

@muffl0n
Copy link

muffl0n commented Oct 12, 2023

Currently, Debian bullseye is used. It should be updated to bookworm.

@bobidle
Copy link
Contributor

bobidle commented Oct 13, 2023

@muffl0n last time i tried the upgrade of the Google Cloud SDK Images to Debian Bookworm, some SDK packages could not be used. Some of them are use in the provided images. Because of missing deps like Java v8 and Python v2.7 in Debian Bookworm.

I will try the upgrade next week again and if some packages are not installable i will contact the Google support about it.

@muffl0n
Copy link
Author

muffl0n commented Oct 13, 2023

Awesome! Thanks for your feedback! ❤️

@bobidle
Copy link
Contributor

bobidle commented Oct 13, 2023

The upgrade is possible but some default package (e.g. of the latest image) have to be removed. e.g.:

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-java : Depends: openjdk-8-jdk but it is not installable or
                                              openjdk-11-jdk but it is not installable
  google-cloud-cli-app-engine-python : Depends: python2.7 but it is not installable
  google-cloud-cli-datastore-emulator : Depends: openjdk-8-jdk but it is not installable or
                                                 openjdk-11-jdk but it is not installable
  google-cloud-cli-firestore-emulator : Depends: openjdk-8-jdk but it is not installable or
                                                 openjdk-11-jdk but it is not installable
  google-cloud-cli-pubsub-emulator : Depends: openjdk-8-jdk but it is not installable or
                                              openjdk-11-jdk but it is not installable

Unable to correct problems, you have held broken packages.

I am not sure if these breaking changes should be applied to the docker images atm.

e.g. App Engine drops support for Python 2.7 on 2024-01-30
https://cloud.google.com/appengine/docs/standard/lifecycle/support-schedule#python

If the packages should be included in the future, we have to wait for better Python 3 and Java 17 support of the CLI/SDK Debian/Ubuntu packages.

@bobidle bobidle linked a pull request Oct 18, 2023 that will close this issue
@cloudsdkdocker
Copy link
Contributor

+1 on these packages still blocking update. The inclusion of these non-default components is preventing us from ensuring this image is up to date and minimizing its CVE surface area. We have been exploring what our strategy with these images will be going forward given these persistent issues. I will likely open a discussion with some proposals to gauge feedback from users very soon to help inform our next steps!

@bobidle
Copy link
Contributor

bobidle commented Dec 7, 2023

The package google-cloud-cli-app-engine-java in v456.0.0 has updated dependencies. 👍

$ apt info google-cloud-cli-app-engine-java               
Package: google-cloud-cli-app-engine-java
Version: 456.0.0-0
Priority: optional
Section: misc
Maintainer: Google Cloud CLI Authors <https://code.google.com/p/google-cloud-sdk/>
Installed-Size: 147 MB
Depends: google-cloud-cli-app-engine-python, openjdk-8-jdk | openjdk-11-jdk | openjdk-17-jdk | openjdk-21-jdk
Homepage: https://cloud.google.com/sdk/
Download-Size: 126 MB
APT-Sources: https://packages.cloud.google.com/apt cloud-sdk-bullseye/main amd64 Packages
Description: Java runtime for Google App Engine

@bobidle
Copy link
Contributor

bobidle commented Dec 20, 2023

@muffl0n the slim image is already updated to Debian Bookworm (0891370), could you try to use and check the image if everything is working as expected?

@bobidle
Copy link
Contributor

bobidle commented Dec 20, 2023

Also the emulator packages seem to support newer openjdk packages since v457.0.0-0

Package: google-cloud-cli-datastore-emulator
Version: 457.0.0-0
Priority: optional
Section: misc
Maintainer: Google Cloud CLI Authors <https://code.google.com/p/google-cloud-sdk/>
Installed-Size: 41.1 MB
Depends: google-cloud-cli, openjdk-8-jdk | openjdk-11-jdk | openjdk-17-jdk | openjdk-21-jdk
Homepage: https://cloud.google.com/sdk/
Download-Size: 37.6 MB
APT-Sources: https://packages.cloud.google.com/apt cloud-sdk-bookworm/main amd64 Packages
Description: Emulator for Google Cloud Datastore.


Package: google-cloud-cli-firestore-emulator
Version: 457.0.0-0
Priority: optional
Section: misc
Maintainer: Google Cloud CLI Authors <https://code.google.com/p/google-cloud-sdk/>
Installed-Size: 48.7 MB
Depends: google-cloud-cli, openjdk-8-jdk | openjdk-11-jdk | openjdk-17-jdk | openjdk-21-jdk
Homepage: https://cloud.google.com/sdk/
Download-Size: 44.5 MB
APT-Sources: https://packages.cloud.google.com/apt cloud-sdk-bookworm/main amd64 Packages
Description: Emulator for Google Cloud Firestore.


Package: google-cloud-cli-pubsub-emulator
Version: 457.0.0-0
Priority: optional
Section: misc
Maintainer: Google Cloud CLI Authors <https://code.google.com/p/google-cloud-sdk/>
Installed-Size: 69.9 MB
Depends: google-cloud-cli, openjdk-8-jdk | openjdk-11-jdk | openjdk-17-jdk | openjdk-21-jdk
Homepage: https://cloud.google.com/sdk/
Download-Size: 62.9 MB
APT-Sources: https://packages.cloud.google.com/apt cloud-sdk-bookworm/main amd64 Packages
Description: Emulator for Google Cloud Pubsub.

@muffl0n
Copy link
Author

muffl0n commented Jan 8, 2024

Hey @bobidle thanks for your work! Unfortunately I can't test this as we moved to using alpine based images. Sorry. :|

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 a pull request may close this issue.

3 participants