Fix dockerfile being able to pass in params
Change config directory to local config_app one
This commit is contained in:
parent
acf242f241
commit
13293ecdea
14 changed files with 45 additions and 30 deletions
|
@ -3,8 +3,8 @@
|
|||
MODE="$1"
|
||||
|
||||
display_usage() {
|
||||
echo "This script takes one arguments."
|
||||
echo -e "\nUsage: ${0} <interactive|batch|both>\n"
|
||||
echo "This script takes one argument."
|
||||
echo -e "\nUsage: ${0} <config|interactive|batch|both>\n"
|
||||
}
|
||||
|
||||
if [[ "${MODE}" = "help" ]]
|
||||
|
@ -32,6 +32,10 @@ EOF
|
|||
venv/bin/python -m displayversion
|
||||
|
||||
case "$MODE" in
|
||||
"config")
|
||||
echo "Entering config mode, only copying config-app entrypoints"
|
||||
cp -r ${QUAYDIR}/config_app/init/service/* /etc/service
|
||||
;;
|
||||
"interactive")
|
||||
echo "Copying $MODE files"
|
||||
cp -r ${QUAYCONF}/init/service/interactive/* /etc/service
|
||||
|
|
Reference in a new issue