Deploy with Docker
The prerequisite to run and deploy ATON + THOTH using Docker is to have Docker installed, and to have downloaded/cloned the THOTH repository locally.
Build a Docker image of THOTH
This step allows you to build a docker image which contains ATON + THOTH using the Dockerfile inside the main THOTH folder:
sudo docker build -t thoth
This process creates a docker image named thoth. This will automatically create the image starting from the current location, install ATON and the relevant dependencies and paste the THOTH web app in the appropriate folder.
Basic deploy
Once we built our docker image, we can create and run a new container from thoth image by typing:
sudo docker run --rm thoth -dp 8080:8080 thoth
This will create a container using the image thoth and expose ATON's service in port 8080. Notice that when the container will be stopped, all changes will be lost (e.g. new scenes, new users, etc…), since by default all files created inside a container are stored on a writable container layer.
Note that you can modify the Dockerfile according to the needs of your project/service. For instructions on that refer to the respective ATON documentation on Docker deployment