summaryrefslogtreecommitdiffstats
path: root/heat/ONAP/cloud-config/sdc_install.sh
diff options
context:
space:
mode:
authormrichomme <morgan.richomme@orange.com>2019-04-25 18:24:19 +0200
committermrichomme <morgan.richomme@orange.com>2019-04-25 18:24:19 +0200
commite3dd7c24232b7060500fee8805416551fe98c92e (patch)
tree880f9df52eff2c00855bf05cfa7ed466379eb36e /heat/ONAP/cloud-config/sdc_install.sh
parent201fa9289e32676b40d1095766e38c74e1653e75 (diff)
Clean old ONAP heat template from demo repository
this template is not maintained since casablanca. People could be surprised to find it here (still available on casablanca or older branches) Issue-ID: INT-1046 Change-Id: I266ccc59c05a713cde17b20491f2e729d068414f Signed-off-by: mrichomme <morgan.richomme@orange.com>
Diffstat (limited to 'heat/ONAP/cloud-config/sdc_install.sh')
-rw-r--r--heat/ONAP/cloud-config/sdc_install.sh66
1 files changed, 0 insertions, 66 deletions
diff --git a/heat/ONAP/cloud-config/sdc_install.sh b/heat/ONAP/cloud-config/sdc_install.sh
deleted file mode 100644
index bf6b5929..00000000
--- a/heat/ONAP/cloud-config/sdc_install.sh
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/bash
-
-# Read configuration files
-CLOUD_ENV=$(cat /opt/config/cloud_env.txt)
-GERRIT_BRANCH=$(cat /opt/config/gerrit_branch.txt)
-CODE_REPO=$(cat /opt/config/remote_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
-
-# Create partition and mount the external volume
-cp /opt/boot/sdc_ext_volume_partitions.txt /opt/sdc_ext_volume_partitions.txt
-
-if [[ $CLOUD_ENV == "rackspace" ]]
-then
- DISK="xvdb"
-else
- DISK=$(ls /dev |grep -e '^.*db$')
- sed -i "s/xvdb/$DISK/g" /opt/sdc_ext_volume_partitions.txt
-fi
-
-sfdisk /dev/$DISK < /opt/sdc_ext_volume_partitions.txt
-mkfs -t ext4 /dev/$DISK"1"
-mkdir -p /data
-mount /dev/$DISK"1" /data
-echo "/dev/"$DISK"1 /data ext4 errors=remount-ro,noatime,barrier=0 0 1" >> /etc/fstab
-
-
-# Clone Gerrit repository
-cd /opt
-mkdir -p /data/environments
-mkdir -p /data/scripts
-mkdir -p /data/logs/BE
-mkdir -p /data/logs/FE
-chmod 777 /data
-chmod 777 /data/logs/BE
-chmod 777 /data/logs/FE
-
-git clone -b $GERRIT_BRANCH --single-branch $CODE_REPO
-
-cat > /root/.bash_aliases << EOF
-alias dcls='/data/scripts/docker_clean.sh \$1'
-alias dlog='/data/scripts/docker_login.sh \$1'
-alias rund='/data/scripts/docker_run.sh'
-alias health='/data/scripts/docker_health.sh'
-EOF
-
-# Run docker containers. For openstack Ubuntu 16.04 images this will run as a service after the VM has restarted
-./sdc_vm_init.sh
-
-#Install docker-compose for workflow installation
-mkdir /opt/docker
-curl -L https://github.com/docker/compose/releases/download/1.23.1/docker-compose-`uname -s`-`uname -m` > /opt/docker/docker-compose
-chmod +x /opt/docker/docker-compose
-
-#Prepare env for docker compose
-IP_ADDRESS=$(cat /opt/config/private_ip.txt)
-sed -i "s/yyy/$IP_ADDRESS/g" .env
-
-#Setup sdc workflow using docker compose
-docker-compose up -d \ No newline at end of file