22 lines
696 B
Bash
Executable File
22 lines
696 B
Bash
Executable File
#!/bin/sh
|
|
# This runs the build-iso script inside a docker container with volume mounts
|
|
# for input, output, and cached data.
|
|
set -e
|
|
|
|
IMAGE=debian:bookworm-slim
|
|
|
|
MYREL="$( dirname "$( realpath "${0}" )" )/.."
|
|
MYCWD="$( realpath "${MYREL}" )"
|
|
MYREV="$( git -C "${MYCWD}" rev-parse --short=8 HEAD )"
|
|
echo "${MYCWD}"
|
|
|
|
docker volume create live-build-cache || true
|
|
docker run --privileged --rm --workdir /app \
|
|
--env _DEBUG="${LB_DEBUG:-false}" \
|
|
--env _BUILD_REV="${BUILD_REV:-${MYREV}}" \
|
|
--volume "live-build-cache:/app/build/cache" \
|
|
--volume "${MYCWD}/bin:/app/bin" \
|
|
--volume "${MYCWD}/dist:/app/dist" \
|
|
--volume "${MYCWD}/live-build:/app/live-build" \
|
|
"${IMAGE}" "bin/build-iso"
|