11#! /bin/bash
22
3- # if you change this, you will have to update the sql and api containers as well
4- export MSSQL_SA_PASSWORD=Res-Edge23
5-
63# this runs as part of pre-build
74
85echo " on-create start"
96echo " $( date +' %Y-%m-%d %H:%M:%S' ) on-create start" >> " $HOME /status"
107
8+ export MSSQL_NAME=localhost,31433
9+
1110# Change shell to zsh for vscode
1211sudo chsh --shell /bin/zsh vscode
1312
@@ -30,7 +29,7 @@ sudo chsh --shell /bin/zsh vscode
3029 echo " export KIC_BASE=$PWD "
3130 echo " export KIC_REPO_FULL=\$ (git remote get-url --push origin)"
3231 echo " export KIC_BRANCH=\$ (git branch --show-current)"
33- echo " export MSSQL_SA_PASSWORD= $MSSQL_SA_PASSWORD "
32+ echo " export MSSQL_NAME= $MSSQL_NAME "
3433 echo " "
3534
3635 echo " if [ -z \$ DS_URL ]; then"
@@ -59,7 +58,7 @@ sudo chsh --shell /bin/zsh vscode
5958{
6059 echo ' #!/bin/zsh'
6160 echo " "
62- echo ' /opt/mssql-tools/bin/sqlcmd -d ist -S localhost,31433 -U sa -P "$MSSQL_SA_PASSWORD" "$@"'
61+ echo ' /opt/mssql-tools/bin/sqlcmd -d ist -S "$MSSQL_NAME" -U sa -P "$MSSQL_SA_PASSWORD" "$@"'
6362} > " $HOME /bin/sql"
6463chmod +x " $HOME /bin/sql"
6564
@@ -108,8 +107,8 @@ kic cluster create
108107echo " Pulling docker images"
109108docker pull mcr.microsoft.com/dotnet/sdk:7.0
110109docker pull mcr.microsoft.com/dotnet/aspnet:7.0-alpine
111- docker pull ghcr.io/cse-labs/res-edge-webv:0.16
112- docker pull ghcr.io/cse-labs/res-edge-automation:0.16
110+ docker pull ghcr.io/cse-labs/res-edge-webv:0.17
111+ docker pull ghcr.io/cse-labs/res-edge-automation:0.17
113112
114113sudo apt-get update
115114
0 commit comments