Update run.sh
This commit is contained in:
parent
5632470e74
commit
eb488a3852
|
@ -1,6 +1,27 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
minikube start
|
||||
./build.sh -b
|
||||
minikube addons enable ingress
|
||||
helm install exam ./helm
|
||||
minikube status | grep -q "Running" && START_MINIKUBE=false || START_MINIKUBE=true
|
||||
|
||||
$START_MINIKUBE && minikube start
|
||||
$START_MINIKUBE && eval $(minikube docker-env)
|
||||
|
||||
read -p "Do you want to run Postgres with a specific version? [y/N]: " answer
|
||||
|
||||
if [ "$answer" == "y" ] || [ "$answer" == "Y" ]; then
|
||||
read -p "Enter the Postgres version: " version
|
||||
./build.sh -b -v "${version}"
|
||||
sed -ni "/repository: db/ {
|
||||
p;
|
||||
n;
|
||||
/tag:.*/ {
|
||||
s/tag:.*/tag: ${version}/;
|
||||
p;
|
||||
d;
|
||||
}
|
||||
}
|
||||
p;" helm/values.yaml
|
||||
fi
|
||||
|
||||
$START_MINIKUBE && minikube addons enable ingress
|
||||
|
||||
helm status exam > /dev/null 2>&1 && helm upgrade exam ./helm || helm install exam ./helm
|
||||
|
|
Loading…
Reference in New Issue