intel-device-plugins-for-ku.../demo/build-image.sh
Ed Bartosh bbc1d15c63 demos: get rid of using --build-arg to pass proxy to the Docker
Docker documentation recommends configuring proxy in
a Docker client configuration file ~/.docker/config.json for Docker
version >= 17.07: https://docs.docker.com/network/proxy/

Using --build-arg for this purpose is not recommended, hence
removing.
2018-08-29 15:31:19 +03:00

17 lines
245 B
Bash
Executable File

#!/bin/sh -xe
CWD=`dirname $0`
IMG=$1
if [ -z "$IMG" ]; then
(>&2 echo "Usage: $0 <image directory>")
exit 1
fi
if [ ! -d "$IMG" ]; then
(>&2 echo "Directory $IMG doesn't exist")
exit 1
fi
docker build -t ${IMG} "$CWD/$IMG/"