faas/gateway/build.sh
Alex Ellis (VMware) f4aab9197d Move from functions ns to openfaas for Hub
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-02 12:45:53 +01:00

25 lines
474 B
Bash
Executable File

#!/bin/sh
export dockerfile="Dockerfile"
export arch=$(uname -m)
export eTAG="latest-dev"
if [ "$arch" = "armv7l" ] ; then
dockerfile="Dockerfile.armhf"
eTAG="latest-armhf-dev"
fi
echo "$1"
if [ "$1" ] ; then
eTAG=$1
if [ "$arch" = "armv7l" ] ; then
eTAG="$1-armhf"
fi
fi
echo Building openfaas/gateway:$eTAG
docker build --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy \
-t openfaas/gateway:$eTAG . -f $dockerfile --no-cache