Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved documentation #3604

Merged
merged 1 commit into from
Aug 11, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions docs/docker.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,34 @@
Start by downloading for your platform: [Mac](https://www.docker.com/products/docker#/mac), [Windows](https://www.docker.com/products/docker#/windows), or [Linux](https://www.docker.com/products/docker#/linux). Once you have Docker installed, simply create the various config.json files for your different accounts (e.g. `configs/config-account1.json`) and then create a Docker image for PokemonGo-Bot using the Dockerfile in this [repo](https://hub.docker.com/r/svlentink/pokemongo-bot/).

#Automatic setup
#Setup
##Automatic setup
Use this docker hub url: https://hub.docker.com/r/svlentink/pokemongo-bot/
```
docker pull svlentink/pokemongo-bot
```

#Manual setup
##Manual setup
```
cd PokemonGo-Bot
docker build -t pokemongo-bot .
```

#Run

You can verify that the image was created with:
```
docker images
```
- In case of automatic setup, you'll see an image called: `svlentink/pokemongo-bot`
- In case of manual setup, you'll see an image called: `pokemongo-bot`

To run PokemonGo-Bot Docker image you've created, simple run:
```
docker run --name=pokego-bot1 --rm -it -v $(pwd)/configs/config-account1.json:/usr/src/app/configs/config.json pokemongo-bot
docker run --name=pokego-bot1 --rm -it -v $(pwd)/configs/config-account1.json:/usr/src/app/configs/config.json -v $(pwd)/data:/usr/src/app/data pokemongo-bot
```

Replace `pokemongo-bot` with `svlentink/pokemongo-bot` in case you followed automatic setup.

_Check the logs in real-time `docker logs -f pgobot`_

If you want to run multiple accounts with the same Docker image, simply specify different config.json and names in the Docker run command.
Expand Down