From 75c1739d829d9fe30923c15ba0b68a24d735ecbc Mon Sep 17 00:00:00 2001 From: Walker Lee Date: Wed, 31 Aug 2016 22:27:03 +0800 Subject: [PATCH] Update installation.md --- docs/installation.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 3919924584..455364b3f0 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -58,15 +58,13 @@ Once you have Docker installed, simply create the various config files for your ``` cd PokemonGo-Bot -docker build --build-arg TIMEZONE=Europe/London -t pokemongo-bot . +docker build -t pokemongo-bot . ``` -Optionally you can set your timezone with the --build-arg option (default is Etc/UTC). You can find an exhaustive list of timezone here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones - By default our Dockerfile ensures that the "master" branch will be used for building the docker container, if you want to use the "dev" branch then you should build the container with below build command: ``` -docker build --build-arg TIMEZONE=Europe/London --build-arg BUILD_BRANCH=dev -t pokemongo-bot . +docker build --build-arg BUILD_BRANCH=dev -t pokemongo-bot . ``` @@ -83,6 +81,12 @@ To run the bot container with the PokemonGo-Bot Docker image you've created: docker run --name=bot1-pokego --rm -it -v $(pwd)/configs/config.json:/usr/src/app/configs/config.json pokemongo-bot ``` +Optionally you can set your timezone with the -e option (default is Etc/UTC). You can find an exhaustive list of timezone here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones + +``` +docker run --name=bot1-pokego --rm -it -e TIMEZONE=Asia/Taipei -v $(pwd)/configs/config.json:/usr/src/app/configs/config.json pokemongo-bot +``` + >In the case you configured authentification to be handled by auth.json file make sure you mount that file as a volume also >```