Skip to content

Commit

Permalink
Merge pull request #72 from lnls-sirius/add-trims-idff
Browse files Browse the repository at this point in the history
Add trim IDFF services
  • Loading branch information
xresende authored Dec 11, 2024
2 parents 150fe87 + a07eedf commit d484a25
Show file tree
Hide file tree
Showing 8 changed files with 268 additions and 51 deletions.
11 changes: 11 additions & 0 deletions apps/si-ap-idff-ivu18-sb08.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

export PYTHONUNBUFFERED=yes

/usr/local/bin/sirius-ioc-si-ap-idff.py SI-08SB:ID-IVU18 | tee /ioc-logs/sirius-ioc-si-ap-idff-ivu18-sb08.log & # 4.4%

# run cron for log rotation
cron &

# keep entry point running
sleep infinity
11 changes: 11 additions & 0 deletions apps/si-ap-idff-ivu18-sb14.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

export PYTHONUNBUFFERED=yes

/usr/local/bin/sirius-ioc-si-ap-idff.py SI-14SB:ID-IVU18 | tee /ioc-logs/sirius-ioc-si-ap-idff-ivu18-sb14.log & # 4.4%

# run cron for log rotation
cron &

# keep entry point running
sleep infinity
1 change: 1 addition & 0 deletions services/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
files in this folder should be generated with the script ../tool/generate_service_files.py
28 changes: 28 additions & 0 deletions services/docker-stack-si-ap-idff-ivu18-sb08.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: "3.7"

services:

iocs:
image: ghcr.io/lnls-sirius/docker-machine-applications/fac-iocs:__FAC_IOC_TAG_TEMPLATE__
command: bash -c '/ioc-apps/si-ap-idff-ivu18-sb08.bash'
volumes:
- "/storage/common/fac/iocs-log:/home/sirius/iocs-log"
deploy:
placement:
constraints:
- node.hostname == IA-18RaDiag04-CO-IOCSrv
replicas: 1
restart_policy:
condition: any
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "10m"
networks:
- ioc-network

networks:
ioc-network:
external: true
name: "host"
28 changes: 28 additions & 0 deletions services/docker-stack-si-ap-idff-ivu18-sb14.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: "3.7"

services:

iocs:
image: ghcr.io/lnls-sirius/docker-machine-applications/fac-iocs:__FAC_IOC_TAG_TEMPLATE__
command: bash -c '/ioc-apps/si-ap-idff-ivu18-sb14.bash'
volumes:
- "/storage/common/fac/iocs-log:/home/sirius/iocs-log"
deploy:
placement:
constraints:
- node.hostname == IA-18RaDiag04-CO-IOCSrv
replicas: 1
restart_policy:
condition: any
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "10m"
networks:
- ioc-network

networks:
ioc-network:
external: true
name: "host"
40 changes: 40 additions & 0 deletions services/docker-stack-si-ap-idff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,46 @@ services:
networks:
- ioc-network

ivu18-sb08:
image: ghcr.io/lnls-sirius/docker-machine-applications/fac-iocs:__FAC_IOC_TAG_TEMPLATE__
command: bash -c '/ioc-apps/si-ap-idff-ivu18-sb08.bash'
volumes:
- "/storage/common/fac/iocs-log:/home/sirius/iocs-log"
deploy:
placement:
constraints:
- node.hostname == IA-18RaDiag04-CO-IOCSrv
replicas: 1
restart_policy:
condition: any
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "10m"
networks:
- ioc-network

ivu18-sb14:
image: ghcr.io/lnls-sirius/docker-machine-applications/fac-iocs:__FAC_IOC_TAG_TEMPLATE__
command: bash -c '/ioc-apps/si-ap-idff-ivu18-sb14.bash'
volumes:
- "/storage/common/fac/iocs-log:/home/sirius/iocs-log"
deploy:
placement:
constraints:
- node.hostname == IA-18RaDiag04-CO-IOCSrv
replicas: 1
restart_policy:
condition: any
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "10m"
networks:
- ioc-network

networks:
ioc-network:
external: true
Expand Down
Loading

0 comments on commit d484a25

Please sign in to comment.