Skip to content

Commit

Permalink
hack 5
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-noland committed Oct 23, 2024
1 parent 5f34fdd commit 8f45020
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ dev-env *args="": allocate-2M-hugepages allocate-1G-hugepages mount-hugepages fi
{{ args }}

[script]
compile-env *args:
compile-env *args: fill-out-dev-env-template
{{ _just_debuggable_ }}
mkdir -p "$(pwd)/sterile"
declare tmp_link
Expand All @@ -121,7 +121,6 @@ compile-env *args:
declare tmp_targetdir
tmp_targetdir="$(mktemp -p "$(pwd)/sterile" --directory --suffix=".$(date --iso-8601=s).target")"
declare -r tmp_targetdir
ln -s / "${tmp_link}/cheat"
ln -s /bin "${tmp_link}/bin"
ln -s /lib "${tmp_link}/lib"
ln -s /sysroot "${tmp_link}/sysroot"
Expand All @@ -130,7 +129,7 @@ compile-env *args:
--rm \
--read-only \
--name dataplane-compile-env \
--tmpfs /tmp:uid=$(id -u),gid=$(id -g),noexec,nosuid \
--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" \
Expand All @@ -141,8 +140,6 @@ compile-env *args:
--workdir /work \
"{{ _compile_env_container }}" \
{{ args }}
# "{{compile_env_container}}" \
# sh -euxo pipefail -c "curl --proto =https --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rustup.sh"

[script]
pull-compile-env:
Expand Down

0 comments on commit 8f45020

Please sign in to comment.