-
Notifications
You must be signed in to change notification settings - Fork 703
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
build: bump app base image to fix 'GLIBC_2.34' not found error #3691
Comments
Has been an issue in the past, see Line 384 in 8e7d514
|
Nice find, would it make sense to use debian:latest to avoid similar things in the future? Or could that just cause other issues that we never now when it will change? And we might have new problems with the build due to the new bookworm image: |
No, good practice is to pin all versions. Best would be to build the docker file with nix, as it would be really reproducible and declarative. Damn, need more testing |
libssl and netcat cause the problems in bookworm, local testing looks promising |
Closed by 776e7a2 (Typo in referenced issue) |
The key issue here is that we use multi stage docker builds (as is recommended practice here). The build one has:
The final one has:
When you update the build image you also need to update the Debian image and Debian packages to keep them in sync. And determining what versions to use isn't always easy. There could be circumstances where this isn't always the latest Debian version - particularly if you want to build an old version of Teslamate that is based on an older version of elixir. Yes, building the Docker image from nix would be another solution. Don't think we are quite ready for that though :-) |
Originally posted by @Dhtjf in #3084 (comment)
Originally posted by @micves in #3084 (comment)
Originally posted by @DrMichael in #3084 (comment)
Originally posted by @JakobLichterfeld in #3084 (comment)
Relevant log output
/opt/app/erts-14.2.2/bin/erlexec: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /opt/app/erts-14.2.2/bin/erlexec)
Type of installation
Docker
Version
ghcr.io/teslamate-org/teslamate:pr-3262
The text was updated successfully, but these errors were encountered: