docker entrypoint: adapt it to DPP env var
This commit is contained in:
parent
07c25f4a92
commit
d429485651
|
@ -34,7 +34,7 @@ gen_env_vars() {
|
||||||
ADMIN='True'
|
ADMIN='True'
|
||||||
PREDEFINED_TOKEN="${PREDEFINED_TOKEN:-}"
|
PREDEFINED_TOKEN="${PREDEFINED_TOKEN:-}"
|
||||||
# specific dpp env vars
|
# specific dpp env vars
|
||||||
if [ "${DPP_MODULE}" = 'y' ]; then
|
if [ "${DPP}" = 'true' ]; then
|
||||||
# fill env vars in this docker entrypoint
|
# fill env vars in this docker entrypoint
|
||||||
wait_for_dpp_shared
|
wait_for_dpp_shared
|
||||||
export API_DLT='http://api_connector:3010'
|
export API_DLT='http://api_connector:3010'
|
||||||
|
@ -129,11 +129,12 @@ config_phase() {
|
||||||
# TODO: one error on add_user, and you don't add user anymore
|
# TODO: one error on add_user, and you don't add user anymore
|
||||||
./manage.py add_user "${INIT_ORG}" "${INIT_USER}" "${INIT_PASSWD}" "${ADMIN}" "${PREDEFINED_TOKEN}"
|
./manage.py add_user "${INIT_ORG}" "${INIT_USER}" "${INIT_PASSWD}" "${ADMIN}" "${PREDEFINED_TOKEN}"
|
||||||
|
|
||||||
if [ "${DPP_MODULE}" = 'y' ]; then
|
if [ "${DPP}" = 'true' ]; then
|
||||||
# 12, 13, 14
|
# 12, 13, 14
|
||||||
config_dpp_part1
|
config_dpp_part1
|
||||||
|
|
||||||
# cleanup other spnapshots and copy dlt/dpp snapshots
|
# cleanup other spnapshots and copy dlt/dpp snapshots
|
||||||
|
# TODO make this better
|
||||||
rm example/snapshots/*
|
rm example/snapshots/*
|
||||||
cp example/dpp-snapshots/*.json example/snapshots/
|
cp example/dpp-snapshots/*.json example/snapshots/
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue