-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathinstall-all.sh
executable file
·51 lines (36 loc) · 1.44 KB
/
install-all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
# Installs esignet services in correct order
## Usage: ./install-all.sh [kubeconfig]
if [ $# -ge 1 ] ; then
export KUBECONFIG=$1
fi
ROOT_DIR=`pwd`
SOFTHSM_NS=softhsm
SOFTHSM_CHART_VERSION=12.0.1-B2
echo Create $SOFTHSM_NS namespace
kubectl create ns $SOFTHSM_NS
echo Istio label
kubectl label ns $SOFTHSM_NS istio-injection=enabled --overwrite
helm repo add mosip https://mosip.github.io/mosip-helm
helm repo update
echo Installing Softhsm for esignet
helm -n $SOFTHSM_NS install softhsm-esignet mosip/softhsm -f softhsm-values.yaml --version $SOFTHSM_CHART_VERSION --wait
echo Installed Softhsm for esignet
echo Copy configmaps
./copy_cm_func.sh configmap global default config-server
echo Copy secrets
./copy_cm_func.sh secret softhsm-esignet softhsm config-server
kubectl -n config-server set env --keys=mosip-esignet-host --from configmap/global deployment/config-server --prefix=SPRING_CLOUD_CONFIG_SERVER_OVERRIDES_
kubectl -n config-server set env --keys=security-pin --from secret/softhsm-esignet deployment/config-server --prefix=SPRING_CLOUD_CONFIG_SERVER_OVERRIDES_SOFTHSM_ESIGNET_
kubectl -n config-server get deploy -o name | xargs -n1 -t kubectl -n config-server rollout status
declare -a module=("redis"
"esignet"
"oidc-ui"
)
echo Installing esignet services
for i in "${module[@]}"
do
cd $ROOT_DIR/"$i"
./install.sh
done
echo All esignet services deployed sucessfully.