-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from epics-containers/configurable-net
Make EPICS CA PORTS and the network subnet configurable
- Loading branch information
Showing
15 changed files
with
142 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Environment variables for the EPICS IOC ports. Pick unique values | ||
# to allow multiple compose beamlines to run on the same host. | ||
EPICS_CA_SERVER_PORT=5094 | ||
EPICS_CA_REPEATER_PORT=5095 | ||
EPICS_PVA_SERVER_PORT=5105 | ||
|
||
# unique subnet for this compose project, broadcast must match the subnet | ||
CA_SUBNET=170.200.0.0/16 | ||
CA_BROADCAST=170.200.255.255 | ||
|
||
# EPICS name server configuration - do not change | ||
EPICS_PVA_NAME_SERVERS=localhost:${EPICS_PVA_SERVER_PORT} | ||
EPICS_CA_NAME_SERVERS=localhost:${EPICS_CA_SERVER_PORT} | ||
|
||
# clients outside of containers should use this address list | ||
# to access local containers with this configuration and with default ports too | ||
EPICS_CA_ADDR_LIST="127.0.0.1:${EPICS_PVA_SERVER_PORT} 127.0.0.1:5064" |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
root=$(realpath $(dirname $0)/..) | ||
|
||
echo "setting up configuration file for pva gateway" | ||
|
||
cat $root/services/pvagw/config/pvagw.template | | ||
sed -e "s/172.20.255.255/$CA_BROADCAST/g" \ | ||
-e "s/5075/$EPICS_PVA_SERVER_PORT/g" > \ | ||
$root/services/pvagw/config/pvagw.config | ||
|
||
echo "setting up configuration file for phoebus" | ||
|
||
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 |
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,7 +1,6 @@ | ||
networks: | ||
channel_access: | ||
name: "channel_access" | ||
ipam: | ||
driver: default | ||
config: | ||
- subnet: "172.20.0.0/16" | ||
- subnet: "${CA_SUBNET}" |
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 was deleted.
Oops, something went wrong.
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,6 @@ | ||
# using localhost for channel access to isolate it to the host for development | ||
org.phoebus.pv.ca/addr_list=127.0.0.1:5064 | ||
org.phoebus.pv.ca/server_port=5064 | ||
org.phoebus.pv.ca/repeater_port=5065 | ||
org.phoebus.pv.pva/server_port=5075 | ||
org.phoebus.pv.pva/epics_pva_name_servers=127.0.0.1:5075 |
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.