-
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.
add simplifications from ioc-adsimdetector work
- Loading branch information
Showing
10 changed files
with
95 additions
and
36 deletions.
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
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
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
Empty file.
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,49 @@ | ||
#!/bin/bash | ||
|
||
# A launcher for the phoebus to view the generated OPIs | ||
|
||
thisdir=$(realpath $(dirname $0)) | ||
workspace=$(realpath ${thisdir}/..) | ||
|
||
settings=" | ||
-resource ${workspace}/opi/auto-generated/index.bob | ||
-settings ${workspace}/opi/settings.ini | ||
" | ||
|
||
if which phoebus.sh &>/dev/null ; then | ||
echo "Using phoebus.sh from PATH" | ||
set -x | ||
phoebus.sh ${settings} "${@}" | ||
|
||
elif module load phoebus 2>/dev/null; then | ||
echo "Using phoebus module" | ||
set -x | ||
phoebus.sh ${settings} "${@}" | ||
|
||
else | ||
echo "No local phoebus install found, using a container" | ||
|
||
if podman version &> /dev/null && [[ -z $USE_DOCKER ]] ; | ||
then docker=podman | ||
else docker=docker | ||
fi | ||
echo "Using $docker as container runtime" | ||
|
||
# ensure local container users can access X11 server | ||
xhost +SI:localuser:$(id -un) | ||
|
||
# settings for container launch | ||
x11="-e DISPLAY --net host" | ||
args=$"--rm -it --security-opt=label=none" | ||
mounts="-v=/tmp:/tmp -v=${workspace}:/workspace" | ||
image="ghcr.io/epics-containers/ec-phoebus:latest" | ||
|
||
settings=" | ||
-settings /workspace/opi/settings.ini | ||
-resource /workspace/opi/auto-generated/index.bob | ||
" | ||
|
||
set -x | ||
$docker run ${mounts} ${args} ${x11} ${image} ${settings} "${@}" | ||
|
||
fi |
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,2 @@ | ||
# point at local host for channel access | ||
org.phoebus.pv.ca/addr_list=127.0.0.1 |
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