AIO and MUNO mode upgrade for EG 1.5.0 version
[eliot.git] / scripts / common.sh
1 #!/bin/bash -ex
2
3 ##############################################################################
4 # Copyright (c) 2019 Huawei Tech and others.
5 #
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
11
12 # This script is to install common software for ELIOT.
13 # To be executed in Eliot Manager and Eliot Nodes.
14 # Script will install Docker software.
15 # Script has to be executed in Ubuntu 16.04.
16
17 # Set Docker version
18 DOCKER_VERSION=18.06.1~ce~3-0~ubuntu
19
20 sudo apt-get update && sudo apt-get install -y git
21
22 # Install Docker as Prerequisite
23 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
24 sudo apt-key fingerprint 0EBFCD88
25 sudo add-apt-repository \
26   "deb https://download.docker.com/linux/ubuntu \
27   $(lsb_release -cs) \
28   stable"
29
30 sudo apt update
31 sudo apt install -y docker-ce=${DOCKER_VERSION}
32