Browse Source

Docker build with host network.

tags/v4.0.0-beta.1
Luigi Freitas Cruz 4 years ago
parent
commit
fae4e4bca1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      builder/build-docker.sh

+ 1
- 1
builder/build-docker.sh View File

@@ -73,7 +73,7 @@ fi
# Modify original build-options to allow config file to be mounted in the docker container # Modify original build-options to allow config file to be mounted in the docker container
BUILD_OPTS="$(echo "${BUILD_OPTS:-}" | sed -E 's@\-c\s?([^ ]+)@-c /config@')" BUILD_OPTS="$(echo "${BUILD_OPTS:-}" | sed -E 's@\-c\s?([^ ]+)@-c /config@')"


${DOCKER} build -t pi-gen "${DIR}"
${DOCKER} build --network=host -t pi-gen "${DIR}"
if [ "${CONTAINER_EXISTS}" != "" ]; then if [ "${CONTAINER_EXISTS}" != "" ]; then
trap 'echo "got CTRL+C... please wait 5s" && ${DOCKER} stop -t 5 ${CONTAINER_NAME}_cont' SIGINT SIGTERM trap 'echo "got CTRL+C... please wait 5s" && ${DOCKER} stop -t 5 ${CONTAINER_NAME}_cont' SIGINT SIGTERM
time ${DOCKER} run --rm --privileged \ time ${DOCKER} run --rm --privileged \


Loading…
Cancel
Save