Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@ venv*
.venv*
*workspace

# this is the root directory for generated opi files
# and is created at runtime by IOCs using PVI
# these files are generated at runtime by IOC containers
opi/auto-generated/*
!opi/auto-generated/README.md

autosave/*
!autosave/.placeholder
runtime/*

# these files are generated from templates
# when sourcing environment.sh
Expand Down
3 changes: 3 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ services:
- EPICS_PVA_NAME_SERVERS
- EPICS_CA_NAME_SERVERS
- EPICS_CA_ADDR_LIST

# run with same ID as the user (for docker - for podman run as root)
user: ${UIDGID}
10 changes: 9 additions & 1 deletion include/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,12 @@ cat $root/services/phoebus/config/settings.template |
sed -e "s/5064/$EPICS_CA_SERVER_PORT/g" \
-e "s/5065/$EPICS_CA_REPEATER_PORT/g" \
-e "s/5075/$EPICS_PVA_SERVER_PORT/g" > \
$root/services/phoebus/config/settings.ini
$root/services/phoebus/config/settings.ini

# this is a workaround for docker creating host mounts as root if they don't exist:
# not required for podman but benign
for ioc in bl01t-di-cam-01 bl01t-ea-test-01 bl01t-mo-sim-01; do
mkdir -p $root/autosave/$ioc
mkdir -p $root/runtime/$ioc
mkdir -p $root/opi/auto-generated/$ioc
done
7 changes: 7 additions & 0 deletions include/ioc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
services:
# linux IOCs that run in a container #########################################
linux_ioc: &linux_ioc
depends_on:
init:
condition: service_completed_successfully

labels:
# a reference to which repository created this IOC
ioc_group: bl01t
Expand All @@ -14,6 +18,9 @@ services:
# should be (used by machine IOCs) this is for parity (but redundant).
location: localhost

# run with same ID as the user (for docker - for podman run as root)
user: ${UIDGID}

security_opt:
- label=disable

Expand Down
7 changes: 5 additions & 2 deletions services/bl01t-di-cam-01/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ services:
volumes:
- ../../opi/auto-generated/bl01t-di-cam-01:/epics/opi
- ../../autosave/bl01t-di-cam-01:/autosave
# FOR DEVCONTAINERS: mount in the parent of the project
- ../../..:/workspaces
- ../../runtime/bl01t-di-cam-01:/epics/runtime

configs:
- source: bl01t-di-cam-01_config
Expand All @@ -37,6 +36,10 @@ services:
<<: *bl01t-di-cam-01
image: ghcr.io/epics-containers/ioc-adsimdetector-developer:2025.3.5

volumes:
# FOR DEVCONTAINERS: mount in the parent of the project
- ../../..:/workspaces

profiles:
- devcontainer

Expand Down
3 changes: 3 additions & 0 deletions services/bl01t-ea-test-01/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ services:
IOC_NAME: bl01t-ea-test-01
IOC_PREFIX: BL01T-EA-TEST-01

volumes:
- ../../runtime/bl01t-ea-test-01:/epics/runtime

configs:
- source: bl01t-ea-test-01_config
target: epics/ioc/config
Expand Down
1 change: 1 addition & 0 deletions services/bl01t-mo-sim-01/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ services:
volumes:
- ../../opi/auto-generated/bl01t-mo-sim-01:/epics/opi
- ../../autosave/bl01t-mo-sim-01:/autosave
- ../../runtime/bl01t-mo-sim-01:/epics/runtime

configs:
- source: bl01t-mo-sim-01_config
Expand Down
3 changes: 3 additions & 0 deletions services/gateway/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ services:

image: ghcr.io/epics-containers/gateways-runtime:2024.12.3

# run with same ID as the user (for docker - for podman run as root)
user: ${UIDGID}

security_opt:
- label=disable

Expand Down
3 changes: 3 additions & 0 deletions services/pvagw/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ services:
depends_on:
- init

# run with same ID as the user (for docker - for podman run as root)
user: ${UIDGID}

security_opt:
- label=disable

Expand Down