Fix mullpod script

This commit is contained in:
2026-02-10 14:35:12 +01:00
parent 378da0e7be
commit bab464f8f3

View File

@@ -9,9 +9,9 @@ set custom_tag "$base_tag-extra"
# check if image exists # check if image exists
if not podman image inspect $custom_tag >/dev/null if not podman image inspect $custom_tag >/dev/null
echo "Building custom image" echo "Building custom image"
set tmp_dockerfile (mktemp) set tmp_dockerfile (mktemp)
echo " echo "
FROM $base_tag FROM $base_tag
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y \ RUN apt-get update -y && apt-get upgrade -y && apt-get install -y \
@@ -37,17 +37,16 @@ RUN chmod +x /entrypoint.sh
ENTRYPOINT [\"/entrypoint.sh\"] ENTRYPOINT [\"/entrypoint.sh\"]
" > $tmp_dockerfile " >$tmp_dockerfile
podman build -f $tmp_dockerfile -t $custom_tag || exit 1
podman build -f $tmp_dockerfile -t $custom_tag || exit 1 rm $tmp_dockerfile
rm $tmp_dockerfile
end end
podman run --rm -it \ podman run --rm -it \
--hostname mullpod \ --hostname mullpod \
-v .:/build \ -v .:/build \
-v cargo-target:/cargo-target:Z \ -v cargo-target:/cargo-target:Z \
-v cargo-registry:/root/.cargo/registry:Z \ -v cargo-registry:/root/.cargo/registry:Z \
-v gradle-cache:/root/.gradle:Z \ -v gradle-cache:/root/.gradle:Z \
$custom_tag mold -run fish $custom_tag fish