2022-03-22 11:03:15 -04:00
|
|
|
cosa() {
|
|
|
|
env | grep COREOS_ASSEMBLER
|
2022-08-03 02:29:13 -04:00
|
|
|
local -r COREOS_ASSEMBLER_CONTAINER_LATEST="localhost/coreos-assembler"
|
2022-03-22 11:03:15 -04:00
|
|
|
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 \
|
2022-08-02 11:14:13 -04:00
|
|
|
--tmpfs /tmp -v /var/tmp:/var/tmp --name constellation-cosa \
|
|
|
|
-v ${NETRC}:/home/builder/.netrc:ro \
|
2022-03-22 11:03:15 -04:00
|
|
|
${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
|
|
|
|
}
|