-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87f3242
commit 65d9f3f
Showing
4 changed files
with
108 additions
and
3 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
examples/unfurl-technology---boutique---plus-maintenance-automated/scripts/times.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#! /usr/bin/bash | ||
set -e | ||
|
||
# Set working directory | ||
cd "$(dirname "$0")" | ||
|
||
# Load configuration | ||
source configuration.sh | ||
|
||
# Ensure vintner binary is used | ||
VINTNER=/usr/bin/vintner | ||
if [[ ! -f "${VINTNER}" ]]; then | ||
echo "vintner binary located at \"${VINTNER}\" must be used" | ||
exit 0 | ||
fi | ||
|
||
# Prepare | ||
rm -rf /tmp/boutique-model | ||
cp -R ${TEMPLATE_DIR} /tmp/boutique-model | ||
|
||
# Enrich | ||
echo "Enriching ..." | ||
time $VINTNER template enrich --template /tmp/boutique-model/variable-service-template.yaml --output /tmp/boutique-model/variable-service-template.yaml | ||
echo | ||
echo | ||
|
||
# Resolve | ||
for DIR in ../tests/*/; | ||
do | ||
DIR=$(basename $DIR) | ||
echo "Resolving \"${DIR}\" ..." | ||
time $VINTNER template resolve --template /tmp/boutique-model/variable-service-template.yaml --output /tmp/boutique-model/variable-service-template-${DIR}.yaml --inputs ${TEMPLATE_DIR}/tests/${DIR}/inputs.yaml | ||
echo | ||
echo | ||
done |
6 changes: 3 additions & 3 deletions
6
examples/unfurl-technology---industry---plus-maintenance-automated/scripts/configuration.env
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
TEMPLATE_NAME="technology-gcp" | ||
#VINTNER="node ../../../build/cli/index.js" | ||
VINTNER="../../../task vintner" | ||
VINTNER="node ../../../build/cli/index.js" | ||
#VINTNER="../../../task vintner" | ||
ORCHESTRATOR="unfurl" | ||
VARIANT="local" | ||
VARIANT="hyperscaler" |
35 changes: 35 additions & 0 deletions
35
examples/unfurl-technology---industry---plus-maintenance-automated/scripts/times.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#! /usr/bin/bash | ||
set -e | ||
|
||
# Set working directory | ||
cd "$(dirname "$0")" | ||
|
||
# Load configuration | ||
source configuration.sh | ||
|
||
# Ensure vintner binary is used | ||
VINTNER=/usr/bin/vintner | ||
if [[ ! -f "${VINTNER}" ]]; then | ||
echo "vintner binary located at \"${VINTNER}\" must be used" | ||
exit 0 | ||
fi | ||
|
||
# Prepare | ||
rm -rf /tmp/boutique-model | ||
cp -R ${TEMPLATE_DIR} /tmp/boutique-model | ||
|
||
# Enrich | ||
echo "Enriching ..." | ||
time $VINTNER template enrich --template /tmp/boutique-model/variable-service-template.yaml --output /tmp/boutique-model/variable-service-template.yaml | ||
echo | ||
echo | ||
|
||
# Resolve | ||
for DIR in ../tests/*/; | ||
do | ||
DIR=$(basename $DIR) | ||
echo "Resolving \"${DIR}\" ..." | ||
time $VINTNER template resolve --template /tmp/boutique-model/variable-service-template.yaml --output /tmp/boutique-model/variable-service-template-${DIR}.yaml --inputs ${TEMPLATE_DIR}/tests/${DIR}/inputs.yaml | ||
echo | ||
echo | ||
done |
35 changes: 35 additions & 0 deletions
35
examples/unfurl-technology---shop---plus-maintenance-automated/scripts/times.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#! /usr/bin/bash | ||
set -e | ||
|
||
# Set working directory | ||
cd "$(dirname "$0")" | ||
|
||
# Load configuration | ||
source configuration.sh | ||
|
||
# Ensure vintner binary is used | ||
VINTNER=/usr/bin/vintner | ||
if [[ ! -f "${VINTNER}" ]]; then | ||
echo "vintner binary located at \"${VINTNER}\" must be used" | ||
exit 0 | ||
fi | ||
|
||
# Prepare | ||
rm -rf /tmp/boutique-model | ||
cp -R ${TEMPLATE_DIR} /tmp/boutique-model | ||
|
||
# Enrich | ||
echo "Enriching ..." | ||
time $VINTNER template enrich --template /tmp/boutique-model/variable-service-template.yaml --output /tmp/boutique-model/variable-service-template.yaml | ||
echo | ||
echo | ||
|
||
# Resolve | ||
for DIR in ../tests/*/; | ||
do | ||
DIR=$(basename $DIR) | ||
echo "Resolving \"${DIR}\" ..." | ||
time $VINTNER template resolve --template /tmp/boutique-model/variable-service-template.yaml --output /tmp/boutique-model/variable-service-template-${DIR}.yaml --inputs ${TEMPLATE_DIR}/tests/${DIR}/inputs.yaml | ||
echo | ||
echo | ||
done |