mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00

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.
17 lines
245 B
Bash
Executable File
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/"
|