- Create & run the container
docker run -it -v canvas-download_data:/app/data -v ${PWD}/downloads:/app/downloads --name canvas-download ghcr.io/vdbe/canvas-download:releaseYou can change ${PWD}/downloads to a location of your choosing,
all downloaded files will be placed here
- Run existing container
docker start -i canvas-downloadYou can leave out the -i if you don't want to attach to the containers STDIN & STDOUT/STEDERR
-
To update the local files run the container again as shown in step 2
-
If you want to see what happend after the container stopped
docker logs canvas-download- Remove container
docker rm canvas-download- Remove data volume
docker volume rm canvas-download_data- Setup & activate venv (optional)
python3 -m env
source env/bin/activate- Install dependencies
pip3 install -r requirements-gui.txt- Run it
python3 src/main.py [config file]This is not needed if no data/config/config.json exists it will be created when you run src/main.py for the first time.
How do I obtain an access token?
Create data/config/config.json file in the root with the following content:
{
"canvas": {
"endpoint": "<canvas endpoint>",
"bearer_token": "<API access token>"
},
"db": {
"directory": "data/db",
"name": "db.json"
},
"download": {
"parallel_downloads": 10,
"download_locked": false,
"path": "./downloads"
}
}