blob: 7d49ad5033d565c66808e114f315c1feb0d1a4c6 [file] [log] [blame]
Roger Maitlandeb412c62018-05-31 14:09:09 -04001#!/bin/bash
2
3DOCKER_VERSION=17.03
4KUBECTL_VERSION=1.8.10
5HELM_VERSION=2.8.2
6
7# setup root access - default login: oom/oom - comment out to restrict access too ssh key only
8sed -i 's/PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config
9sed -i 's/PasswordAuthentication.*/PasswordAuthentication yes/' /etc/ssh/sshd_config
10service sshd restart
11echo -e "oom\noom" | passwd root
12
13apt-get update
14curl https://releases.rancher.com/install-docker/$DOCKER_VERSION.sh | sh
15mkdir -p /etc/systemd/system/docker.service.d/
16cat > /etc/systemd/system/docker.service.d/docker.conf << EOF
17[Service]
18ExecStart=
19ExecStart=/usr/bin/dockerd -H fd:// --insecure-registry=nexus3.onap.org:10001
20EOF
21systemctl daemon-reload
22systemctl restart docker
23apt-mark hold docker-ce
24
25IP_ADDY=`ip address |grep ens|grep inet|awk '{print $2}'| awk -F / '{print $1}'`
26HOSTNAME=`hostname`
27
28echo "$IP_ADDY $HOSTNAME" >> /etc/hosts
29
30docker login -u docker -p docker nexus3.onap.org:10001
31
32sudo apt-get install make -y
33
34sudo curl -LO https://storage.googleapis.com/kubernetes-release/release/v$KUBECTL_VERSION/bin/linux/amd64/kubectl
35sudo chmod +x ./kubectl
36sudo mv ./kubectl /usr/local/bin/kubectl
37sudo mkdir ~/.kube
38wget http://storage.googleapis.com/kubernetes-helm/helm-v${HELM_VERSION}-linux-amd64.tar.gz
39sudo tar -zxvf helm-v${HELM_VERSION}-linux-amd64.tar.gz
40sudo mv linux-amd64/helm /usr/local/bin/helm
41
42# install nfs
43sudo apt-get install nfs-common -y
44
45
46exit 0