blob: e9150a272d45d82c3260cddf8ff177be16e28a2e (
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
32
33
34
35
36
37
38
39
40
|
#!/bin/bash
# Read configuration files
VNFSDK_BRANCH=$(cat /opt/config/vnfsdk_branch.txt)
VNFSDK_REPO=$(cat /opt/config/vnfsdk_repo.txt)
HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
if [ $HTTP_PROXY != "no_proxy" ]
then
export http_proxy=$HTTP_PROXY
export https_proxy=$HTTPS_PROXY
fi
# Download dependencies
apt-get update
apt-get install -y mysql-client-core-5.6
# Download scripts from Nexus
cp /opt/boot/vnfsdk_vm_init.sh /opt/vnfsdk_vm_init.sh
cp /opt/boot/msb_vm_init.sh /opt/msb_vm_init.sh
cp /opt/boot/mvim_vm_init.sh /opt/mvim_vm_init.sh
cp /opt/boot/vfc_vm_init.sh /opt/vfc_vm_init.sh
cp /opt/boot/uui_vm_init.sh /opt/uui_vm_init.sh
cp /opt/boot/openo_all_serv.sh /opt/openo_all_serv.sh
cp /opt/boot/esr_vm_init.sh /opt/esr_vm_init.sh
chmod +x /opt/vnfsdk_vm_init.sh
chmod +x /opt/msb_vm_init.sh
chmod +x /opt/mvim_vm_init.sh
chmod +x /opt/vfc_vm_init.sh
chmod +x /opt/uui_vm_init.sh
chmod +x /opt/openo_all_serv.sh
chmod +x /opt/esr_vm_init.sh
update-rc.d openo_serv.sh defaults
# Clone Gerrit repository and run docker containers
cd /opt
git clone -b $VNFSDK_BRANCH --single-branch $VNFSDK_REPO
source ./cli_install.sh
./openo_all_serv.sh
|