Automation of a local dev environment to learn, self-document, save time and avoid to reinvent the wheel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ "$(id -u)" -ne 0 ]; then
|
|
|
|
echo "This script should be run as root. Aborting..." > /dev/stderr
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
|
|
|
|
|
|
|
eval "${SCRIPTPATH}/install_packages.sh"
|
|
|
|
eval "${SCRIPTPATH}/install_docker.sh"
|
|
|
|
eval "${SCRIPTPATH}/install_docker-compose.sh"
|
|
|
|
eval "${SCRIPTPATH}/disable_swap.sh"
|
|
|
|
eval "${SCRIPTPATH}/generate_ssh_cluster.sh"
|
|
|
|
#eval "${SCRIPTPATH}/install_kubectl.sh"
|
|
|
|
#eval "${SCRIPTPATH}/install_rke.sh"
|
|
|
|
|
|
|
|
apt-get clean
|