GithubHelp home page GithubHelp logo

microbadger / docker-pokemongobot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from babfrag/docker-pokemongobot

0.0 1.0 0.0 25 KB

docker for jabbink/PokemonGoBot

License: GNU General Public License v3.0

Shell 100.00%

docker-pokemongobot's Introduction

Docker Pokemon Go Bot

Docker Stars Docker Pulls

Docker image to run a Pokemon Go Bot from https://github.com/jabbink/PokemonGoBot (develop)

Based on anapsix/alpine-java:8_jdk

Install Docker

Follow these instructions to get Docker running on your server.

Tags

Two versions of image exist :

  • 1.0.0: no privilege needed, pull develop Pokemon Go Bot and run it from source
  • 1.0.0-tc: extended privileges needed to control traffic and limit requests/secondes, pull develop and run it from source

Thanks to fixes of requests spamming in bot stack, latest is now without traffic control.

Download

Get the trusted build from the Docker Hub registry:

docker pull babfrag/docker-pokemongobot

or download and compile the source yourself from GitHub:

git clone https://github.com/babfrag/docker-PokemonGoBot.git
cd docker-PokemonGoBot
docker build -t babfrag/docker-pokemongobot .

How to use this image

Environment variables

This Docker image uses mandatory environment variables that override the bot config.properties defaults values, that can be declared in an env file (see pogobot.env.example file):

pogo_username=<google or ptc login>
pogo_password=<google or ptc password>
pogo_latitude=<starting latitude like 1.50>
pogo_longitude=<starting longitude like 1.50>

You can specify any other variables to override properties using pattern :

pogo_<property_to_override>=<custom value>

Example : if you want to override transfer_cp_threshold setting, add the following env variable:

pogo_transfer_cp_threshold=<your custom value>

Start a new Docker container with the following command (replace ./pogobot.env with your own env file) :

This command uses defaults gui ports, of course you can customize them.

This container needs to run w/ privileged so the traffic control trick can be done (-d --privileged) tc qdisc add dev eth0 root netem delay 300ms rate 56kbit

This avoids "RTNETLINK answers: Operation not permitted" error.

docker run \
    --name pogobot \
    --env-file ./pogobot.env \
    -d --privileged \
    -p 8001:8001 \
    babfrag/docker-pokemongobot

docker-compose

This command uses defaults gui ports, of course you can customize them.

pogobot:
    image: babfrag/docker-pokemongobot
    privileged: true
    env_file:
     - <path_to_env_file>
    ports:
     - 8001:8001
    volumes:
     - /etc/localtime:/etc/localtime:ro

Where did the GUI go?

The GUI is now hosted on http://pogo.abb.ink/RocketTheme/

This URL is also shown in the console when you launch the bot.

Let's catch some of them ! โœจ๐ŸŽ‰๐Ÿš€โœจ

Author

Copyright (C) 2016 Babfrag

All credits to AeonLucid, Grover-c13, jabbink

docker-pokemongobot's People

Contributors

babfrag avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.