summaryrefslogtreecommitdiffstats
path: root/docs/openstack-k8s-controlnode.sh
blob: 1d230c2da403ef8254be3d3a2f8189f8e9001c58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash

DOCKER_VERSION=18.09.5

apt-get update

curl https://releases.rancher.com/install-docker/$DOCKER_VERSION.sh | sh
mkdir -p /etc/systemd/system/docker.service.d/
cat > /etc/systemd/system/docker.service.d/docker.conf << EOF
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H fd:// --insecure-registry=nexus3.onap.org:10001
EOF

sudo usermod -aG docker ubuntu

systemctl daemon-reload
systemctl restart docker
apt-mark hold docker-ce

IP_ADDR=`ip address |grep ens|grep inet|awk '{print $2}'| awk -F / '{print $1}'`
HOSTNAME=`hostname`

echo "$IP_ADDR $HOSTNAME" >> /etc/hosts

docker login -u docker -p docker nexus3.onap.org:10001

sudo apt-get install make -y


exit 0
an class="se">\ 'deepdiff==2.5.1' 'dnspython==1.15.0' 'robotframework-httplibrary==0.4.2' 'robotframework-archivelibrary==0.3.2' 'PyYAML==3.12' # get the git for the eteutils you will need to add a private key to your ssh before this if [ -d $path/testsuite/eteutils ] then # Support LF build location cd $path/testsuite/eteutils else cd ~ git config --global http.sslVerify false if [ -d ~/python-testing-utils ] then cd python-testing-utils git pull origin master else git clone https://gerrit.openecomp.org/r/testsuite/python-testing-utils.git cd python-testing-utils fi fi pip install --upgrade --target="$path/robot/library" . if [ -d $path/testsuite/heatbridge ] then # Support LF build location cd $path/testsuite/heatbridge else cd ~ git config --global http.sslVerify false if [ -d ~/heatbridge ] then cd heatbridge git pull origin master else git clone https://gerrit.openecomp.org/r/testsuite/heatbridge.git cd heatbridge fi fi pip install --upgrade --target="$path/robot/library" . # NOTE: Patch to incude explicit install of paramiko to 2.0.2 to work with sshlibrary 2.1.2 # This should be removed on new release of paramiko (2.1.2) or sshlibrary # https://github.com/robotframework/SSHLibrary/issues/157 pip install --target="$path/robot/library" -U 'paramiko==2.0.2' # # Get the appropriate chromedriver. Default to linux64 # CHROMEDRIVER_URL=http://chromedriver.storage.googleapis.com/2.27 CHROMEDRIVER_ZIP=chromedriver_linux64.zip # Handle mac and windows OS=`uname -s` case $OS in MINGW*_NT*) CHROMEDRIVER_ZIP=chromedriver_win32.zip ;; Darwin*) CHROMEDRIVER_ZIP=chromedriver_mac64.zip ;; *) echo "Defaulting to Linux 64" ;; esac if [ $CHROMEDRIVER_ZIP == 'chromedriver_linux64.zip' ] then wget -O chromedriver.zip $CHROMEDRIVER_URL/$CHROMEDRIVER_ZIP unzip chromedriver.zip -d /usr/local/bin else curl $CHROMEDRIVER_URL/$CHROMEDRIVER_ZIP -o chromedriver.zip unzip chromedriver.zip fi