-
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.
- Loading branch information
Showing
15 changed files
with
49 additions
and
4,481 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
# A basic init service that sets up volumes for the IOCs described in | ||
# this repo. | ||
# | ||
# At present this is just making sure the opi volume has a subfolder for | ||
# each service and copies in any hand coded opis to those folders. | ||
|
||
services: | ||
|
||
init_iocs: | ||
|
||
image: docker.io/busybox | ||
|
||
command: | | ||
sh /repo/include/init.sh | ||
volumes: | ||
- opi:/opi/ | ||
- opi_auto:/opi_auto/ | ||
- ..:/repo | ||
# mount the runtime opi folder | ||
- ../services/opi:/opi/ | ||
# mount the repo to copy hand coded opis into runtime opi | ||
- ..:/repo |
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 |
---|---|---|
@@ -1,5 +1,21 @@ | ||
volumes: | ||
# hand coded opi files from this repo | ||
opi: | ||
# auto generated opi files created by pvi in each IOC | ||
opi_auto: | ||
|
||
# Note - for the moment we don't use this volume but instead bind mount | ||
# services/opis host folder into the ioc containers. | ||
# | ||
# This is because of a podman limitation that ignores the subpath field | ||
# of a volume mount. | ||
# | ||
# Keeping this file as a reminder of how we would prefer to use docker | ||
# volumes for this purpose once the issue is resolved: | ||
# https://github.com/containers/podman/issues/20661 | ||
|
||
# in kubernetes we also create volumes for | ||
# - autosave | ||
# - runtime (mounted to /epics/runtime) | ||
# - data - for each IOC that wants to persist data | ||
# - binaries - for proxy that control hard IOCs and supply their binaries | ||
# | ||
# in future this compose framework could include these volumes too |
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 |
---|---|---|
@@ -1,8 +1,21 @@ | ||
OPI Folders for IOCs | ||
==================== | ||
OPI Files | ||
========= | ||
|
||
If required, hand coded bob files can be added here for each IOC in a subfolder with the same name as the IOC. These folders are copied in to the 'opi' volume by the init_epics container. | ||
In this repository there are two opi folders: | ||
|
||
PVI autogenerated bob files will then be added to these folders in the opi volume as each IOC launches. | ||
- services/opi - This folder is used as the runtime opi location mounted by | ||
all iocs. Its contents are not committed in to git. | ||
|
||
NOTE: because podman does not currently support sub_path volume mounts - we place all of the generated files for this project in here and refer to those from phoebus. See this issue for details: https://github.com/containers/podman/issues/20661 | ||
Each ioc mounts a subfolder in this directory and places its generated | ||
opi files in there. | ||
|
||
In future this will be a docker/podman volume. | ||
But at present there is an bug with podman that does not allow it to | ||
mount a subfolder of a volume. See | ||
[podman issue 20661](https://github.com/containers/podman/issues/20661) | ||
|
||
- opi - This folder is a place for hand coded bob files that are copied into | ||
the opi volume by the init container [init.yaml](../include/init.yaml). | ||
|
||
The contents of this folder are committed in to git. For this reason it is | ||
found in .gitignore. |
Oops, something went wrong.