You will need to replace the values in example.env with your CKAN API key and the url of the remote CKAN server you want to issue commands against before running.
After changing the .env variables and renaming example.env to .env:
- cd into ./Docker
- run
docker build . -t twdhcli, then - run
docker run --env-file ./.env twdhcli:latest - run
docker exec {name of your running container} -it /bin/bash - run your command using
$VENV/bin/python twdhcli.py {YOUR CMD}
Things to note:
- In this image/container, twdhcli is installed in a virtual environment.
- The virtual environment path is stored in the env variable VENV
- Given the two above, to run a script from the twdhcli, you will need to run python like
$VENV/bin/python - You may also activate the venv with
. $VENV/bin/activateto issue cmds simply using 'python' instead