2019-07-06 16:12:32 +00:00
|
|
|
#!/bin/sh
|
2024-01-07 21:49:03 +00:00
|
|
|
docker run --rm code.0x2620.org/0x2620/pandora docker-compose.yml > docker-compose.yml
|
2019-07-06 16:12:32 +00:00
|
|
|
if [ ! -e .env ]; then
|
2024-01-07 21:49:03 +00:00
|
|
|
docker run --rm code.0x2620.org/0x2620/pandora .env > .env
|
2019-07-06 16:12:32 +00:00
|
|
|
echo .env >> .gitignore
|
|
|
|
fi
|
|
|
|
if [ ! -e config.jsonc ]; then
|
2024-01-07 21:49:03 +00:00
|
|
|
docker run --rm code.0x2620.org/0x2620/pandora config.jsonc > config.jsonc
|
2019-07-06 16:12:32 +00:00
|
|
|
fi
|
|
|
|
cat > README.md << EOF
|
|
|
|
pan.do/ra docker instance
|
|
|
|
|
|
|
|
this folder was created with
|
|
|
|
|
2024-01-07 21:49:03 +00:00
|
|
|
docker run --rm code.0x2620.org/0x2620/pandora setup | sh
|
2019-07-06 16:12:32 +00:00
|
|
|
|
|
|
|
To start pan.do/ra adjust the files in this folder:
|
|
|
|
|
|
|
|
- add email configuration to .env
|
|
|
|
- adjust config.jsonc to customize pan.do/ra
|
|
|
|
- add local django settings to settings.py
|
|
|
|
|
|
|
|
and to get started run this:
|
|
|
|
|
2024-01-08 11:10:13 +00:00
|
|
|
docker compose up -d
|
2019-07-06 16:12:32 +00:00
|
|
|
|
|
|
|
To update pan.do/ra run:
|
|
|
|
|
2024-01-08 11:10:13 +00:00
|
|
|
docker compose run --rm pandora ctl update
|
2019-07-06 16:12:32 +00:00
|
|
|
|
2024-01-08 11:10:13 +00:00
|
|
|
To run pan.do/ra manage shell:
|
|
|
|
|
|
|
|
docker compose run --rm pandora ctl manage shell
|
2019-07-06 16:12:32 +00:00
|
|
|
EOF
|
|
|
|
touch __init__.py
|