-
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
714fd97
commit 5228092
Showing
37 changed files
with
374 additions
and
43 deletions.
There are no files selected for viewing
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
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
Empty file.
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,3 +1,3 @@ | ||
TEMPLATE_NAME="aware" | ||
VINTNER="node ../../../build/cli/index.js" | ||
DEPLOYMENT_VARIANT="cloud" | ||
DEPLOYMENT_VARIANT="local" |
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
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
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,11 @@ | ||
#! /usr/bin/bash | ||
set -e | ||
|
||
# Set working directory | ||
cd "$(dirname "$0")" | ||
|
||
# Load configuration | ||
source configuration.sh | ||
|
||
# Clean | ||
$VINTNER setup clean --force |
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,11 @@ | ||
#! /usr/bin/bash | ||
set -e | ||
|
||
# Set working directory | ||
cd "$(dirname "$0")" | ||
|
||
# Load configuration | ||
source configuration.sh | ||
|
||
# Open VS Code | ||
$VINTNER instances code --instance ${TEMPLATE_NAME} |
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,5 @@ | ||
TEMPLATE_NAME="xopera-motivation" | ||
VINTNER="node ../../../build/cli/index.js" | ||
#VINTNER="../../../task vintner" | ||
ORCHESTRATOR="xopera" | ||
VARIANT="dev" |
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,36 @@ | ||
#! /usr/bin/bash | ||
set -e | ||
|
||
# Set working directory | ||
cd "$(dirname "$0")" | ||
|
||
# Load configuration | ||
source configuration.env | ||
|
||
# Check that TEMPLATE_NAME is defined | ||
if [[ -z ${TEMPLATE_NAME} ]]; then | ||
echo "TEMPLATE_NAME is not defined" | ||
exit 1 | ||
fi | ||
|
||
# Check that VINTNER is defined | ||
if [[ -z ${VINTNER} ]]; then | ||
echo "VINTNER is not defined" | ||
exit 1 | ||
fi | ||
|
||
|
||
# Check that VARIANT is defined | ||
if [[ -z ${VARIANT} ]]; then | ||
echo "VARIANT is not defined" | ||
exit 1 | ||
fi | ||
|
||
# Check that ORCHESTRATOR is defined | ||
if [[ -z ${ORCHESTRATOR} ]]; then | ||
echo "ORCHESTRATOR is not defined" | ||
exit 1 | ||
fi | ||
|
||
# Set template directory | ||
TEMPLATE_DIR=$(readlink -f $(dirname $0)/../) |
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,11 @@ | ||
#! /usr/bin/bash | ||
set -e | ||
|
||
# Set working directory | ||
cd "$(dirname "$0")" | ||
|
||
# Load configuration | ||
source configuration.sh | ||
|
||
# Continue deployment | ||
$VINTNER instances continue --instance ${TEMPLATE_NAME} --force |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
#! /usr/bin/bash | ||
set -e | ||
|
||
# Set working directory | ||
cd "$(dirname "$0")" | ||
|
||
# Load configuration | ||
source configuration.sh | ||
|
||
$VINTNER template pull --dir ${TEMPLATE_DIR} | ||
$VINTNER templates import --template ${TEMPLATE_NAME} --path ${TEMPLATE_DIR} | ||
$VINTNER instances init --instance ${TEMPLATE_NAME} --template ${TEMPLATE_NAME} | ||
$VINTNER instances resolve --instance ${TEMPLATE_NAME} --presets ${VARIANT} | ||
$VINTNER instances validate --instance ${TEMPLATE_NAME} --inputs ${TEMPLATE_DIR}/deployment-inputs.ignored.yaml | ||
$VINTNER instances deploy --instance ${TEMPLATE_NAME} --inputs ${TEMPLATE_DIR}/deployment-inputs.ignored.yaml |
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,8 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Load configuration | ||
source configuration.sh | ||
|
||
# Enrich | ||
$VINTNER template enrich --template ${TEMPLATE_DIR}/variable-service-template.yaml --output ${TEMPLATE_DIR}/enriched.yaml |
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,9 @@ | ||
#! /usr/bin/bash | ||
set -e | ||
|
||
# Load configuration | ||
source configuration.sh | ||
|
||
# Pull dependencies | ||
$VINTNER template pull --dir ${TEMPLATE_DIR} | ||
|
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,13 @@ | ||
#! /usr/bin/bash | ||
set -e | ||
|
||
# Load configuration | ||
source configuration.sh | ||
|
||
# Quality | ||
for dir in ../tests/*/; | ||
#for dir in "../tests/gcp"; | ||
do | ||
dir=$(basename $dir) | ||
echo "${dir}: $($VINTNER template quality --template ${TEMPLATE_DIR}/variable-service-template.yaml --inputs ${TEMPLATE_DIR}/tests/${dir}/inputs.yaml)" | ||
done |
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,20 @@ | ||
#! /usr/bin/bash | ||
set -e | ||
|
||
# Set working directory | ||
cd "$(dirname "$0")" | ||
|
||
# Load configuration | ||
source configuration.sh | ||
|
||
$VINTNER instances undeploy --instance ${TEMPLATE_NAME} || true | ||
|
||
$VINTNER instances delete --instance ${TEMPLATE_NAME} --force || true | ||
$VINTNER templates delete --template ${TEMPLATE_NAME} || true | ||
|
||
$VINTNER template pull --dir ${TEMPLATE_DIR} | ||
$VINTNER templates import --template ${TEMPLATE_NAME} --path ${TEMPLATE_DIR} | ||
$VINTNER instances init --instance ${TEMPLATE_NAME} --template ${TEMPLATE_NAME} | ||
$VINTNER instances resolve --instance ${TEMPLATE_NAME} --presets ${VARIANT} | ||
$VINTNER instances validate --instance ${TEMPLATE_NAME} --inputs ${TEMPLATE_DIR}/deployment-inputs.ignored.yaml | ||
$VINTNER instances deploy --instance ${TEMPLATE_NAME} --inputs ${TEMPLATE_DIR}/deployment-inputs.ignored.yaml |
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,14 @@ | ||
#! /usr/bin/bash | ||
set -e | ||
|
||
# Set working directory | ||
cd "$(dirname "$0")" | ||
|
||
# Load configuration | ||
source configuration.sh | ||
|
||
# Setup | ||
$VINTNER setup init | ||
$VINTNER orchestrators init ${ORCHESTRATOR} | ||
$VINTNER orchestrators enable --orchestrator ${ORCHESTRATOR} | ||
$VINTNER orchestrators attest --orchestrator ${ORCHESTRATOR} |
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,16 @@ | ||
#! /usr/bin/bash | ||
set -e | ||
|
||
# Set working directory | ||
cd "$(dirname "$0")" | ||
|
||
FS="/c/Users" | ||
if [[ "${OSTYPE}" == "linux-gnu" ]]; then | ||
FS="/home" | ||
fi | ||
|
||
# Delete lib in instance | ||
rm -rf ${FS}/stoetzms/.opentosca_vintner/instances/technology-gcp/data/ensemble/lib | ||
|
||
# Copy local lib into instance | ||
cp -R ../lib ${FS}/stoetzms/.opentosca_vintner/instances/technology-gcp/data/ensemble |
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,11 @@ | ||
#! /usr/bin/bash | ||
set -e | ||
|
||
# Set working directory | ||
cd "$(dirname "$0")" | ||
|
||
# Load configuration | ||
source configuration.sh | ||
|
||
# Undeploy application | ||
$VINTNER instances undeploy --instance ${TEMPLATE_NAME} |
2 changes: 1 addition & 1 deletion
2
examples/xopera-pruning-consistent-loose/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,3 +1,3 @@ | ||
TEMPLATE_NAME="consistent-loose" | ||
VINTNER="task cli --" | ||
VINTNER="node ../../../build/cli/index.js" | ||
VARIABILITY_PRESET="static" |
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
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,11 @@ | ||
#! /usr/bin/bash | ||
set -e | ||
|
||
# Set working directory | ||
cd "$(dirname "$0")" | ||
|
||
# Load configuration | ||
source configuration.sh | ||
|
||
# Clean | ||
$VINTNER setup clean --force |
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,11 @@ | ||
#! /usr/bin/bash | ||
set -e | ||
|
||
# Set working directory | ||
cd "$(dirname "$0")" | ||
|
||
# Load configuration | ||
source configuration.sh | ||
|
||
# Open VS Code | ||
$VINTNER instances code --instance ${TEMPLATE_NAME} |
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,5 @@ | ||
TEMPLATE_NAME="xopera-pruning" | ||
VINTNER="node ../../../build/cli/index.js" | ||
#VINTNER="../../../task vintner" | ||
ORCHESTRATOR="xopera" | ||
VARIANT="static" |
Oops, something went wrong.