Compare commits

...

3 Commits

Author SHA1 Message Date
Daniel Mikula 2e69353029 reordered app name check 2023-05-17 07:53:11 +02:00
Daniel Mikula 9de216c8c3 added readme 2023-05-16 11:27:33 +02:00
Daniel Mikula 94c7e6d2c9 activated git and k3s installation 2023-05-16 08:05:23 +02:00
2 changed files with 33 additions and 17 deletions

14
README.md Normal file
View File

@ -0,0 +1,14 @@
# k3s and Application Installer
Installs k3s and a application on target machine.
For now only application ```sock_shop``` is supported.
Usage:
```
./setup.sh -a sock_shop
```
Help:
```
./setup.sh -h
```

View File

@ -96,6 +96,21 @@ while [ "$#" -gt 0 ]; do
esac
done
# Validate app names
if [ -z "$app_name" ]; then
echo "Please specify app"
else
case $app_name in
"sock_shop")
echo "$app_name OK"
;;
*)
show_allowed_apps
exit 1
;;
esac
fi
# Check if --helm was set
if [ "$helm_install" = true ]; then
install_helm
@ -104,23 +119,10 @@ else
fi
echo "Installing GIT"
# install_git
install_git
echo "Installing K3S"
# install_k3s
install_k3s
# Validate app names
if [ -z "$app_name" ]; then
echo "Please specify app"
else
case $app_name in
"sock_shop")
echo "Installing sock shop"
install_sock_shop
;;
*)
show_allowed_apps
exit 1
;;
esac
fi
echo "Installing $app_name"
install_sock_shop