diff options
| author | Claus Strasburger <claus@strasburger.de> | 2017-07-17 12:05:07 +0200 |
|---|---|---|
| committer | XECDesign <XECDesign@users.noreply.github.com> | 2017-07-17 12:21:28 +0200 |
| commit | bab0fe3b0d4f5eba268cfeba92e6c05ab85048cc (patch) | |
| tree | 2a8ed517d9e6aad88392d9e693199e9d4b0953cd /build-docker.sh | |
| parent | 4d65b2b3579a6f808df4fce1ae3bc0ffea16c071 (diff) | |
Docker build: move to debian stretch
Diffstat (limited to 'build-docker.sh')
| -rwxr-xr-x | build-docker.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/build-docker.sh b/build-docker.sh index 39bd51b..5e3c5ff 100755 --- a/build-docker.sh +++ b/build-docker.sh @@ -12,9 +12,10 @@ if ! $DOCKER ps >/dev/null; then fi set -e -config_mount="/dev/null:/dev/null" + +config_mount=() if [ -f config ]; then - config_mount="$(pwd)/config:/pi-gen/config:ro" + config_mount=("-v" "$(pwd)/config:/pi-gen/config:ro") source config fi @@ -65,7 +66,7 @@ else $DOCKER run --name "${CONTAINER_NAME}" --privileged \ -e IMG_NAME=${IMG_NAME}\ -v "$(pwd)/deploy:/pi-gen/deploy" \ - -v "${config_mount}" \ + "${config_mount[@]}" \ pi-gen \ bash -e -o pipefail -c "dpkg-reconfigure qemu-user-static && cd /pi-gen; ./build.sh && |
