vieter: update to new server-agent system

master
Jef Roosens 2022-12-14 17:30:51 +01:00
parent b64f56f437
commit 7d3c4cb6e5
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 32 additions and 5 deletions

View File

@ -21,6 +21,9 @@ services:
- 'VIETER_API_KEY_FILE=/run/secrets/vieter_api_key'
- 'VIETER_LOG_LEVEL=DEBUG'
- 'VIETER_DEFAULT_ARCH=x86_64'
- 'VIETER_BASE_IMAGE=git.rustybever.be/vieter-v/vieter-builder:latest'
# 1AM UTC+2
- 'VIETER_GLOBAL_SCHEDULE=0 23'
networks:
- 'public'
secrets:
@ -28,9 +31,9 @@ services:
volumes:
- 'data:/data'
cron:
agent-1:
image: 'chewingbever/vieter:dev'
command: vieter cron
command: vieter agent
user: root
healthcheck:
@ -48,9 +51,33 @@ services:
- 'VIETER_LOG_LEVEL=DEBUG'
- 'VIETER_ADDRESS=https://arch.r8r.be'
- 'VIETER_MAX_CONCURRENT_BUILDS=2'
- 'VIETER_BASE_IMAGE=git.rustybever.be/vieter-v/vieter-builder:latest'
# 1AM UTC+2
- 'VIETER_GLOBAL_SCHEDULE=0 23'
- 'VIETER_ARCH=x86_64'
secrets:
- vieter_api_key
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
agent-2:
image: 'chewingbever/vieter:dev'
command: vieter agent
user: root
healthcheck:
disable: true
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.hostname==gamma'
environment:
- 'VIETER_API_KEY_FILE=/run/secrets/vieter_api_key'
- 'VIETER_LOG_LEVEL=DEBUG'
- 'VIETER_ADDRESS=https://arch.r8r.be'
- 'VIETER_MAX_CONCURRENT_BUILDS=1'
- 'VIETER_ARCH=x86_64'
secrets:
- vieter_api_key
volumes: