docker, singularityでtzdata等の対話が必要なモジュールのインストールで止まるとき Please select the geographic area in which you live.
singularityをdefからbuildしていたのですが、以下ような画面でインストールが止まってました。
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.
どうやら、dockerからfromでubuntuを指定して、gitを一緒にインストールするときに発生するようです。
調べたところ、Dockerfileでの解決方法が見つかったので、参考にします。
解決方法(非推奨)
.defファイルの%post
に以下の環境変数を追加
export DEBIAN_FRONTEND=noninteractive
なのですが、Docker公式によると、noninteractiveにし続けるのは非推奨みたいです。
解決方法
apt install
のときだけ適用されるようにして、他のモジュールへの影響を抑えます。
DEBIAN_FRONTEND=noninteractive apt-get install -y git tzdata