From d81fa7d3a1bc5f44babb4fe586aa15de700eda70 Mon Sep 17 00:00:00 2001 From: Job79 Date: Mon, 10 Nov 2025 17:47:53 +0100 Subject: [PATCH] feat: add vms devcontainer --- .gitea/workflows/fedora.yaml | 9 +++++++++ containers/vms/Containerfile | 5 +++++ containers/vms/config.sh | 3 +++ 3 files changed, 17 insertions(+) create mode 100644 containers/vms/Containerfile create mode 100644 containers/vms/config.sh diff --git a/.gitea/workflows/fedora.yaml b/.gitea/workflows/fedora.yaml index 90b73cb..4f4b06e 100644 --- a/.gitea/workflows/fedora.yaml +++ b/.gitea/workflows/fedora.yaml @@ -58,3 +58,12 @@ jobs: tags: git.plabble.org/job79/infra:${{ github.ref_name }} build-args: TAG=${{ github.ref_name }} outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true + - name: Build and push vms container + uses: docker/build-push-action@v5 + with: + context: ./containers/vms + file: ./containers/vms/Containerfile + push: true + tags: git.plabble.org/job79/vms:${{ github.ref_name }} + build-args: TAG=${{ github.ref_name }} + outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true diff --git a/containers/vms/Containerfile b/containers/vms/Containerfile new file mode 100644 index 0000000..dca0f40 --- /dev/null +++ b/containers/vms/Containerfile @@ -0,0 +1,5 @@ +ARG TAG +FROM git.plabble.org/job79/fedora:${TAG} +USER root +RUN dnf -y install qemu-system-x86 +USER user diff --git a/containers/vms/config.sh b/containers/vms/config.sh new file mode 100644 index 0000000..7014b8f --- /dev/null +++ b/containers/vms/config.sh @@ -0,0 +1,3 @@ +#!/bin/bash +arg "--net host" +arg "--device /dev/kvm"