added pipeline and systemd file
This commit is contained in:
		
							parent
							
								
									c281830df0
								
							
						
					
					
						commit
						a7ef03a17b
					
				
					 3 changed files with 54 additions and 1 deletions
				
			
		
							
								
								
									
										31
									
								
								.woodpecker.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								.woodpecker.yaml
									
										
									
									
									
										Normal 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 | ||||
| 
 | ||||
|  | @ -1,11 +1,12 @@ | |||
| dir_node: /dev/dri/renderD128 | ||||
| # Enable DIR passthrough to enable GPU accelleration in Container | ||||
| dri: false | ||||
| # Environment Variables | ||||
| # Environment Variables to be passed to the container. | ||||
| envvars: | ||||
|     CUSTOM_USER: user | ||||
|     PASSWORD: "" | ||||
|     TITLE: Podterminal | ||||
|     # HTTP_PROXY: 192.168.0.10 | ||||
| 
 | ||||
| # Container Image you want to use | ||||
| image: lscr.io/linuxserver/webtop | ||||
|  |  | |||
							
								
								
									
										21
									
								
								podterminal.service
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								podterminal.service
									
										
									
									
									
										Normal 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 | ||||
		Loading…
	
	Add table
		
		Reference in a new issue