vieter: update to new server-agent system
parent
b64f56f437
commit
7d3c4cb6e5
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue