Skip to content

Commit

Permalink
hack 10
Browse files Browse the repository at this point in the history
I hate this one
  • Loading branch information
daniel-noland committed Oct 23, 2024
1 parent 8d2ba2f commit 5918b88
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,13 @@ compile-env *args: fill-out-dev-env-template
ln -s /nix "${tmp_link}/nix"
docker run \
--rm \
--read-only \
--name dataplane-compile-env \
--tmpfs /tmp:uid=$(id -u),gid=$(id -g),nodev,noexec,nosuid \
--mount type=tmpfs,destination=${HOME},tmpfs-mode=1777 \
--mount type=bind,source="$(pwd),destination=/work,bind-propagation=rprivate,readonly" \
--mount type=bind,source="${tmp_link},destination=/work/compile-env,bind-propagation=rprivate,readonly" \
--mount type=bind,source=$(pwd)/dev-env-template/etc/passwd,destination=/etc/passwd,readonly \
--mount type=bind,source=$(pwd)/dev-env-template/etc/group,destination=/etc/group,readonly \
--mount type=bind,source="$(pwd),destination=/work,bind-propagation=rprivate" \
--mount type=bind,source="${tmp_link},destination=/work/compile-env,bind-propagation=rprivate" \
--mount type=bind,source=$(pwd)/dev-env-template/etc/passwd,destination=/etc/passwd \
--mount type=bind,source=$(pwd)/dev-env-template/etc/group,destination=/etc/group \
--mount type=bind,source="${tmp_targetdir},destination=/work/target,bind-propagation=rprivate" \
--user "$(id -u):$(id -g)" \
--workdir /work \
Expand Down

0 comments on commit 5918b88

Please sign in to comment.