-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some linting, adding github workflow, other fixes
- Loading branch information
Showing
19 changed files
with
243 additions
and
93 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: upload-sctructurizr | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- 'docs/structurizr.dsl' | ||
|
||
jobs: | ||
structurizr-cli: | ||
runs-on: ubuntu-latest | ||
name: Run structurizr-cli | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run structurizr-cli action | ||
uses: aidmax/structurizr-cli-action@v1 | ||
id: test | ||
with: | ||
id: ${{ secrets.structurizr_workspace_id }} | ||
key: ${{ secrets.structurizr_api_key }} | ||
secret: ${{ secrets.structurizr_api_secret }} | ||
workspace: docs/structurizr.dsl | ||
|
||
# optional parameters | ||
url: ${{ secrets.structurizr_api_url }} | ||
merge: false | ||
archive: false |
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,87 @@ | ||
workspace { | ||
# !identifiers hierarchical | ||
|
||
model { | ||
user_monitor = Person "Adminstrator" | ||
user_prediction = Person "User of Predict" | ||
|
||
external_data = SoftwareSystem "External Data" "Source of data coming into the system." | ||
|
||
softwareSystem = SoftwareSystem "Software System" "My software system." { | ||
ingest = Container "Ingest" { | ||
monitor = Component "Monitor" | ||
} | ||
predict = Container "Predict" | ||
label = Container "Label" | ||
train = Container "Train" | ||
ui = Container "Web UI" | ||
|
||
redpanda = Container "RedPanda" { | ||
series_raw = Component "Raw Topic" | ||
series_features = Component "Features Topic" | ||
series_actual = Component "Actual Topic" | ||
} | ||
scylladb = Container "ScyllaDB" { | ||
prediction = Component "Prediction" | ||
summary = Component "Reporting Data" | ||
} | ||
|
||
models = Container "Model Store" | ||
|
||
external_data -> ingest "read websocket stream" | ||
ingest -> series_raw "write stream raw" | ||
ingest -> series_features "write stream feature" | ||
# predict <- redpanda "read stream feature window" | ||
series_features -> predict "read stream feature window" | ||
predict -> prediction "write predict" | ||
# label <- redpanda "read stream raw" | ||
series_raw -> label "read stream raw" | ||
label -> series_actual "write stream actual" | ||
# train <- redpanda "read stream actual" # trigger | ||
series_actual -> train "read stream actual" # trigger | ||
# train <- redpanda "read predict" | ||
redpanda -> train "read predict" | ||
# train <- models "read model versions" | ||
models -> train "read model versions" | ||
train -> models "write updated model versions" | ||
} | ||
|
||
monitor -> user_monitor "monitors" | ||
summary -> "ui" | ||
ui -> user_prediction "reports" | ||
|
||
# deploymentEnvironment "Production" { | ||
# deploymentNode { | ||
|
||
# } | ||
# } | ||
} | ||
|
||
views { | ||
# systemContext SoftwareSystem "SystemContext" { | ||
# include * | ||
# autoLayout | ||
# } | ||
|
||
# styles { | ||
# element "Software System" { | ||
# background #1168bd | ||
# color #ffffff | ||
# } | ||
# element "Person" { | ||
# shape person | ||
# background #08427b | ||
# color #ffffff | ||
# } | ||
# } | ||
styles { | ||
element "Element" { | ||
background #1168bd | ||
color #ffffff | ||
shape RoundedBox | ||
} | ||
|
||
themes https://static.structurizr.com/themes/amazon-web-services-2023.01.31/theme.json https://static.structurizr.com/themes/kubernetes-v0.3/theme.json | ||
} | ||
} | ||
} |
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,25 +1,27 @@ | ||
#!/bin/bash | ||
# Pass in arguments to run commands instead of entering a shell | ||
|
||
cd "$(dirname "${BASH_SOURCE[0]}")" | ||
cd "$(dirname "${BASH_SOURCE[0]}")" || exit | ||
|
||
if [ -f "../out/lb-ip.txt" ]; then | ||
echo "Using dns name from out/lb-ip.txt" | ||
PUBLIC_DNS=$(cat ../out/lb-ip.txt) | ||
else | ||
res=$(aws ec2 describe-instances --filters "Name=tag:Name,Values=["HAProxy"]" --query "Reservations[*].Instances[*].[PublicDnsName]" --output text) | ||
res=$(aws ec2 describe-instances --filters 'Name=tag:Name,Values=["HAProxy"]' --query "Reservations[*].Instances[*].[PublicDnsName]" --output text) | ||
PUBLIC_DNS=${res//[ $'\n']/} | ||
echo ${PUBLIC_DNS} > ../out/lb-ip.txt | ||
echo "${PUBLIC_DNS}" > ../out/lb-ip.txt | ||
echo "Connecting to ${PUBLIC_DNS}" | ||
fi | ||
|
||
if [ -n "$1" ]; then | ||
if [ "$1" == 'scp' ]; then | ||
scp -r -i ~/.ssh/awsec2.pem "$2" "ec2-user@${PUBLIC_DNS}:$3" | ||
elif [ "$1" == 'pcs' ]; then | ||
scp -r -i ~/.ssh/awsec2.pem "ec2-user@${PUBLIC_DNS}:$2" "$3" | ||
else | ||
ssh -t -i ~/.ssh/awsec2.pem ec2-user@${PUBLIC_DNS} "$1" | ||
ssh -t -i ~/.ssh/awsec2.pem ec2-user@"${PUBLIC_DNS}" "$1" | ||
fi | ||
else | ||
ssh -i ~/.ssh/awsec2.pem ec2-user@${PUBLIC_DNS} | ||
ssh -i ~/.ssh/awsec2.pem ec2-user@"${PUBLIC_DNS}" | ||
fi | ||
|
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
|
||
kops export kubeconfig --name ${CLUSTER_NAME} | ||
kops export kubeconfig --name "${CLUSTER_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
Oops, something went wrong.