File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 4242echo READY
4343
4444if [[ -f /common/user_script ]]; then
45- /common/user_script
45+ /common/user_script $( cat /common/user_script_args 2> /dev/null )
4646fi
Original file line number Diff line number Diff line change 33set -e
44nodeprefix=" m"
55
6+ script_args=()
67while [[ $1 = -* ]]; do
78 if [[ " $1 " = " -s" ]] || [[ " $1 " = " --source" ]]; then
89 shift
@@ -19,6 +20,9 @@ while [[ $1 = -* ]]; do
1920 elif [[ " $1 " = " -f" ]] || [[ " $1 " = " --file" ]]; then
2021 shift
2122 script=$1
23+ elif [[ " $1 " = " -a" ]] || [[ " $1 " = " --file-arg" ]]; then
24+ shift
25+ script_args+=(" $1 " )
2226 fi
2327 shift
2428done
@@ -59,6 +63,10 @@ if [[ "$script" != "" ]]; then
5963 cp $script common/user_script
6064 chmod +x common/user_script
6165fi
66+ if (( ${# script_args[@]} > 0 )) ; then
67+ printf ' %s ' " ${script_args[@]} " > common/user_script_args
68+ fi
69+
6270docker build -t comdb2test:$prefix -f $src /tests/docker/Dockerfile.install $src
6371
6472echo $cluster > common/cluster
You can’t perform that action at this time.
0 commit comments