Manajemen aplikasi untuk SAGW
Persyaratan
Setelah menginstal dan mengonfigurasinya, unduh docker-compose.yml dan jalankan perintah berikut:
echo " UID= $( id -u ) " > .env
touch ./caluma/.env
docker-compose up -d
Tunggu hingga migrasi database selesai untuk API dan Caluma.
Muat data konfigurasi ke Caluma:
make caluma-loadconfig
Impor konfigurasi Keycloak:
docker-compose exec keycloak /opt/keycloak/bin/kc.sh import --override true --file /opt/keycloak/data/import/test-config.json
Tambahkan mysagw.local
ke /etc/hosts
:
echo " 127.0.0.1 mysagw.local " | sudo tee -a /etc/hosts
Anda sekarang dapat mengakses aplikasi dengan URI berikut:
Pengguna defaultnya adalah:
Nama belakang | Kata sandi | Digunakan untuk |
---|---|---|
admin | jubah kunci | admin jubah kunci |
[email protected] | mysagw | aplikasi |
[email protected] | mysagw | aplikasi |
[email protected] | mysagw | aplikasi |
mySAGW adalah aplikasi 12faktor yang berarti konfigurasi disimpan dalam variabel lingkungan. Tipe variabel lingkungan berbeda dijelaskan di Django-environ.
cp -r ./.envs/.production.example ./.envs/.production
Kemudian edit file di bawah ./.envs/.production/
sesuai kebutuhan Anda.
Untuk lingkungan pementasan, salin ke ./.envs/.staging/
.
echo -e " UID= $( id -u ) nCOMPOSE_FILE=docker-compose.yml:docker-compose.prod.yml " > .env
# on staging environments:
# echo -e "UID=$(id -u)nCOMPOSE_FILE=docker-compose.yml:docker-compose.staging.yml" > .env
# Also in .env file, set OIDC_HOST variable
docker compose up -d
# Wait for the database migrations to complete for the API and Caluma.
make caluma-loadconfig
# upload the templates to DMS
docker compose run --rm api poetry run ./manage.py upload_template -t mysagw/identity/templates/identity-labels.docx
docker compose run --rm api poetry run ./manage.py upload_template -t mysagw/accounting/templates/accounting-cover.docx
docker compose run --rm api poetry run ./manage.py upload_template -t mysagw/case/templates/acknowledgement-de.docx
docker compose run --rm api poetry run ./manage.py upload_template -t mysagw/case/templates/acknowledgement-fr.docx
docker compose run --rm api poetry run ./manage.py upload_template -t mysagw/case/templates/acknowledgement-en.docx
docker compose run --rm api poetry run ./manage.py upload_template -t mysagw/case/templates/credit-approval-de.docx
docker compose run --rm api poetry run ./manage.py upload_template -t mysagw/case/templates/credit-approval-fr.docx
docker compose run --rm api poetry run ./manage.py upload_template -t mysagw/case/templates/credit-approval-en.docx
docker compose run --rm api poetry run ./manage.py upload_template -t mysagw/case/templates/application.docx
Lihat pedoman kontribusi kami untuk memulai kontribusi pertama Anda.