|
@ -466,7 +466,7 @@ function prepare_containers() { |
|
|
service="${item[$j]}" |
|
|
service="${item[$j]}" |
|
|
recipe_install="$MIAOU_BASEDIR/recipes/$service/install.sh" |
|
|
recipe_install="$MIAOU_BASEDIR/recipes/$service/install.sh" |
|
|
if [[ -f "$recipe_install" ]]; then |
|
|
if [[ -f "$recipe_install" ]]; then |
|
|
echo "install [$service] onto container <$container>" |
|
|
|
|
|
|
|
|
echo "install [$service] provided by container <$container>" |
|
|
"$recipe_install" "$container" |
|
|
"$recipe_install" "$container" |
|
|
else |
|
|
else |
|
|
echoerr "FAILURE, for container <$container>, install recipe [$service] not found!" |
|
|
echoerr "FAILURE, for container <$container>, install recipe [$service] not found!" |
|
@ -496,7 +496,7 @@ function build_services() { |
|
|
|
|
|
|
|
|
recipe="$MIAOU_BASEDIR/recipes/$app/crud.sh" |
|
|
recipe="$MIAOU_BASEDIR/recipes/$app/crud.sh" |
|
|
if [[ -f "$recipe" ]]; then |
|
|
if [[ -f "$recipe" ]]; then |
|
|
echo "read [$app:$name] onto container <$container>" |
|
|
|
|
|
|
|
|
echo "read [$app:$name] provided by container <$container>" |
|
|
command="env MIAOU_BASEDIR=$MIAOU_BASEDIR MIAOU_CONFIGDIR=$MIAOU_CONFIGDIR $recipe --port $port --container $container --name $name --fqdn $fqdn" |
|
|
command="env MIAOU_BASEDIR=$MIAOU_BASEDIR MIAOU_CONFIGDIR=$MIAOU_CONFIGDIR $recipe --port $port --container $container --name $name --fqdn $fqdn" |
|
|
[[ "$data" != "null" ]] && command+=" --data \"$data\"" |
|
|
[[ "$data" != "null" ]] && command+=" --data \"$data\"" |
|
|
if ! eval "$command -r" >/dev/null; then |
|
|
if ! eval "$command -r" >/dev/null; then |
|
|