-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to copier 4.0.5. Add Ingress and GUI. (#2)
* update to copier template 4.0.3 * remove test services * add gui * add ingress * update to copier template 4.0.5 * fix bob indexes * use auto genicam on dcams * update dcam generic IOC version * final fixes to OPI
- Loading branch information
Showing
42 changed files
with
1,026 additions
and
271 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
daq-nexus |
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 |
---|---|---|
|
@@ -6,3 +6,4 @@ venv* | |
**/Chart.lock | ||
**/charts | ||
**/*copy | ||
.ci_work |
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
File renamed without changes.
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,20 @@ | ||
kind: Ingress | ||
apiVersion: networking.k8s.io/v1 | ||
metadata: | ||
name: p46-opis-ingress | ||
spec: | ||
ingressClassName: nginx | ||
tls: | ||
- hosts: | ||
- p46-opis.diamond.ac.uk | ||
rules: | ||
- host: p46-opis.diamond.ac.uk | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: epics-opis | ||
port: | ||
number: 80 |
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,65 @@ | ||
#!/bin/bash | ||
|
||
# A launcher for the phoebus container that allows X11 forwarding | ||
|
||
thisdir=$(realpath $(dirname ${BASH_SOURCE[0]})) | ||
workspace=$(realpath ${thisdir}/..) | ||
|
||
if module load phoebus 2>/dev/null; then | ||
echo "Using phoebus module" | ||
|
||
# settings for p46 | ||
settings=" | ||
-resource ${workspace}/opi/training-beamline.bob | ||
-settings ${workspace}/opi/settings.ini | ||
" | ||
|
||
set -x | ||
phoebus.sh ${settings} "${@}" | ||
else | ||
echo "No phoebus module found, using a container" | ||
|
||
if [[ $(docker --version 2>/dev/null) == *Docker* ]]; then | ||
docker=docker | ||
else | ||
docker=podman | ||
args="--security-opt=label=type:container_runtime_t" | ||
fi | ||
|
||
XSOCK=/tmp/.X11-unix # X11 socket (but we mount the whole of tmp) | ||
XAUTH=/tmp/.container.xauth.$USER | ||
touch $XAUTH | ||
xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge - | ||
chmod 777 $XAUTH | ||
|
||
x11=" | ||
-e DISPLAY | ||
-v $XAUTH:$XAUTH | ||
-e XAUTHORITY=$XAUTH | ||
--net host | ||
" | ||
|
||
args=${args}" | ||
-it | ||
" | ||
|
||
export MYHOME=/home/${USER} | ||
# mount in your own home dir in same folder for access to external files | ||
mounts=" | ||
-v=/tmp:/tmp | ||
-v=${MYHOME}/.ssh:/root/.ssh | ||
-v=${MYHOME}:${MYHOME} | ||
-v=${workspace}:/workspace | ||
" | ||
|
||
# settings for p46 | ||
settings=" | ||
-resource /workspace/opi/p46-beamline.opi | ||
-settings /workspace/opi/settings.ini | ||
" | ||
|
||
set -x | ||
$docker run ${mounts} ${args} ${x11} ghcr.io/epics-containers/ec-phoebus:latest ${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 @@ | ||
# bl46P-ea-serv-01.diamond.ac.uk | ||
org.phoebus.pv.ca/addr_list=172.23.242.47 |
Oops, something went wrong.