Added docker-compose easy provisioning#1588
Conversation
|
don't know docker well but does it run pip as root? |
|
When you use docker, you run all stuff from root. As far as it's isolated, virtualenv is not needed. |
|
@ogir-ok thnx for the clarification, than the change sounds good to me! +1 |
Dockerfile
Outdated
| @@ -3,4 +3,5 @@ FROM python:2.7-onbuild | |||
| RUN apt-get update \ | |||
| && apt-get install -y python-protobuf | |||
There was a problem hiding this comment.
Don't needed, pip install is enought
There was a problem hiding this comment.
This was in initial Dockerfile. So I don't know if I can remove it
There was a problem hiding this comment.
you can remove it, I've been removing it from mine during testing. it runs after pip has run and built everything
There was a problem hiding this comment.
I added this to the Dockerfile because Protobuf 3 library is declared as an installation requirement, see Wiki: https://github.com/PokemonGoF/PokemonGo-Bot/wiki/Installation#requirements-click-each-one-for-install-guide
There was a problem hiding this comment.
- It works without it.
- It's in requirements.txt. Probably error is on some platforms without it's installation.
|
Generally I would recommend to run a single process inside the docker container to follow docker's (container) philosophy. And the great use case of docker-compose is to define the services which should be started -> #1669. |
There is just one process |
|
This branch has conflicts that must be resolved |
* dev: (43 commits) Display Fort Name instead of Fort ID in Log (PokemonGoF#1801) add a flag to enable user to choose if he wants to walk to spin forts (PokemonGoF#1772) [FIX] use_lucky_egg (PokemonGoF#1774) Prevent crash checking session (PokemonGoF#1754) * Always report session summary even on crash (PokemonGoF#1759) Don't try to release pokemons in forts (PokemonGoF#1751) Creating an instance of the workers only on startup (PokemonGoF#1750) No longer caching things on the worker. Pulling straight from the bot instance (PokemonGoF#1747) fixing wrong import Show Pokestop names (PokemonGoF#1671) adding a duplicate of SeenFortWorker before MoveToFortWorker Improve docker usage; use docker-compose for starting the PokemonGo-Bot ecosystem (PokemonGoF#1669) SoftBan Worker (PokemonGoF#1724) Huge clean-up: PEP8, sort imports, remove deprecated and unused imports (PokemonGoF#1697) Update config.json.pokemon.example (PokemonGoF#1711) feat: show xp after catching pokemons (PokemonGoF#1700) Revert "Making the SpiralNavigator a worker" (PokemonGoF#1698) fixes Polyline class to handle a case in which google is returning only one point (PokemonGoF#1674) Making the SpiralNavigator a worker (PokemonGoF#1683) Fix transfer worker not triggered for last pokemon (PokemonGoF#1664) ...
|
Not needed anymore as far as some kind of docker-compose provided in dev |
Change default threads to 1. Slower and accurate results are better than quick and wrong.
Short Description:
run it with just
docker-compose upFixes: