From 62d641b28045afa85be9233ab4fdd6cc3974f5d4 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Sun, 22 Nov 2020 23:58:50 +0100 Subject: [PATCH] switch to cosa --- .gitignore | 2 +- build.sh | 19 +++++++++++++++++++ image.yaml | 1 + 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100755 build.sh create mode 120000 image.yaml 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