-
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
afdaf11
commit 96b0ace
Showing
18 changed files
with
154 additions
and
4 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
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} |
4 changes: 4 additions & 0 deletions
4
examples/unfurl-technology-maintenance/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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
TEMPLATE_NAME="technology-maintenance" | ||
#VINTNER="node ../../../build/cli/index.js" | ||
VINTNER="yarn cli" | ||
DEPLOYMENT_VARIANT="static" |
29 changes: 29 additions & 0 deletions
29
examples/unfurl-technology-maintenance/scripts/configuration.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,29 @@ | ||
#! /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 DEPLOYMENT_VARIANT is defined | ||
if [[ -z ${DEPLOYMENT_VARIANT} ]]; then | ||
echo "DEPLOYMENT_VARIANT is not defined" | ||
exit 1 | ||
fi | ||
|
||
# Set template directory | ||
TEMPLATE_DIR=$(readlink -f $(dirname $0)/../) |
11 changes: 11 additions & 0 deletions
11
examples/unfurl-technology-maintenance/scripts/continue.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,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} |
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 --template ${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 ${DEPLOYMENT_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,9 @@ | ||
#! /usr/bin/bash | ||
set -e | ||
|
||
# Load configuration | ||
source configuration.sh | ||
|
||
# Pull dependencies | ||
$VINTNER template pull --template ${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,8 @@ | ||
#! /usr/bin/bash | ||
set -e | ||
|
||
# Load configuration | ||
source configuration.sh | ||
|
||
# Quality | ||
$VINTNER template quality --template ${TEMPLATE_DIR}/variable-service-template.yaml --presets ${DEPLOYMENT_VARIANT} |
19 changes: 19 additions & 0 deletions
19
examples/unfurl-technology-maintenance/scripts/reimport.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,19 @@ | ||
#! /usr/bin/bash | ||
set -e | ||
|
||
# Set working directory | ||
cd "$(dirname "$0")" | ||
|
||
# Load configuration | ||
source configuration.sh | ||
|
||
$VINTNER instances delete --instance ${TEMPLATE_NAME} | ||
|
||
$VINTNER templates delete --template ${TEMPLATE_NAME} | ||
|
||
$VINTNER template pull --template ${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 ${DEPLOYMENT_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 unfurl | ||
$VINTNER orchestrators enable --orchestrator unfurl | ||
$VINTNER orchestrators attest --orchestrator unfurl |
11 changes: 11 additions & 0 deletions
11
examples/unfurl-technology-maintenance/scripts/undeploy.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,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} |
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
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