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
|
|
|
|
docker run --rm ${USE_TTY} --security-opt label=disable --privileged \
|
|
|
|
-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
|
|
|
|
}
|