maximkulkin / esp-homekit-demo

Demo of Apple HomeKit accessory server library
MIT License
803 stars 233 forks source link

Docker build issue on Mac related to tz data #405

Closed jpasqua closed 3 years ago

jpasqua commented 3 years ago

When trying to build the docker images the process hangs waiting for input while configuring tz data:

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: 

In the end I had to add the following lines to the docker file:

ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

I am on macOS Catalina 10.15.7

maximkulkin commented 3 years ago

Thank you for reporting this. I have updated build instructions on the Wiki.