blob: 3f32d050a9ec43927c56ce0af0cde6cfa9facb12 [file] [log] [blame]
Krzysztof Opasiakfe651c12021-06-23 10:59:03 +02001#!/bin/bash
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
Krzysztof Opasiakfe651c12021-06-23 10:59:03 +020021IP_ADDR=`ip address |grep ens|grep inet|awk '{print $2}'| awk -F / '{print $1}'`
22HOSTNAME=`hostname`
Mike Elliottf137b2c2019-04-30 16:28:07 -040023
Krzysztof Opasiakfe651c12021-06-23 10:59:03 +020024echo "$IP_ADDR $HOSTNAME" >> /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
30# install nfs
31sudo apt-get install nfs-common -y
32
33
34exit 0