mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-24 23:19:39 -05:00
2d8fcd9bf4
Co-authored-by: Malte Poll <mp@edgeless.systems> Co-authored-by: katexochen <katexochen@users.noreply.github.com> Co-authored-by: Daniel Weiße <dw@edgeless.systems> Co-authored-by: Thomas Tendyck <tt@edgeless.systems> Co-authored-by: Benedict Schlueter <bs@edgeless.systems> Co-authored-by: leongross <leon.gross@rub.de> Co-authored-by: Moritz Eckert <m1gh7ym0@gmail.com>
16 lines
1.2 KiB
Bash
16 lines
1.2 KiB
Bash
cosa() {
|
|
env | grep COREOS_ASSEMBLER
|
|
local -r COREOS_ASSEMBLER_CONTAINER_LATEST="ghcr.io/edgelesssys/constellation-coreos-assembler:latest"
|
|
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 \
|
|
--tmpfs /tmp -v /var/tmp:/var/tmp --name constellation-cosa \
|
|
${NETRC+-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
|
|
}
|