File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,6 +70,23 @@ if [ -n "${NETWORK_NAME}" ]; then
7070else
7171 echo " No Docker network specified."
7272fi
73- echo " "
7473
75- $CONTAINER_RUNTIME run --rm -ti $ARGS aries-cloudagent-run " $@ "
74+ if [ -n " ${ARG_FILE} " ]; then
75+ if [ -f " ${ARG_FILE} " ]; then
76+ ARG_FILE_IN_DOCKER=" /home/indy/arg-file.yml"
77+ ARGS=" ${ARGS} -v ${ARG_FILE} :${ARG_FILE_IN_DOCKER} "
78+ echo " "
79+ echo " Using acapy config file: ${ARG_FILE} "
80+ else
81+ echo " Config file not found: ${ARG_FILE} " || exit 1
82+ fi
83+ fi
84+
85+ ACAPY_ARGUMENTS=(" $@ " )
86+ if [ -n " ${ARG_FILE_IN_DOCKER} " ]; then
87+ ACAPY_ARGUMENTS=(" ${ACAPY_ARGUMENTS[@]} " " --arg-file" " ${ARG_FILE_IN_DOCKER} " )
88+ fi
89+
90+ echo " "
91+ # shellcheck disable=SC2086,SC2090
92+ $CONTAINER_RUNTIME run --rm -ti $ARGS aries-cloudagent-run " ${ACAPY_ARGUMENTS[@]} "
You can’t perform that action at this time.
0 commit comments