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

Fix debconf warnings in Docker builds #13

Merged
merged 4 commits into from
Mar 29, 2020
Merged

Conversation

seriema
Copy link
Owner

@seriema seriema commented Mar 29, 2020

Fixes two warnings in the Docker builds:

  1. "debconf: delaying package configuration, since apt-utils is not installed"
    • Installing apt-utils resolves it. Did it in a separate cache layer for transparency, so the first apt-get install above it and it's own install still outputs the warning.
  2. "debconf: unable to initialize frontend: Dialog"
    • The fix for this is from Error debconf: unable to initialize frontend: Dialog moby/moby#27988, but I think it would be persisted in the image. Which we might not want (see below).
    • Another solution from StackOverflow is using ENV but it would be persisted for the users of the image and thus not recommended. The proposed solution in that link uses ARG but did not work.
      • This image is based on Ubuntu 18.04 which could be the reason. The one in docker-multiarch is based on Debian:stretch and it seems to work there. (At the moment of writing I'm waiting for final build)

This PR is just for convenience in the future to see what had to change in the scripts to support the merged feature.

seriema added 4 commits March 28, 2020 13:06
Install apt-utils fixes this warning:
"debconf: delaying package configuration, since apt-utils is not installed"
Configure Debian frontent to be non-interactive. Fixes this warning:
"debconf: unable to initialize frontend: Dialog"

Note: This is not recommended as it affects the built image, so all
users of the image has this setting although it wouldn't make sense for
them. The preferred approach is to use `ARG DEBIAN_FRONTEND=noninteractive`
but this doesn't seem to work on Ubuntu (attempted in `docker-debconf-dialog`).
Will revisit in `docker-multiarch`.
@seriema seriema merged commit 1238fa4 into develop Mar 29, 2020
@seriema seriema deleted the docker-fix-warnings branch March 29, 2020 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant