Guillaume Lambert | d9017ef | 2021-03-08 21:38:31 +0100 | [diff] [blame] | 1 | #!/bin/sh |
Mike Elliott | f137b2c | 2019-04-30 16:28:07 -0400 | [diff] [blame] | 2 | |
| 3 | DOCKER_VERSION=18.09.5 |
| 4 | |
| 5 | apt-get update |
| 6 | |
| 7 | curl https://releases.rancher.com/install-docker/$DOCKER_VERSION.sh | sh |
| 8 | mkdir -p /etc/systemd/system/docker.service.d/ |
| 9 | cat > /etc/systemd/system/docker.service.d/docker.conf << EOF |
| 10 | [Service] |
| 11 | ExecStart= |
| 12 | ExecStart=/usr/bin/dockerd -H fd:// --insecure-registry=nexus3.onap.org:10001 |
| 13 | EOF |
| 14 | |
| 15 | sudo usermod -aG docker ubuntu |
| 16 | |
| 17 | systemctl daemon-reload |
| 18 | systemctl restart docker |
| 19 | apt-mark hold docker-ce |
| 20 | |
Guillaume Lambert | d9017ef | 2021-03-08 21:38:31 +0100 | [diff] [blame] | 21 | IP_ADDR=$(ip address |grep ens|grep inet|awk '{print $2}'| awk -F / '{print $1}') |
| 22 | HOST_NAME=$(hostname) |
Mike Elliott | f137b2c | 2019-04-30 16:28:07 -0400 | [diff] [blame] | 23 | |
Guillaume Lambert | d9017ef | 2021-03-08 21:38:31 +0100 | [diff] [blame] | 24 | echo "$IP_ADDR $HOST_NAME" >> /etc/hosts |
Mike Elliott | f137b2c | 2019-04-30 16:28:07 -0400 | [diff] [blame] | 25 | |
| 26 | docker login -u docker -p docker nexus3.onap.org:10001 |
| 27 | |
| 28 | sudo apt-get install make -y |
| 29 | |
| 30 | # install nfs |
| 31 | sudo apt-get install nfs-common -y |
| 32 | |
| 33 | |
| 34 | exit 0 |