From 1d4a034227922913b9b46b0a567fca84cb2ec90b Mon Sep 17 00:00:00 2001 From: Peter Neuroth Date: Tue, 1 Aug 2023 09:47:01 +0200 Subject: [PATCH] make: Create TMPDIR on docker-shell target Signed-off-by: Peter Neuroth --- Makefile | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index 0a6b8eee0..b035ffce9 100644 --- a/Makefile +++ b/Makefile @@ -83,21 +83,20 @@ docker-image: ${REPO_ROOT}/libs/gl-testing/Dockerfile . docker-shell: - mkdir -p /tmp/target && \ - mkdir -p /tmp/gltesting && \ - mkdir -p /tmp/gl-cargo-registry && \ + mkdir -p /tmp/gltesting/tmp && \ + mkdir -p /tmp/gltesting/target && \ + mkdir -p /tmp/gltesting/.cargo/.registry && \ docker run \ - -ti \ - --net=host \ - --rm \ - --cap-add=SYS_PTRACE \ - -e TMPDIR=/tmp/gltesting/tmp \ - -v /tmp/gltesting/:/tmp/gltesting \ - -e CARGO_TARGET_DIR=/tmp/gltesting/target \ - -v /tmp/target:/tmp/target \ - -v /tmp/gl-cargo-registry:/root/.cargo/registry/ \ - -v ${REPO_ROOT}:/repo \ - gltesting bash + -ti \ + --net=host \ + --rm \ + --cap-add=SYS_PTRACE \ + -e TMPDIR=/tmp/gltesting/tmp \ + -v /tmp/gltesting/:/tmp/gltesting \ + -e CARGO_TARGET_DIR=/tmp/gltesting/target \ + -v /tmp/gltesting/.cargo/.registry:/home/$(shell whoami)/.cargo/registry/ \ + -v ${REPO_ROOT}:/repo \ + gltesting bash docker-check-self: docker run \