docker: Add strace for interactive debugging
authorGeoff Levand <geoff@infradead.org>
Wed, 8 Aug 2018 00:01:09 +0000 (00:01 +0000)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 14 Aug 2018 01:09:47 +0000 (11:09 +1000)
Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
docker/Dockerfile.builder
docker/build-pb
docker/builder-include

index 40ed73f7fb99fcba2bd3c7c3d2dad399ceeeba69..4bf89d344610514b2ead538d9a84427cce197b19 100644 (file)
@@ -17,13 +17,14 @@ RUN apt-get update && apt-get install -y \
        gcc \
        git \
        libtool \
-       libuv-dev \
        libdevmapper-dev \
        libfdt-dev \
-       libncurses-dev \
        libgpgme11-dev \
+       libncurses-dev \
        libssl-dev \
+       libuv-dev \
        pkg-config \
+       strace \
        && rm -rf /var/lib/apt/lists/*
 
 CMD /bin/bash
index 6ed2af6d88ffb63a2f9bda2bfdb4491716a53446..1d87fb421447ddce0cdb399d81d99afd03a370db 100755 (executable)
@@ -105,7 +105,7 @@ docker_user_args="-u $(id -u):$(id -g)"
 
 if [[ -n "${interactive}" ]]; then
        cd "${TOP_DIR}"
-       docker_args="${docker_base_args}"
+       docker_args="${docker_base_args} --privileged"
        run_cmd "docker run -it ${docker_args} ${DOCKER_TAG} /bin/bash"
        exit
 fi
index d2d94a4d5f3f032c0f8c982b40b26d43f47e8c69..4f42e2c6e7bbc458d701d2c95310631a32ba3c7d 100644 (file)
@@ -50,7 +50,7 @@ show_tag () {
        echo "${DOCKER_TAG}"
 }
 
-: ${VERSION:="2"}
+: ${VERSION:="3"}
 : ${ARCH_TAG:="$(arch_tag)"}
 : ${DOCKER_NAME:="pb-builder"}
 : ${DOCKER_TAG:="${DOCKER_NAME}:${VERSION}${ARCH_TAG}"}