mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-25 15:39:37 -05:00
9e057f5a7f
Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com>
17 lines
1.3 KiB
Bash
17 lines
1.3 KiB
Bash
cosa() {
|
|
env | grep COREOS_ASSEMBLER
|
|
local -r COREOS_ASSEMBLER_CONTAINER_LATEST="localhost/coreos-assembler"
|
|
test -t 1 && USE_TTY="-ti"
|
|
set -x
|
|
podman run --rm ${USE_TTY} --security-opt label=disable --privileged \
|
|
--uidmap=1000:0:1 --uidmap=0:1:1000 --uidmap 1001:1001:64536 \
|
|
-v ${PWD}:/srv/ --device /dev/kvm --device /dev/fuse \
|
|
--tmpfs /tmp -v /var/tmp:/var/tmp --name constellation-cosa \
|
|
-v ${NETRC}:/home/builder/.netrc:ro \
|
|
${COREOS_ASSEMBLER_CONFIG_GIT:+-v $COREOS_ASSEMBLER_CONFIG_GIT:/srv/src/config/:ro} \
|
|
${COREOS_ASSEMBLER_GIT:+-v $COREOS_ASSEMBLER_GIT/src/:/usr/lib/coreos-assembler/:ro} \
|
|
${COREOS_ASSEMBLER_CONTAINER_RUNTIME_ARGS} \
|
|
${COREOS_ASSEMBLER_CONTAINER:-$COREOS_ASSEMBLER_CONTAINER_LATEST} "$@"
|
|
rc=$?; set +x; return $rc
|
|
}
|