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

deb: DEBIAN_FRONTEND=noninteractive is ENV not ARG #574

Open
wants to merge 14 commits into
base: dev
Choose a base branch
from

Conversation

grooverdan
Copy link
Member

It needs to be an ENV to be passed though to apt-get commands.

Probably worked due to lack of tty.

grooverdan and others added 14 commits September 19, 2024 15:21
Add worker for openeuler 24.03.

Rename container generation to mathc the same name.
Clients in our binary taballs are linked dynamically with libncurses, which causes a trouble on systems where it is no longer available
As per MDBF-794 only centos7 and debian 10 bintar builders need to link statically with libncurses.

- for debian 10: libncurses.a is already present in /scripts/local/lib/ and -DCURSES_NEED_NCURSES=1 flag is enough to link it statically.
- for centos7: I've rebuilt the image and pushed manually a dev_ tag. libncurses.a was present on the system but not in the library path: /scripts/local/lib/

Tests available at:
- debian10: https://buildbot.dev.mariadb.org/#/builders/187/builds/23
- centos7: https://buildbot.dev.mariadb.org/#/builders/172/builds/292

Reference CMAKE output line:
-- Found Curses: /scripts/local/lib/libncurses.a
Adjust images to 1505 notation as well.
Fedora 41 is including MariaDB 10.11 so
use that as the minimum version.
It needs to be an ENV to be passed though to apt-get
commands.
@@ -8,7 +8,7 @@ FROM "$BASE_IMAGE"
LABEL maintainer="MariaDB Buildbot maintainers"

# This will make apt-get install without question
ARG DEBIAN_FRONTEND=noninteractive
ENV DEBIAN_FRONTEND=noninteractive
Copy link
Collaborator

@RazvanLiviuVarzaru RazvanLiviuVarzaru Sep 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want this setting to persist in the built image?
We may need to get an interactive shell into the container and do some package operations where a human prompt would be useful. (and we forget about this setting).

Maybe switching it back to default at the end of the block where its needed?
Or use it specifically for the commands that can cause problems and -y is just not enough.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good comment and I agree with https://serverfault.com/a/797318 and probably 2/ (using it in the RUN call) is the cleaner way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants