-
Notifications
You must be signed in to change notification settings - Fork 9
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
Switch to no-systemd variant of open-balena-base #273
Conversation
9c5aa44
to
b7d2649
Compare
8f6d03a
to
7e30725
Compare
Dockerfile
Outdated
|
||
EXPOSE 80 | ||
EXPOSE 81 | ||
FROM balena/open-balena-base:v18.0.8-no-systemd | ||
|
||
# hadolint ignore=DL3008 | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
musl \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need musl? I was able to build the image locally with this entire RUN
step removed so wanted to double-check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch @joshbwlng! That requirement was dropped in registry 2.7.0.
Change-type: minor Signed-off-by: Kyle Harding <[email protected]>
This cointainer only runs a single service and running systemd requires a lot of overhead and extra permissions. Change-type: minor Signed-off-by: Kyle Harding <[email protected]>
Signed-off-by: Kyle Harding <[email protected]>
7e30725
to
ab4f6e2
Compare
We added musl in commit e0daae8 as it was required by registry 2.5.0. In registry 2.7.0 they enabled CGO_ENABLED=0 via commit distribution/distribution@8a800e1 Change-type: patch Signed-off-by: Kyle Harding <[email protected]>
ab4f6e2
to
2cb2e43
Compare
Requires: https://github.com/balena-io/environment-staging/pull/3894
Requires: https://github.com/balena-io/environment-production/pull/2607
See: https://balena.fibery.io/Inputs/Pattern/balenaCloud-systemd-based-components-cannot-run-on-hosts-with-cgroups-v2-4067
See: https://balena.fibery.io/Work/Improvement/Remove-systemd-from-open-balena-registry-2019