17 lines
477 B
Bash
17 lines
477 B
Bash
#!/usr/bin/env bash
|
|
set -xe
|
|
|
|
BASEDIR=$(dirname "$0")
|
|
echo "build docker images in $BASEDIR"
|
|
|
|
TIMESTAMP=$(date +%Y%m%d%H%M)
|
|
|
|
cd $BASEDIR
|
|
|
|
# docker build --no-cache -t $IMAGE -f $FILE $BASEDIR
|
|
docker build --network=host -t registry.cn-hangzhou.aliyuncs.com/acs/nvidia-device-plugin-recover:$TIMESTAMP .
|
|
|
|
docker push registry.cn-hangzhou.aliyuncs.com/acs/nvidia-device-plugin-recover:$TIMESTAMP
|
|
|
|
echo registry.cn-hangzhou.aliyuncs.com/acs/nvidia-device-plugin-recover:$TIMESTAMP
|