Merge "CSIT for Multicloud-Ocata HPA"
[integration.git] / test / ete / labs / gwu / apt-proxy.sh
1 #!/bin/bash
2 sed -i '/#!\/bin\/bash/a\
3             # sleep up to 3 minutes to avoid disk contention\
4             sleep $((RANDOM / 200))\
5             mkdir -p /etc/docker\
6             cat > /etc/docker/daemon.json <<EOF\
7             {\
8               "insecure-registries" : ["192.168.1.51:5000"]\
9             }\
10             EOF\
11             cat > /etc/apt/apt.conf.d/30proxy<<EOF\
12             Acquire::http { Proxy "http://192.168.1.51:3142"; };\
13             Acquire::https::Proxy "DIRECT";\
14             EOF\
15             apt-get -y update' $1