Set up the same mounts when running make shell.

This commit is contained in:
Tom Alexander 2023-08-27 17:50:33 -04:00
parent 378b6bb391
commit c17de8ef5e
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
3 changed files with 3 additions and 3 deletions

View File

@ -33,4 +33,4 @@ run:
.PHONY: shell
shell:
docker run --rm -i -t --entrypoint /bin/sh $(IMAGE_NAME)
docker run --rm -i -t --entrypoint /bin/sh -v "$$(readlink -f ../../):/source" --workdir=/source $(IMAGE_NAME)

View File

@ -33,4 +33,4 @@ run:
.PHONY: shell
shell:
docker run --rm -i -t --entrypoint /bin/sh $(IMAGE_NAME)
docker run --rm -i -t --entrypoint /bin/sh -v "$$(readlink -f ../../):/source" --workdir=/source --mount source=cargo-cache,target=/usr/local/cargo/registry $(IMAGE_NAME)

View File

@ -32,4 +32,4 @@ run:
.PHONY: shell
shell:
docker run --rm -i -t --entrypoint /bin/sh $(IMAGE_NAME)
docker run --rm -i -t --entrypoint /bin/sh -v "$$(readlink -f ../../):/source:ro" --workdir=/source --mount source=cargo-cache,target=/usr/local/cargo/registry --mount source=rust-cache,target=/target --env CARGO_TARGET_DIR=/target $(IMAGE_NAME)