Path moved from /root/ to /usr/bin/ for container which is pushed to the remote registry Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
16 lines
362 B
Bash
Executable File
16 lines
362 B
Bash
Executable File
#!/bin/sh
|
|
|
|
export eTAG="latest-dev"
|
|
echo $1
|
|
if [ $1 ] ; then
|
|
eTAG=$1
|
|
fi
|
|
|
|
echo Building openfaas/faas-cli:$eTAG
|
|
|
|
docker build --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy -t openfaas/faas-cli:$eTAG . && \
|
|
docker create --name faas-cli openfaas/faas-cli:$eTAG && \
|
|
docker cp faas-cli:/usr/bin/faas-cli . && \
|
|
docker rm -f faas-cli
|
|
|