-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·45 lines (38 loc) · 935 Bytes
/
setup.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
#!/bin/bash
set -e
########
# BREW #
########
# check if brew is installed
if ! which brew > /dev/null; then
echo -e "Brew not found! Install? (y/n) \c"
read
if "$REPLY" = "y"; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
exit
fi
fi
# install packages
packages="argocd awscli bcrypt helm k9s kubernetes-cli minikube terraform vault"
packages_with_cask="docker"
for package in $packages; do
if ! which $package > /dev/null; then
brew install $package
fi
done
for package in $packages_with_cask; do
if ! which $package > /dev/null; then
brew install --cask $package
fi
done
############
# MINIKUBE #
############
# start minikube and enable addons
minikube start --memory 4096 --cpus 4
minikube addons enable ingress
minikube addons enable metrics-server
# start minikube tunnel
echo "Starting minikube tunnel..."
sudo minikube tunnel