feat: add vms devcontainer
This commit is contained in:
@@ -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
|
||||
|
||||
5
containers/vms/Containerfile
Normal file
5
containers/vms/Containerfile
Normal file
@@ -0,0 +1,5 @@
|
||||
ARG TAG
|
||||
FROM git.plabble.org/job79/fedora:${TAG}
|
||||
USER root
|
||||
RUN dnf -y install qemu-system-x86
|
||||
USER user
|
||||
3
containers/vms/config.sh
Normal file
3
containers/vms/config.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
arg "--net host"
|
||||
arg "--device /dev/kvm"
|
||||
Reference in New Issue
Block a user