From 90dcada889fd0f45bbac79811a5b5b1847e86450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilherme=20Ara=C3=BAjo?= Date: Mon, 4 Nov 2019 14:42:50 -0300 Subject: [PATCH] Force tzdata update when building images --- ballerina/install | 3 ++- cordova/install | 3 ++- elixir/install | 3 ++- go/install | 3 ++- java/install | 4 +++- lua/install | 4 +++- nodejs/install | 4 ++++ perl/install | 3 ++- php/install | 2 +- play/install | 3 ++- python/install | 2 ++ ruby/install | 4 +++- 12 files changed, 28 insertions(+), 10 deletions(-) diff --git a/ballerina/install b/ballerina/install index 02d69c1..4104ca6 100755 --- a/ballerina/install +++ b/ballerina/install @@ -8,7 +8,8 @@ SOURCE_DIR=/var/lib/tsuru source ${SOURCE_DIR}/base/rc/config apt-get update -apt-get install -y --no-install-recommends +export DEBIAN_FRONTEND=noninteractive +apt-get install -y --no-install-recommends tzdata curl -R -O https://dist.ballerina.io/downloads/0.991.0/ballerina-linux-installer-x64-0.991.0.deb dpkg -i ballerina-linux-installer-x64-0.991.0.deb diff --git a/cordova/install b/cordova/install index 7e14adb..e60af60 100755 --- a/cordova/install +++ b/cordova/install @@ -8,7 +8,8 @@ SOURCE_DIR=/var/lib/tsuru source ${SOURCE_DIR}/base/rc/config apt-get update -apt-get install -y --no-install-recommends nginx +export DEBIAN_FRONTEND=noninteractive +apt-get install -y --no-install-recommends nginx tzdata rm -rf /var/log/nginx /var/lib/nginx mkdir -p /var/log/nginx /var/lib/nginx diff --git a/elixir/install b/elixir/install index 524223c..bf473c6 100755 --- a/elixir/install +++ b/elixir/install @@ -7,4 +7,5 @@ curl -LO http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && dpkg -i erlang-solutions_1.0_all.deb apt-get update -apt-get install -y --no-install-recommends esl-erlang elixir libssl-dev +export DEBIAN_FRONTEND=noninteractive +apt-get install -y --no-install-recommends esl-erlang elixir libssl-dev tzdata diff --git a/go/install b/go/install index 6e3861c..c84e4e6 100755 --- a/go/install +++ b/go/install @@ -8,7 +8,8 @@ SOURCE_DIR=/var/lib/tsuru source ${SOURCE_DIR}/base/rc/config apt-get update -apt-get install -y --no-install-recommends curl jq git +export DEBIAN_FRONTEND=noninteractive +apt-get install -y --no-install-recommends curl jq git tzdata cp ${SOURCE_DIR}/go/Procfile ${SOURCE_DIR}/default/Procfile echo "export GOPATH=${APP_DIR}" | tee -a ${HOME}/.profile /etc/profile >/dev/null diff --git a/java/install b/java/install index f1c9e1e..8068def 100755 --- a/java/install +++ b/java/install @@ -8,10 +8,12 @@ SOURCE_DIR=/var/lib/tsuru source ${SOURCE_DIR}/base/rc/config apt-get update +export DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ openjdk-11-jdk \ maven \ - tomcat8 + tomcat8 \ + tzdata cp $SOURCE_DIR/java/Procfile $SOURCE_DIR/default/Procfile diff --git a/lua/install b/lua/install index 1891361..04c897e 100755 --- a/lua/install +++ b/lua/install @@ -8,12 +8,14 @@ SOURCE_DIR=/var/lib/tsuru source ${SOURCE_DIR}/base/rc/config apt-get update +export DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ make \ gcc \ build-essential \ libreadline7 \ - libreadline-dev + libreadline-dev \ + tzdata curl -R -O http://www.lua.org/ftp/lua-5.3.3.tar.gz tar zxf lua-5.3.3.tar.gz diff --git a/nodejs/install b/nodejs/install index d0bab3d..1b326e8 100755 --- a/nodejs/install +++ b/nodejs/install @@ -7,6 +7,10 @@ SOURCE_DIR=/var/lib/tsuru source ${SOURCE_DIR}/base/rc/config +apt-get update +export DEBIAN_FRONTEND=noninteractive +apt-get install -y --no-install-recommends tzdata + curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.7/install.sh | NVM_DIR=/etc/nvm bash cat >> ${HOME}/.profile <