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_API_KEY_FILE=/run/secrets/vieter_api_key'
|
||||||
- 'VIETER_LOG_LEVEL=DEBUG'
|
- 'VIETER_LOG_LEVEL=DEBUG'
|
||||||
- 'VIETER_DEFAULT_ARCH=x86_64'
|
- '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:
|
networks:
|
||||||
- 'public'
|
- 'public'
|
||||||
secrets:
|
secrets:
|
||||||
|
@ -28,9 +31,9 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- 'data:/data'
|
- 'data:/data'
|
||||||
|
|
||||||
cron:
|
agent-1:
|
||||||
image: 'chewingbever/vieter:dev'
|
image: 'chewingbever/vieter:dev'
|
||||||
command: vieter cron
|
command: vieter agent
|
||||||
user: root
|
user: root
|
||||||
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
@ -48,9 +51,33 @@ services:
|
||||||
- 'VIETER_LOG_LEVEL=DEBUG'
|
- 'VIETER_LOG_LEVEL=DEBUG'
|
||||||
- 'VIETER_ADDRESS=https://arch.r8r.be'
|
- 'VIETER_ADDRESS=https://arch.r8r.be'
|
||||||
- 'VIETER_MAX_CONCURRENT_BUILDS=2'
|
- 'VIETER_MAX_CONCURRENT_BUILDS=2'
|
||||||
- 'VIETER_BASE_IMAGE=git.rustybever.be/vieter-v/vieter-builder:latest'
|
- 'VIETER_ARCH=x86_64'
|
||||||
# 1AM UTC+2
|
secrets:
|
||||||
- 'VIETER_GLOBAL_SCHEDULE=0 23'
|
- 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:
|
secrets:
|
||||||
- vieter_api_key
|
- vieter_api_key
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in New Issue