Skip to content

Commit

Permalink
Force tzdata update when building images
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermearaujo committed Nov 4, 2019
1 parent 6c7c3c4 commit 82d6bc0
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion elixir/install
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
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
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends esl-erlang elixir tzdata
5 changes: 3 additions & 2 deletions go/install
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ SOURCE_DIR=/var/lib/tsuru
source ${SOURCE_DIR}/base/rc/config

apt-get update
apt-get install -y --no-install-recommends \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
bzr \
mercurial \
git \
golang
golang \
tzdata

cp ${SOURCE_DIR}/go/Procfile ${SOURCE_DIR}/default/Procfile
echo "GOPATH=${APP_DIR}" >> ${HOME}/.profile
Expand Down
5 changes: 3 additions & 2 deletions java/install
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ SOURCE_DIR=/var/lib/tsuru
source ${SOURCE_DIR}/base/rc/config

apt-get update
apt-get install -y --no-install-recommends \
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

Expand Down
3 changes: 3 additions & 0 deletions nodejs/install
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
SOURCE_DIR=/var/lib/tsuru
source ${SOURCE_DIR}/base/rc/config

apt-get update
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 <<EOF
Expand Down
2 changes: 1 addition & 1 deletion php/install
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ hhvm_repo="deb http://dl.hhvm.com/ubuntu ${UBUNTU_RELEASE} main"
curl https://dl.hhvm.com/conf/hhvm.gpg.key | apt-key add -
add_repository "${hhvm_repo}"

packages=("nginx-core" "hhvm" "python" "python-yaml" "git" "apache2")
packages=("nginx-core" "hhvm" "python" "python-yaml" "git" "apache2" "tzdata")
for version in $PHP_VERSIONS
do
packages+=("php${version}" "php${version}-fpm" "libapache2-mod-php${version}")
Expand Down
6 changes: 3 additions & 3 deletions python/install
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ PYENV_ROOT="/var/lib/pyenv"
export DEBIAN_FRONTEND=noninteractive

apt-get update
apt-get install -y --no-install-recommends \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev git libexpat1 libffi-dev
xz-utils tk-dev git libexpat1 libffi-dev tzdata

git clone https://github.com/pyenv/pyenv.git ${PYENV_ROOT}
git clone https://github.com/pyenv/pyenv-virtualenv.git ${PYENV_ROOT}/plugins/pyenv-virtualenv
Expand Down Expand Up @@ -50,4 +50,4 @@ apt-get install -y --no-install-recommends \
libsqlite3-0 libncurses5 \
libncursesw5 libreadline7

apt-get autoremove --purge -y
apt-get autoremove --purge -y
5 changes: 3 additions & 2 deletions ruby/install
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source ${SOURCE_DIR}/base/rc/config

# Install Essential Packages
apt-get update
apt-get install -y --no-install-recommends \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
nodejs \
ruby \
libgmp-dev \
Expand All @@ -24,6 +24,7 @@ apt-get install -y --no-install-recommends \
libxml2-dev \
libxslt1-dev \
libcurl4-openssl-dev \
libffi-dev
libffi-dev \
tzdata

echo "export PATH=/home/application/ruby/bin:${PATH} GEM_PATH=/home/application/ruby GEM_HOME=/home/application/ruby BUNDLE_APP_CONFIG=/home/application/ruby/.bundle/config" | tee -a ${HOME}/.profile /etc/profile >/dev/null

0 comments on commit 82d6bc0

Please sign in to comment.