summaryrefslogtreecommitdiffstats
path: root/test/ete/labs/huawei/rancher_vm_entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/ete/labs/huawei/rancher_vm_entrypoint.sh')
-rw-r--r--test/ete/labs/huawei/rancher_vm_entrypoint.sh18
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