This project supports VSCode Dev Containers. Open the project in VSCode and choose restart in container. To run tests: Terminal -> Run Task -> Run All Tests
Run (cd docker && ./run-dev)
from the command line. You will be prompted with the following message.
You can execute arbitrary commands now, e.g.,
backend/manage.py check && backend/manage.py runserver 0.0.0.0:8000
to start a development instance of the Mail Archive.
cd backend/mlarchive && pytest tests
to run all the tests.
Run cd backend/mlarchive && pytest tests
to run all tests.
Follow these instructions to deploy a containerized version of the system on a staging server.
- Download release tarbal from GitHub and extract
mkdir 2.20.12
cd 2.20.12
wget https://github.com/ietf-tools/mailarchive/releases/download/2.20.12/release.tar.gz
tar xvzf release.tar.gz
- Run compose
docker compose -f compose-sandbox.yml up -d
To load some sample data (messages for a few small lists), from within the app container:
cd backend/mlarchive/bin
./load_sample_data.sh