-
Notifications
You must be signed in to change notification settings - Fork 114
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
Ubuntu images have broken /etc/timezone
file
#161
Comments
Is this filed in an upstream bug tracker somewhere? 👀 |
I've filed a bug against Debian |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All of the buildpack-deps ubuntu images have broken content in
/etc/timezone
:The
/etc/timezone
file is supposed to be the name of a timezone, in the same format as theTZ
environment variable./UTC
is invalid (note the slash at the beginning). The Debian-based buildpack-deps images haveEtc/UTC
in this file, which is correct.The problem happens during installation of the
tzdata
package in the-curl
images.tzdata
has some friendly prompts to configure the timezone, and they're failing when stdin isn't available during the docker build. See the relevant portion of the build log:Debian isn't affected by this bug because the
debian
images already have thetzdata
package installed correctly.The root cause here seems to be a bug in
tzdata
--it shouldn't fail in a way that writes an invalid configuration.But it's easy to work around in buildpack-deps. Setting
DEBIAN_FRONTEND=noninteractive
when runningapt-get install
will prevent packages from trying to prompt for configuration.The text was updated successfully, but these errors were encountered: