mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
3ff6725613
.ensure-syscall-test need to build an image, we have to add http_proxy and https_proxy to make it work. Inseted of adding http_proxy and https_proxy env to the Dockerfile, adding a DOCKER_BUILD_ARGS env to pass the build-arg is much more elegant. Signed-off-by: Lei Jitang <leijitang@huawei.com>
8 lines
246 B
Bash
8 lines
246 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# Build a C binary for cloning a userns for seccomp tests
|
|
# and compile it for target daemon
|
|
if [ "$DOCKER_ENGINE_GOOS" = "linux" ]; then
|
|
docker build ${DOCKER_BUILD_ARGS} -qt syscall-test contrib/syscall-test > /dev/null
|
|
fi
|