forked from linux/WebHosting
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user