Skip to content

Commit

Permalink
make: Create TMPDIR on docker-shell target
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Neuroth <[email protected]>
  • Loading branch information
nepet committed Aug 8, 2023
1 parent 910c576 commit 1d4a034
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 1d4a034

Please sign in to comment.