docker: impossible to create image with python3 because tzdata

Bug #1782577 reported by jm_garrido
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
cloud-images
New
Undecided
Unassigned
debconf (Debian)
Fix Released
Unknown
debconf (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

In my application I have to use both "supervisor" and some ML stuff, so I need to include python-3, numpy and pandas

FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y supervisor python3 python3-pip python3-pymongo python3-numpy python3-pandas

This appends with the current ubuntu:latest

sha256:30e04ddada6eb09c12330c7df72cad1573916c7100168c34076808169ff6d805

When I try to make a built of this, I seems that python3 depends on tzdata (and many other things), but then it stops waiting for a user input, and I unable to send an input by hand or other way

Setting up libldap-common (2.4.45+dfsg-1ubuntu1) ...
Setting up libreadline7:amd64 (7.0-3) ...
Setting up tzdata (2018d-1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Configuring tzdata
------------------

Please select the geographic area in which you live. Subsequent configuration
questions will narrow this down by presenting a list of cities, representing
the time zones in which they are located.

  1. Africa 4. Australia 7. Atlantic 10. Pacific 13. Etc
  2. America 5. Arctic 8. Europe 11. SystemV
  3. Antarctica 6. Asia 9. Indian 12. US
Geographic area:

So I am unable to create my docker image!!

This is some kind of regression, 2 weeks ago it worked

Revision history for this message
jm_garrido (jm-garrido) wrote :

I have found a work around, when I put in my Dockerfile

FROM ubuntu:latest
RUN apt-get update
# we need to put in a line appart this dependency, or all the image creation stops waiting for a response from the user
RUN apt-get install -y tzdata
RUN apt-get install -y supervisor python3 python3-pip python3-pymongo python3-numpy python3-pandas

It gives a lot of errors, it says that it is going to use /UTC, but it doesn't keep waiting and the docker image is finished

description: updated
Changed in debconf (Debian):
status: Unknown → New
Revision history for this message
revo (sylvain-mouquet) wrote :

With the env variable :
ENV DEBIAN_FRONTEND noninteractive

the Dockerfile is built successfully

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in debconf (Ubuntu):
status: New → Confirmed
Changed in debconf (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.