diff --git a/.gitignore b/.gitignore index 3e03bfd..dbf1977 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -cache +cosa ostree-repos diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..42df957 --- /dev/null +++ b/build.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +export COREOS_ASSEMBLER_CONTAINER=quay.io/coreos-assembler/coreos-assembler:v0.9.0 + +function cosa() { + echo -e "\n>>> cosa" "$@" "\n" + podman run --rm -ti --security-opt label=disable --privileged --user root \ + -v $PWD/cosa/:/srv/ --device /dev/kvm --device /dev/fuse \ + --tmpfs /tmp -v /var/tmp:/var/tmp --name cosa -v ${PWD}:/git:ro \ + ${COREOS_ASSEMBLER_CONTAINER_RUNTIME_ARGS} ${COREOS_ASSEMBLER_CONTAINER} "$@" +} + +set -e +if [ ! -e cosa ]; then + mkdir -p cosa + cosa init /git +fi +cosa fetch +cosa build ostree diff --git a/image.yaml b/image.yaml new file mode 120000 index 0000000..da1a3d0 --- /dev/null +++ b/image.yaml @@ -0,0 +1 @@ +fedora-coreos-config/image.yaml \ No newline at end of file