add input dir and script command for container to stay in foreground

Signed-off-by: Basil Bruhn <basil.bruhn@psi.ch>
This commit is contained in:
2026-07-09 14:19:25 +02:00
parent e0a7b9251b
commit 5942d2a7b1
+5
View File
@@ -472,8 +472,10 @@ services:
banf-fetcher-test:
container_name: banf-fetcher-test
image: python:3.12
restart: always
volumes:
- /opt/webcontent/tiadocrouter-test/banf-data:/data
- /opt/webcontent/tiadocrouter-test/input:/data/banf-dr
environment:
- SCP_HOST=filetransfer.test.openordering.de
- SCP_PORT=22
@@ -481,6 +483,9 @@ services:
- SFTP_PASSWORD=${BANF_FETCHER_TEST_PASSWORD}
- SCP_REMOTE_DIR=Anlagen
- SCP_HOSTKEY_FINGERPRINT="ssh-rsa 1024 fingerprint"
command: >
sh -c "pip install paramiko scp lxml &&
while true; do python /data/banf_ftpload_convert.py; sleep 120; done"
# Lange Clemens <clemens.lange@psi.ch>
# summer-project-selection.psi.ch