aboutsummaryrefslogtreecommitdiffstats
path: root/docker/docker-entrypoint.sh
blob: 528492b2c003a7b3e97b62a57007ca9485be5f6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

# Configure config file based on  environment variables

python modeling/etsicatalog/catalog/pub/config/config.py
cat modeling/etsicatalog/catalog/pub/config/config.py

function migrate_database {
    cd /service/modeling/etsicatalog
    python manage.py makemigrations
    python manage.py migrate
}

migrate_database

date > /service/init.log

# Start the microservice
/service/modeling/etsicatalog/docker/instance_run.sh