It was included the instructions to build dcae-controller image
behind a corporate proxy.
Change-Id: I8a22aa69fa5d2a82aa0f7f6035cc9b5f56f6cb59
Signed-off-by: Victor Morales <victor.morales@intel.com>
## build Docker
-docker build -t dcae-controller:$VERSION .
-
+docker_build="docker build -t dcae-controller:$VERSION ."
+if [ $http_proxy ]; then
+ docker_build+=" --build-arg http_proxy=$http_proxy"
+fi
+if [ $https_proxy ]; then
+ docker_build+=" --build-arg https_proxy=$https_proxy"
+fi
+eval $docker_build
set -e
+if [ ! -z ${http_proxy} ]; then echo "Acquire::http::proxy \"${http_proxy}\";" >> /etc/apt/apt.conf; fi && \
+if [ ! -z ${https_proxy} ]; then echo "Acquire::https::proxy \"${https_proxy}\";" >> /etc/apt/apt.conf; fi
+
apt-get update ; apt-get install -y maven openjdk-7-jdk curl dnsutils zip telnet
### GROOVY