Open Dev Container in Visual Studio Code. Requires the Dev Containers extension.
To use WebPODA APIs, an access token needs to be defined in the environment as WEBPODA_AUTH_CODE
. If this variable exists in WSL's ~/.bashrc
or ~/.zshrc
, then this will be automatically copied over to the Dev Container. The access token needs to be defined as an encrypted string, as explained on the WebPODA documentation.
-
Download and install Poetry following the instructions for your OS.
-
Set up the virtual environment:
poetry install
-
Activate the virtual environment (alternatively, ensure any python-related command is preceded by
poetry run
):poetry shell
-
Install the git hooks:
pre-commit install
-
To use the docker /data mount you need a folder on your WSL and a user with a given UID
# in WSL on your HOST
mkdir -p /mnt/imap-data
sudo adduser -u 5678 --disabled-password --gecos "" appuser
# you have created the user with the same UID as in the container. now grant the folder to the user
chown -R appuser:appuser /mnt/imap-data
./build.sh
./pack.sh
You can also build a compiled linux executable with ./build-linux.sh
and a docker image with ./build-docker.sh