With Docker support, all requirements (python, etc) are provided by the Docker container itself, kind of a virtual machine, but consuming less space (~ 300MB) and less memory. This solution also installs the bin/pokedex automatically for you, if not found.
The docker-pokedex executable acts as a wrapper between the Docker container and the real bin/pokedex.
This way, setting up the project becomes as simple as running:
./docker-pokedex setup
You can also run any pokedex command the same way:
./docker-pokedex lookup eevee
Or any other Debian commands via exec:
./docker-pokedex exec ls -la
The docker-compose.yml configuration file also brings extendability for example, by adding a PostgreSQL or MySQL docker container.
It's also a place where to add any environment variable like POKEDEX_INDEX_DIR or POKEDEX_DB_ENGINE like:
With Docker support, all requirements (python, etc) are provided by the Docker container itself, kind of a virtual machine, but consuming less space (~ 300MB) and less memory. This solution also installs the
bin/pokedex
automatically for you, if not found.The
docker-pokedex
executable acts as a wrapper between the Docker container and the realbin/pokedex
.This way, setting up the project becomes as simple as running:
You can also run any
pokedex
command the same way:Or any other Debian commands via
exec
:The
docker-compose.yml
configuration file also brings extendability for example, by adding a PostgreSQL or MySQL docker container.It's also a place where to add any environment variable like
POKEDEX_INDEX_DIR
orPOKEDEX_DB_ENGINE
like: