remote-challenge-sync-airbus: Pass arguments through metadata files

This commit is contained in:
nemunaire 2024-03-22 19:08:21 +01:00
commit 1e24d0ea25
3 changed files with 72 additions and 6 deletions

View file

@ -203,15 +203,14 @@ services:
- /var/lib/fic/submissions
- /var/lib/fic/teams
- name: fic-remote-challenge-sync-airbus
# image: nemunaire/fic-remote-challenge-sync-airbus:latest
image: alpine:3
command: ["/bin/ash", "-c", "while true; do sleep 300; done"]
image: nemunaire/fic-remote-challenge-sync-airbus:latest
env:
- AIRBUS_BASEURL=https://....
- AIRBUS_TOKEN=abcdef0123456789abcdef0123456789
- AIRBUS_SESSIONID=42
- AIRBUS_BASEURL_FILE=/run/config/remote_sync/baseurl
- AIRBUS_TOKEN_FILE=/run/config/remote_sync/token
- AIRBUS_SESSION_NAME_FILE=/run/config/remote_sync/session_name
binds:
- /etc/hosts:/etc/hosts:ro
- /run/config/remote-challenge-sync/:/run/config/remote-challenge-sync/:ro
- /var/lib/fic/teams:/srv/TEAMS:ro
- /var/lib/fic/remote:/srv/REMOTE
runtime: