-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from lnls-sirius/add-bl-ap-imgproc
Add bl ap imgproc
- Loading branch information
Showing
4 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
export PYTHONUNBUFFERED=yes | ||
|
||
# CPU usage estimate (ps aux): | ||
|
||
/usr/local/bin/sirius-ioc-bl-ap-imgproc-caxdvf2.py --devname CAX:B:BASLER01 \ | ||
| tee /ioc-logs/sirius-ioc-bl-ap-imgproc-caxdvf2.log & | ||
|
||
# /usr/local/bin/sirius-ioc-bl-ap-imgproc-caxdvf1.py --devname CAX:A:BASLER01 \ | ||
# | tee /ioc-logs/sirius-ioc-bl-ap-imgproc-caxdvf1.log & | ||
|
||
# run cron for log rotation | ||
cron & | ||
|
||
# keep entry point running | ||
sleep infinity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
version: "3.7" | ||
|
||
services: | ||
|
||
iocs: | ||
image: dockerregistry.lnls-sirius.com.br/fac/fac-iocs:__FAC_IOC_TAG_TEMPLATE__ | ||
command: bash -c '/ioc-apps/bl-ap-imgproc.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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters