clux / muslrust

Docker environment for building musl based static linux rust binaries
MIT License
965 stars 88 forks source link

silence tzdata #95

Closed suryapandian closed 2 years ago

suryapandian commented 2 years ago

After the recent update to jammy, apt-get install has started prompting an interactive while trying to configure 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  2. America  3. Antarctica  4. Australia  5. Arctic  6. Asia  7. Atlantic  8. Europe  9. Indian  10. Pacific  11. US  12. Etc

This silences the prompt and sets the timezone to UTC by default

Steps to reproduce:

  1. docker run -it clux/muslrust
  2. apt-get update && apt-get install -y awscli
clux commented 2 years ago

Thanks for this!

suryapandian commented 2 years ago

Thanks for this!

Thank you Eirik :) I wanted to add test cases too. Hope that should be possible. Will look into how I could do that and raise a separate PR. Also, this is my first proper OSS contribution, my previous ones were only doc updates.

clux commented 2 years ago

I wanted to add test cases too. Hope that should be possible. Will look into how I could do that and raise a separate PR.

That would be appreciated. Interested to hear or see what types of ideas you have in mind.