diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2018-01-17 20:51:45 -0800 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2018-01-17 20:55:50 -0800 |
commit | 1ff56674c8cf98a292ddaad5081d43d79f9f7cfd (patch) | |
tree | 09b7fc38b41cee1698622cfedc3ccc9dcf490450 /test/ete/labs/huawei/rancher_vm_entrypoint.sh | |
parent | 9fe5fdafe76396896953a480f82f99250665fdae (diff) |
Heat template for ONAP OOM deployment
Change-Id: I8f4ae420d613de037c178287462b1f9dbd4d40a9
Issue-ID: INT-381
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'test/ete/labs/huawei/rancher_vm_entrypoint.sh')
-rw-r--r-- | test/ete/labs/huawei/rancher_vm_entrypoint.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/ete/labs/huawei/rancher_vm_entrypoint.sh b/test/ete/labs/huawei/rancher_vm_entrypoint.sh new file mode 100644 index 000000000..da1955446 --- /dev/null +++ b/test/ete/labs/huawei/rancher_vm_entrypoint.sh @@ -0,0 +1,18 @@ +#!/bin/bash -x +printenv + +echo `hostname -I` `hostname` >> /etc/hosts +mkdir -p /etc/docker +cat > /etc/docker/daemon.json <<EOF +{ + "insecure-registries" : ["__docker_proxy__"] +} +EOF +cat > /etc/apt/apt.conf.d/30proxy<<EOF +Acquire::http { Proxy "http://__apt_proxy__"; }; +Acquire::https::Proxy "DIRECT"; +EOF +apt-get -y update +apt-get -y install docker.io +usermod -aG docker ubuntu +docker run --restart unless-stopped -d -p 8080:8080 rancher/server:v1.6.10 |