Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

update distroless images #1971

Merged
merged 1 commit into from
Dec 5, 2021
Merged

Conversation

dattto
Copy link
Contributor

@dattto dattto commented Dec 1, 2021

This update was initiated mainly to update cc_image distroless image to debian11

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

distroless images have moved to debian11 as a default on 30/09:https://github.com/GoogleContainerTools/distroless/issues/844

cc_image latest digest tag sha256:2c4bb6b7236db0a55ec54ba8845e4031f5db2be957ac61867872bf42e56c4deb
still points to a debian10 image:

$ docker run gcr.io/distroless/cc@sha256:2c4bb6b7236db0a55ec54ba8845e4031f5db2be957ac61867872bf42e56c4deb /lib/x86_64-linux-gnu/libc.so.6

GNU C Library (Debian GLIBC 2.28-10) stable release version 2.28.
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 8.3.0.
libc ABIs: UNIQUE IFUNC ABSOLUTE
For bug reporting instructions, please see:
<http://www.debian.org/Bugs/>.

which breaks c++ applications on mismatching glib versions:

/app/main: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /app/main)
/app/main: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /app/main)

Issue Number: N/A

What is the new behavior?

Updated cc_image based on debian11

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@alexeagle alexeagle merged commit 8c26cf5 into bazelbuild:master Dec 5, 2021
@dattto dattto deleted the update_images branch December 5, 2021 18:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants