Add tz as argument

This commit is contained in:
Pietro Mazzini 2020-07-25 14:48:17 +02:00
parent 738e96e9d6
commit 7ee8f4ad28
2 changed files with 3 additions and 2 deletions

View file

@ -1,5 +1,6 @@
FROM ubuntu:18.04 FROM ubuntu:18.04
ENV TZ=Europe/Rome ARG tz_buildtime=Europe/Rome
ENV TZ=$tz_buildtime
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Make sure that all updates are in place # Make sure that all updates are in place

View file

@ -20,7 +20,7 @@ curl https://get.docker.com | /bin/bash
git clone https://github.com/CIRCL/AIL-framework.git git clone https://github.com/CIRCL/AIL-framework.git
cd AIL-framework cd AIL-framework
cp -r ./other_installers/docker/Dockerfile ./other_installers/docker/docker_start.sh ./other_installers/docker/pystemon ./ cp -r ./other_installers/docker/Dockerfile ./other_installers/docker/docker_start.sh ./other_installers/docker/pystemon ./
docker build -t ail-framework . docker build --build-arg tz_buildtime=YOUR_GEO_AREA/YOUR_CITY -t ail-framework .
``` ```
3. To start AIL on port 7000, type the following command below: 3. To start AIL on port 7000, type the following command below:
``` ```