Skip to content

Commit 3c0274b

Browse files
authored
Add simple phoebus launcher (#43)
* update generic IOCs to 2025.8.2 versions * add simple phoebus launcher * update CA and PVA ports in environment.sh to match recent changes
1 parent a663e6a commit 3c0274b

File tree

9 files changed

+43
-10
lines changed

9 files changed

+43
-10
lines changed

.env

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Environment variables for the EPICS IOC ports. Pick unique values
22
# to allow multiple compose beamlines to run on the same host.
3-
EPICS_CA_SERVER_PORT=5094
4-
EPICS_CA_REPEATER_PORT=5095
5-
EPICS_PVA_SERVER_PORT=5105
3+
EPICS_CA_SERVER_PORT=9064
4+
EPICS_CA_REPEATER_PORT=9065
5+
EPICS_PVA_SERVER_PORT=9075
66

77
# unique subnet for this compose project, broadcast must match the subnet
88
CA_SUBNET=170.200.0.0/16

environment.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export UIDGID=$USER_ID:$USER_GID
4141
# default to the test profile for docker compose
4242
export COMPOSE_PROFILES=test
4343
# for test profile our ca-gateway publishes PVS on the loopback interface
44-
export EPICS_CA_NAME_SERVERS=127.0.0.1:5094
45-
export EPICS_PVA_NAME_SERVERS=127.0.0.1:5095
44+
export EPICS_CA_NAME_SERVERS=127.0.0.1:9064
45+
export EPICS_PVA_NAME_SERVERS=127.0.0.1:9065
4646
# make a short alias for docker-compose for convenience
4747
alias dc="$docker compose"

opi/phoebus-launch.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
3+
# podman launcher for phoebus container
4+
5+
thisdir=$(realpath $(dirname ${BASH_SOURCE[0]}))
6+
7+
args=${args}"
8+
-it
9+
-e DISPLAY
10+
--net host
11+
--security-opt=label=type:container_runtime_t
12+
"
13+
14+
mounts="
15+
-v=/tmp:/tmp
16+
-v=${thisdir}:/workspace
17+
"
18+
19+
settings="
20+
-resource /workspace/demo.bob
21+
-settings /workspace/settings.ini
22+
"
23+
24+
set -x
25+
podman run ${mounts} ${args} ghcr.io/epics-containers/ec-phoebus:latest ${settings} "${@}"
26+

opi/settings.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# bl47p-ea-serv-01.diamond.ac.uk
2+
org.phoebus.pv.ca/name_servers=127.0.0.1:9064
3+
org.phoebus.pv.pva/epics_pva_name_servers=127.0.0.1:9075
4+
5+
# turn off auto address list to prove gateway is working
6+
# org.phoebus.pv.ca/auto_addr_list=false
7+
org.phoebus.pv.pva/epics_pva_auto_addr_list=false

services/bl01t-di-cam-01/compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
service: linux_ioc
77
file: ../../include/ioc.yml
88

9-
image: ghcr.io/epics-containers/ioc-adsimdetector-runtime:2025.7.1b2
9+
image: ghcr.io/epics-containers/ioc-adsimdetector-runtime:2025.8.2
1010

1111
labels:
1212
version: 0.1.0

services/bl01t-di-cam-01/config/ioc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# yaml-language-server: $schema=https://github.com/epics-containers/ioc-adsimdetector/releases/download/2025.7.1b2/ibek.ioc.schema.json
1+
# yaml-language-server: $schema=https://github.com/epics-containers/ioc-adsimdetector/releases/download/2025.8.1/ibek.ioc.schema.json
22

33
ioc_name: "{{ _global.get_env('IOC_NAME') }}"
44
description: Example simulated camera for BL01T

services/bl01t-ea-test-01/compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
service: linux_ioc
77
file: ../../include/ioc.yml
88

9-
image: ghcr.io/epics-containers/ioc-template-example-runtime:3.5.1
9+
image: ghcr.io/epics-containers/ioc-template-example-runtime:4.4.6
1010

1111
labels:
1212
version: 0.1.0

services/bl01t-mo-sim-01/compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
service: linux_ioc
77
file: ../../include/ioc.yml
88

9-
image: ghcr.io/epics-containers/ioc-motorsim-runtime:2025.7.3b1
9+
image: ghcr.io/epics-containers/ioc-motorsim-runtime:2025.8.2
1010

1111
labels:
1212
version: 0.1.0

services/bl01t-mo-sim-01/config/ioc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# yaml-language-server: $schema=https://github.com/epics-containers/ioc-motorsim/releases/download/2025.3.1/ibek.ioc.schema.json
1+
# yaml-language-server: $schema=https://github.com/epics-containers/ioc-motorsim/releases/download/2025.8.1/ibek.ioc.schema.json
22

33
ioc_name: "{{ _global.get_env('IOC_NAME') }}"
44

0 commit comments

Comments
 (0)