PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

docker cant find auth.json and config.json

Open ntanto opened this issue 10 years ago • 5 comments

Actual Behavior

already try timezone and TIMEZONE

Output when issue occurred

Step 13 : RUN printf "#!/bin/sh\n\nTIMEZONE=${TIMEZONE:-Etc/UTC}\n\nln -sfn /usr/share/zoneinfo/$TIMEZONE /etc/localtime\necho $TIMEZONE > /etc/timezone\n\npython pokecli.py $@\n" > /entrypoint.sh && chmod +x /entrypoint.sh

One or more build-args [TIMEZONE] were not consumed, failing build.

Other Information

OS: Windows 10 Branch: Master Git Commit: 0e2264180fb87283df923d618918374e53f396b4 Python Version: 2.7.12

ntanto avatar Aug 31 '16 06:08 ntanto

@ntanto docker build --build-arg TIMEZONE is no longer available

You can use -e TIMEZONE=Asia/Taipei to set your container timezone

⋊> ~/h/PokemonGo-Bot on dev ⨯ docker run --rm -it -e TIMEZONE=Asia/Taipei pokemongo-bot --help | head -n2
2016-08-31 22:31:58,054 [       cli] [INFO] PokemonGO Bot v1.0
2016-08-31 22:31:58,065 [       cli] [INFO] commit: 42d670a4
⋊> ~/h/PokemonGo-Bot on dev ⨯ docker run --rm -it -e TIMEZONE=Europe/London pokemongo-bot --help | head -n2
2016-08-31 15:32:12,575 [       cli] [INFO] PokemonGO Bot v1.0
2016-08-31 15:32:12,583 [       cli] [INFO] commit: 42d670a4
⋊> ~/h/PokemonGo-Bot on dev ⨯ docker run --rm -it -e TIMEZONE=Africa/Cairo pokemongo-bot --help | head -n2
2016-08-31 16:33:04,085 [       cli] [INFO] PokemonGO Bot v1.0
2016-08-31 16:33:04,094 [       cli] [INFO] commit: 42d670a4

walkerlee avatar Aug 31 '16 14:08 walkerlee

@walkerlee thanks a lot i use -e TZ=Asia/Singapore, its shorter case closed, problem solved

ntanto avatar Aug 31 '16 21:08 ntanto

@ntanto yes, it's better 👍

walkerlee avatar Sep 01 '16 01:09 walkerlee

I can use this out of docker?

ghost avatar Sep 02 '16 13:09 ghost

@MrCarlosJr yes

bash-3.2$ TZ=Asia/Taipei date
Mon Sep  5 18:49:10 CST 2016
bash-3.2$ TZ=Asia/Tokyo date
Mon Sep  5 19:49:15 JST 2016

walkerlee avatar Sep 05 '16 10:09 walkerlee