Skip to content
Davide Polonio edited this page Dec 22, 2017 · 3 revisions

Setting up the dev environment

Python version

TorreArchimedeBot runs on Python3.6, and other version won't be supported at the moment, mainly because of time costraints.

TorreArchimedeBot and Docker

The TorreArchimedeBot development is based on Docker. This ensures that any developer working on this project has the same Python version with the same configuration, eliminating the possibility of hard-to-debug-errors based on the developer operating system. You can even work without it, but the debugging process will be more difficult and there could be unexpected errors.

If you have not hear about Docker yet you should check it out first, and then continue with the reading of this page.

How to build the bot

Building the bot it's an easy process that require only one command. From your operating system, open a terminal, move to the project root, and type:

docker build -t torrearchimedebot .

This command will launch Docker that will build an image, automatically downloading all the dependences needed for the bot in order to run.

How to launch the bot

There are different ways to launch the bot: this first one (and the simpliest) is to launch it directly using Docker, and the second one instead is using docker-compose.