mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-04 00:13:51 +00:00
[build] Added configuration to allow building in container
This commit is contained in:
parent
e3aef1893b
commit
8f3a961330
4 changed files with 62 additions and 0 deletions
19
container/build-in-container.sh
Executable file
19
container/build-in-container.sh
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
||||
|
||||
podman build \
|
||||
-f "${SCRIPT_DIR}/builder-ubuntu.Dockerfile" \
|
||||
-t wowee-builder-ubuntu
|
||||
|
||||
BUILD_DIR="$(mktemp --tmpdir -d wowee.XXXXX \
|
||||
--suffix=".$(cd "${PROJECT_ROOT}"; git rev-parse --short HEAD)")"
|
||||
podman run \
|
||||
--mount "type=bind,src=${PROJECT_ROOT},dst=/WoWee-src,ro=true" \
|
||||
--mount "type=bind,src=${BUILD_DIR},dst=/build" \
|
||||
localhost/wowee-builder-ubuntu \
|
||||
./build-wowee.sh
|
||||
Loading…
Add table
Add a link
Reference in a new issue