Giter VIP home page Giter VIP logo

Comments (6)

JakobLichterfeld avatar JakobLichterfeld commented on June 20, 2024 1

libssl and netcat cause the problems in bookworm, local testing looks promising

from teslamate.

brianmay avatar brianmay commented on June 20, 2024 1

The key issue here is that we use multi stage docker builds (as is recommended practice here). The build one has:

FROM elixir:1.16 AS builder

The final one has:

FROM debian:bookworm-slim AS app
...
RUN apt-get update && apt-get install ...

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 :-)
And I still haven't been able to work out how to use nix in CI yet without slowing the CI down excessively (current pain point where I did this for another project).

from teslamate.

JakobLichterfeld avatar JakobLichterfeld commented on June 20, 2024

Has been an issue in the past, see

- Bump app base image to Debian 11 to fix `GLIBC_2.29' not found` error

from teslamate.

micves avatar micves commented on June 20, 2024

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:
https://github.com/teslamate-org/teslamate/actions/runs/8054386860

from teslamate.

JakobLichterfeld avatar JakobLichterfeld commented on June 20, 2024

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:
https://github.com/teslamate-org/teslamate/actions/runs/8054386860

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

from teslamate.

JakobLichterfeld avatar JakobLichterfeld commented on June 20, 2024

Closed by 776e7a2 (Typo in referenced issue)

from teslamate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.