Move CI runners to Droplet and enable application HTTPS
vpn-dns-gateway/pipeline/pr-main This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
name: ssw590-delivery
|
||||
services:
|
||||
agent:
|
||||
image: ssw590-delivery-agent:20261114
|
||||
restart: unless-stopped
|
||||
entrypoint: ["java", "-jar", "/usr/share/jenkins/agent.jar"]
|
||||
command:
|
||||
- -url
|
||||
- http://jenkins:8080/
|
||||
- -name
|
||||
- ssw590-vince-delivery
|
||||
- -secret
|
||||
- "@/run/delivery-identity/agent-secret"
|
||||
- -webSocket
|
||||
- -workDir
|
||||
- /home/jenkins/agent
|
||||
environment:
|
||||
JAVA_TOOL_OPTIONS: "-Xms32m -Xmx96m -XX:+UseSerialGC -XX:MaxMetaspaceSize=96m"
|
||||
GOMEMLIMIT: 192MiB
|
||||
TRIVY_PARALLEL: "1"
|
||||
BUILDX_CONFIG: /home/jenkins/agent/.buildx
|
||||
DELIVERY_BUILDER: ssw590-delivery-limited
|
||||
# Docker membership is host administration, including controller access.
|
||||
# Only reviewed delivery jobs may select this exclusive one-executor node.
|
||||
group_add: ["${DOCKER_GID:?set to the host Docker socket group}"]
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
networks: [web]
|
||||
volumes:
|
||||
- workspace:/home/jenkins/agent
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- identity:/run/delivery-identity:ro
|
||||
- ./ssh_config.droplet:/etc/ssh/ssh_config.d/90-delivery-target.conf:ro
|
||||
mem_limit: 512m
|
||||
memswap_limit: 768m
|
||||
cpus: 0.5
|
||||
pids_limit: 128
|
||||
security_opt: ["no-new-privileges:true"]
|
||||
cap_drop: ["ALL"]
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 10m
|
||||
max-file: "3"
|
||||
networks:
|
||||
web:
|
||||
external: true
|
||||
name: gitea_web
|
||||
volumes:
|
||||
identity:
|
||||
external: true
|
||||
name: ssw590-delivery-identity
|
||||
workspace:
|
||||
name: ssw590-delivery-workspace
|
||||
@@ -0,0 +1,6 @@
|
||||
# On The-Ocean only: keep the inventory and pinned public-key identity, but
|
||||
# send deployment SSH to this Docker host's gateway, never across campus Wi-Fi.
|
||||
Host 147.182.178.136
|
||||
HostName host.docker.internal
|
||||
HostKeyAlias 147.182.178.136
|
||||
ConnectTimeout 10
|
||||
Reference in New Issue
Block a user