Skip to content

Commit 0e96f77

Browse files
authored
version 0.16 (#98)
* version 0.16
1 parent ba485ee commit 0e96f77

File tree

218 files changed

+22463
-98038
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+22463
-98038
lines changed

.devcontainer/cli-update.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ mkdir -p "$HOME/bin"
1010
cd "$HOME/bin" || exit
1111

1212
# remove old CLI
13-
rm -rf kic .kic flt .flt ds .ds
13+
rm -rf kic .kic ds .ds
1414

1515
# use latest release
1616
if [ "$tag" = "" ]; then
@@ -22,19 +22,13 @@ wget -O kic.tar.gz "https://github.com/cse-labs/res-edge-labs/releases/download/
2222
tar -xvzf kic.tar.gz
2323
rm kic.tar.gz
2424

25-
# install flt
26-
# wget -O flt.tar.gz "https://github.com/cse-labs/res-edge-labs/releases/download/$tag/flt-$tag-linux-amd64.tar.gz"
27-
# tar -xvzf flt.tar.gz
28-
# rm flt.tar.gz
29-
3025
# install ds
3126
wget -O ds.tar.gz "https://github.com/cse-labs/res-edge-labs/releases/download/$tag/ds-$tag-linux-amd64.tar.gz"
3227
tar -xvzf ds.tar.gz
3328
rm ds.tar.gz
3429

3530
# update completions
3631
kic completion zsh > "$HOME/.oh-my-zsh/completions/_kic"
37-
# flt completion zsh > "$HOME/.oh-my-zsh/completions/_flt"
3832
ds completion zsh > "$HOME/.oh-my-zsh/completions/_ds"
3933

4034
cd "$OLDPWD" || exit

.devcontainer/deploy-res-edge.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,21 @@ kic cluster create
2727
# create the namespace
2828
kubectl apply -f ns.yaml
2929

30+
# create secrets
31+
kubectl create secret generic mssql -n res-edge \
32+
--from-literal=MSSQL_SA_PASSWORD="$MSSQL_SA_PASSWORD"
33+
34+
kubectl create secret generic api -n res-edge \
35+
--from-literal=SQL_CONN_STRING="Server=mssql;Database=ist;UID=sa;Password=$MSSQL_SA_PASSWORD;TrustServerCertificate=True;" \
36+
--from-literal=GIT_OPS_PAT="$PAT"
37+
38+
# note - this is to support an easy inner-loop
39+
# production should be integrated with AD, OpenId, or other SSO provider
40+
kubectl create secret generic ui -n res-edge \
41+
--from-literal=DATA_SERVICE_URL="http://api:8080" \
42+
--from-literal=USER_PWD="Res-Edge-User" \
43+
--from-literal=ADMIN_PWD="Res-Edge-Admin"
44+
3045
# deploy SQL Server with sample data
3146
kubectl apply -k mssql
3247

.devcontainer/devcontainer.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,33 +37,29 @@
3737
},
3838

3939
"hostRequirements": {
40-
"cpus": 4
40+
"cpus": 8
4141
},
4242

4343
// forward ports for the app
4444
"forwardPorts": [
4545
30000,
4646
30080,
47-
30088,
4847
31080,
4948
31088,
5049
32000,
5150
32080,
52-
32088,
53-
32089
51+
32088
5452
],
5553

5654
// add labels
5755
"portsAttributes": {
5856
"30000": { "label": "Prometheus" },
59-
"30080": { "label": "MyApp" },
60-
"30088": { "label": "heartbeat" },
57+
"30080": { "label": "Res-Edge-UI" },
6158
"31080": { "label": "IMDb" },
6259
"31088": { "label": "dogs-cats" },
6360
"32000": { "label": "Grafana" },
64-
"32080": { "label": "Res-Edge" },
65-
"32088": { "label": "tabs-spaces" },
66-
"32089": { "label": "ArgoCD-dashboard" }
61+
"32080": { "label": "Res-Edge-Api" },
62+
"32088": { "label": "tabs-spaces" }
6763
},
6864

6965
"waitFor": "postCreateCommand",

.devcontainer/on-create.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ sudo chsh --shell /bin/zsh vscode
2323

2424
#shellcheck disable=2016,2028
2525
echo 'hsort() { read -r; printf "%s\\n" "$REPLY"; sort }'
26+
echo "alias kuse='kubectl config use-context'"
2627
echo ""
2728

2829
# add cli to path
@@ -107,8 +108,8 @@ kic cluster create
107108
echo "Pulling docker images"
108109
docker pull mcr.microsoft.com/dotnet/sdk:7.0
109110
docker pull mcr.microsoft.com/dotnet/aspnet:7.0-alpine
110-
docker pull ghcr.io/cse-labs/res-edge-webv:0.15
111-
docker pull ghcr.io/cse-labs/res-edge-automation:0.15
111+
docker pull ghcr.io/cse-labs/res-edge-webv:0.16
112+
docker pull ghcr.io/cse-labs/res-edge-automation:0.16
112113

113114
sudo apt-get update
114115

.devcontainer/post-start.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ echo "$(date +'%Y-%m-%d %H:%M:%S') post-start start" >> "$HOME/status"
88
echo "Pulling docker images"
99
docker pull mcr.microsoft.com/dotnet/sdk:7.0
1010
docker pull mcr.microsoft.com/dotnet/aspnet:7.0-alpine
11-
docker pull ghcr.io/cse-labs/res-edge-webv:0.15
12-
docker pull ghcr.io/cse-labs/res-edge-automation:0.15
11+
docker pull ghcr.io/cse-labs/res-edge-webv:0.16
12+
docker pull ghcr.io/cse-labs/res-edge-automation:0.16
1313

1414
echo "post-start complete"
1515
echo "$(date +'%Y-%m-%d %H:%M:%S') post-start complete" >> "$HOME/status"

.ds/commands/.gitkeep

Whitespace-only changes.

.ds/commands/check/webv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
function webv_check {
4-
kubectl exec -it jumpbox -- http webv.api.svc.cluster.local:8080/version
4+
kubectl exec -it jumpbox -- http webv.res-edge.svc.cluster.local:8080/version
55
}
66

77

.ds/commands/cicd

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
# "ds cicd" use the Res-Edge Automation docker image and the Res-Edge Data Service
4+
# to generate GitOps manifest files for each Cluster
5+
6+
# Run "git status" to see the repo changes
7+
8+
# The changes are not pushed to GitHub
9+
# use "ds deploy" to push any GitOps changes
10+
11+
echo "Running ci-cd locally ..."
12+
13+
docker run -it --rm \
14+
--net host \
15+
-v "$PWD":/goa \
16+
ghcr.io/cse-labs/res-edge-automation:0.16 \
17+
-s "${DS_URL}" --no-git

.ds/commands/overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ kind: Kustomization
4545
metadata:
4646
annotations:
4747
version: $DS_APP_VERSION
48-
clusters: none
48+
expression: none
4949
resources:
5050
- ../../base
5151

.ds/commands/sync

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)