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 1 commit 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.

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