This script is a simple utility to initialize, update and start the iam-proxy-italia compose structure.
-fForce clean and reinitialize data for Satosa, MongoDB and Djangosaml2_SP-hPrint this help-sSkip docker image update-punset compose profile. Run: satosa and nginx. Usefull for production-mSet 'storage_mongo' compose profile. Run: satosa, nginx, mongo (storage for OIDC/Wallet)-MSet 'mongoexpress' compose profile. Run: satosa, nginx, mongo, mongo-express-dSet 'dev' compose profile. Run: satosa, nginx, django-sp, spid-saml-check (SAML2). If isn't set any of -p, -m, -M, -d, is used 'demo' compose profile. Demo compose profile start: satosa, nginx, storage_mongo, mongo-express, django-sp, spid-saml-check, OIDC demo
run-docker-compose.sh must be executed from docker-compose directory. To run the script the user must have access to the docker system.
On startup the script check if the directories required from docker compose are presents:
- ./iam-proxy-italia-project
- ./djangosaml2_sp
- ./mongo/db
- ./nginx/html/static
After the script test if the required directories are populated and if isn't copy the default files
| Directory | test presence of | default origin |
|---|---|---|
| iam-proxy-italia-project | proxy_conf.yaml | ../iam-proxy-italia-project/* |
| djangosaml2_sp | run.sh | ../iam-proxy-italia-project-demo-examples/djangosaml2_sp/* |
| nginx/html/static | disco.html | ../iam-proxy-italia-project/static/* |
Unless -s options is enabled, on every start the script try to:
- Download the new version of each required images
- Compile the new local image (django_sp)
If -c option is enables, before each, the script remove all data from these directories:
- mongo/db/*
- iam-proxy-italia-project/*
- djangosaml2_sp/*
- nginx/html/static
The empty directories are populated with the default data
- For more details on iam-proxy-italia docker compose read Docker Compose readme
- For more details on iam-proxy-italia docker compose profiles read docker_compose_profiles
- For more details on MongoDB for iam-proxy-italia read MongoDB documentation