blob: d1515a7e5f63ba1079adf187b218b975475129cc [file] [log] [blame]
Guillaume Lambertd9017ef2021-03-08 21:38:31 +01001#!/bin/sh
Mike Elliottf137b2c2019-04-30 16:28:07 -04002
3DOCKER_VERSION=18.09.5
4
5apt-get update
6
7curl https://releases.rancher.com/install-docker/$DOCKER_VERSION.sh | sh
8mkdir -p /etc/systemd/system/docker.service.d/
9cat > /etc/systemd/system/docker.service.d/docker.conf << EOF
10[Service]
11ExecStart=
12ExecStart=/usr/bin/dockerd -H fd:// --insecure-registry=nexus3.onap.org:10001
13EOF
14
15sudo usermod -aG docker ubuntu
16
17systemctl daemon-reload
18systemctl restart docker
19apt-mark hold docker-ce
20
Guillaume Lambertd9017ef2021-03-08 21:38:31 +010021IP_ADDR=$(ip address |grep ens|grep inet|awk '{print $2}'| awk -F / '{print $1}')
22HOST_NAME=$(hostname)
Mike Elliottf137b2c2019-04-30 16:28:07 -040023
Guillaume Lambertd9017ef2021-03-08 21:38:31 +010024echo "$IP_ADDR $HOST_NAME" >> /etc/hosts
Mike Elliottf137b2c2019-04-30 16:28:07 -040025
26docker login -u docker -p docker nexus3.onap.org:10001
27
28sudo apt-get install make -y
29
ramagp07e2d452020-08-04 07:24:49 +000030#nfs server
31sudo apt-get install nfs-kernel-server -y
32sudo mkdir -p /dockerdata-nfs
33sudo chown nobody:nogroup /dockerdata-nfs/
34
Mike Elliottf137b2c2019-04-30 16:28:07 -040035
36exit 0