mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add missing ${DOCKER_BUILD_ARGS}
Add missing "${DOCKER_BUILD_ARGS}" for building rpm with `docker build`, this is quite important when running `make rpm` behind http proxy. Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
This commit is contained in:
parent
9ebb90883e
commit
062ce13e9c
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ set -e
|
|||
EOF
|
||||
fi
|
||||
tempImage="docker-temp/build-rpm:$version"
|
||||
( set -x && docker build -t "$tempImage" -f $DEST/$version/Dockerfile.build . )
|
||||
( set -x && docker build ${DOCKER_BUILD_ARGS} -t "$tempImage" -f $DEST/$version/Dockerfile.build . )
|
||||
docker run --rm "$tempImage" bash -c 'cd /root/rpmbuild && tar -c *RPMS' | tar -xvC "$DEST/$version"
|
||||
docker rmi "$tempImage"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue