added pipeline and systemd file

why
Johannes Bülow 2024-01-29 09:22:59 +01:00
parent c281830df0
commit a7ef03a17b
Signed by untrusted user who does not match committer: jmb
GPG Key ID: B56971CF7B8F83A6
3 changed files with 54 additions and 1 deletions

31
.woodpecker.yaml Normal file
View File

@ -0,0 +1,31 @@
when:
branch: main
variables:
- &file Dockerfile
steps:
build:
image: docker.io/golang:bookworm
commands:
- apt-get update
- apt-get install -y make gcc libgpgme-dev build-essential pkgconf pkgconf-bin libdevmapper-dev libbrtrfs-dev
- go mod download
- go mod tidy
- CGO_ENABLED=1 go build -buildvcs=true .
when:
event: [ pull-request, push]
publish:
image: woodpeckerci/plugin-gitea-release
settings:
base_url: https://git.jmbit.de
files:
# Could also be "hello-world*" to match both
- "podterminal"
- "exampleconfig.yaml"
api_key:
from_secret: FORGEJO_TOKEN
target: main
when:
event: push

View File

@ -1,11 +1,12 @@
dir_node: /dev/dri/renderD128 dir_node: /dev/dri/renderD128
# Enable DIR passthrough to enable GPU accelleration in Container # Enable DIR passthrough to enable GPU accelleration in Container
dri: false dri: false
# Environment Variables # Environment Variables to be passed to the container.
envvars: envvars:
CUSTOM_USER: user CUSTOM_USER: user
PASSWORD: "" PASSWORD: ""
TITLE: Podterminal TITLE: Podterminal
# HTTP_PROXY: 192.168.0.10
# Container Image you want to use # Container Image you want to use
image: lscr.io/linuxserver/webtop image: lscr.io/linuxserver/webtop

21
podterminal.service Normal file
View File

@ -0,0 +1,21 @@
[Unit]
Description=Simple Terminal Server using Webtop Containers and Podman
After=podman.service
[Service]
ExecStart=/usr/local/bin/podterminal
Type=Simple
Restart=on-failure
DeviceAllow=/dev/dri/renderD128
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectKernelLogs=true
ProtectControlGroups=true
RestrictSUIDSGID=true
ProtectClock=true
PrivateTmp=true
ReadWritePaths=/run/podman/podman.sock
[Install]
WantedBy=multi-user.target