diff options
author | 2018-05-13 08:14:42 -0400 | |
---|---|---|
committer | 2018-05-13 08:16:40 -0400 | |
commit | 29c115f867e224d18b086dd0b8e2465397189aac (patch) | |
tree | 50b708cfa4ffbc4ecbfb6c46b29a9b7dfc455fad /deploy/rancher/oom_entrypoint.sh | |
parent | 7d1d7a47216de107fdc077f22c8087f8d40d4da9 (diff) |
rancher/k8s/helm/docker install
Change-Id: Idf39ad49e7a18ed0ff654503e75c6954380d0703
Signed-off-by: Michael O'Brien <frank.obrien@amdocs.com>
Issue-ID: LOG-325
Diffstat (limited to 'deploy/rancher/oom_entrypoint.sh')
-rwxr-xr-x | deploy/rancher/oom_entrypoint.sh | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/deploy/rancher/oom_entrypoint.sh b/deploy/rancher/oom_entrypoint.sh new file mode 100755 index 0000000..551f404 --- /dev/null +++ b/deploy/rancher/oom_entrypoint.sh @@ -0,0 +1,93 @@ +#!/bin/bash +############################################################################# +# +# Copyright © 2018 Amdocs. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +############################################################################# +# +# This installation is for a rancher managed install of kubernetes +# after this run the standard oom install +# this installation can be run on amy ubuntu 16.04 VM or physical host +# https://wiki.onap.org/display/DW/ONAP+on+Kubernetes +# source from https://jira.onap.org/browse/OOM-715 +# Michael O'Brien +# +# Amsterdam +# Rancher 1.6.10, Kubernetes 1.7.7, Kubectl 1.7.7, Helm 2.3.0, Docker 1.12 +# master +# Rancher 1.6.14, Kubernetes 1.8.10, Kubectl 1.8.10, Helm 2.8.2, Docker 17.03 +# run as root - because of the logout that would be required after the docker user set + +usage() { +cat <<EOF +Usage: $0 [PARAMs] +-u : Display usage +-b [branch] : branch = master or amsterdam (required) +-s [server] : server = IP or DNS name (required) +-e [environment] : use the default (onap) +EOF +} + +install_rancher_and_onap() { + echo "Running rancher install first - 20 min" + # the curl commands are until OOM-710 is merged + wget https://jira.onap.org/secure/attachment/11558/oom_rancher_setup.sh + sudo chmod 777 oom_rancher_setup.sh + sudo ./oom_rancher_setup.sh -b $BRANCH -s $SERVER -e $ENVIRON + echo "Running oom install - 45-90 min" + wget https://jira.onap.org/secure/attachment/11608/cd.sh + sudo chmod 777 cd.sh + wget https://jira.onap.org/secure/attachment/11124/aaiapisimpledemoopenecomporg.cer + if [ "$BRANCH" == "amsterdam" ]; then + wget https://jira.onap.org/secure/attachment/11218/onap-parameters-amsterdam.yaml + sudo cp onap-parameters-amsterdam.yaml onap-parameters.yaml + else + wget https://jira.onap.org/secure/attachment/11414/values.yaml + fi + wget https://jira.onap.org/secure/attachment/11126/aai-cloud-region-put.json + sudo ./cd.sh -b $BRANCH -e $ENVIRON +} + +BRANCH=master +SERVER= +ENVIRON=onap + +while getopts ":b:s:e:u:" PARAM; do + case $PARAM in + u) + usage + exit 1 + ;; + b) + BRANCH=${OPTARG} + ;; + e) + ENVIRON=${OPTARG} + ;; + s) + SERVER=${OPTARG} + ;; + ?) + usage + exit + ;; + esac +done + +if [[ -z $SERVER ]]; then + usage + exit 1 +fi + +install_rancher_and_onap $BRANCH $SERVER $ENVIRON |