Container: Store DivestOS directory in a volume

This essentially serves as a cache of sources because otherwise all the
downloaded source disappears when the container exits.
This commit is contained in:
ryneeverett 2024-07-26 17:26:35 -04:00 committed by SkewedZeppelin
parent 0408730f50
commit 8216403729
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
mkdir -p $1 mkdir -p $1
docker run -it --rm -v $1:/home/$(id -un)/DivestOS/Builds -v divestos_ccache:/home/$(id -un)/.ccache android-build-fedora docker run -it --rm -v $1:/home/$(id -un)/DivestOS/Builds -v divestos_ccache:/home/$(id -un)/.ccache -v divestos_repo:/home/$(id -un)/DivestOS android-build-fedora

View File

@ -1,3 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
mkdir -p $1 mkdir -p $1
podman run -it --rm --user=$(id -un) --workdir="/home/$(id -un)" --entrypoint="/bin/bash" -v $1:/home/$(id -un)/DivestOS/Builds -v divestos_ccache:/home/$(id -un)/.ccache android-build-fedora podman run -it --rm --user=$(id -un) --workdir="/home/$(id -un)" --entrypoint="/bin/bash" -v $1:/home/$(id -un)/DivestOS/Builds -v divestos_ccache:/home/$(id -un)/.ccache -v divestos_repo:/home/$(id -un)/DivestOS android-build-fedora