Skip to content

Commit

Permalink
use external network called channel_access
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Aug 9, 2024
1 parent fceba39 commit 1dae411
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 78 deletions.
6 changes: 6 additions & 0 deletions compose/environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ if check_docker; then
USER_ID=$(id -u); USER_GID=$(id -g)
else
USER_ID=0; USER_GID=0
alias docker=podman
fi

# make sure we have a network to share beteen the devcontainer and gateway container
if ! docker network exists channel_access ; then
docker network create --subnet="170.20.0.0/16" channel_access
fi

# ensure local container users can access X11 server
Expand Down
61 changes: 0 additions & 61 deletions compose/include/ioc.yml

This file was deleted.

7 changes: 0 additions & 7 deletions compose/include/networks.yml

This file was deleted.

8 changes: 4 additions & 4 deletions compose/services/gateway/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
- source: ca-gateway_config
target: /config

command: -cip 172.20.255.255 -pvlist /config/pvlist -access /config/access -log /dev/stdout -debug 1
command: -cip 170.20.255.255 -pvlist /config/pvlist -access /config/access -log /dev/stdout -debug 1

profiles:
- test
Expand All @@ -49,6 +49,6 @@ configs:
ca-gateway_config:
file: ./config

include:
- path:
../../include/networks.yml
networks:
channel_access:
external: true
8 changes: 2 additions & 6 deletions compose/services/phoebus/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ services:
DISPLAY: $DISPLAY
tty: true
# pick a server port for phoebus so it does not reconnect to existing phoebus
command: phoebus-product/phoebus.sh -settings /config/settings.ini -server 7010
command: phoebus-product/phoebus.sh -settings /config/settings.ini -resource /opi/ioc/index.bob -server 7010
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- ~/.Xauthority:/root/.Xauthority
- ../../opi:/opi
- ../../../opi:/opi
# for X11 to work we need to run as the same UID as the host
# IMPORTANT: set UIDGID to your host user:group e.g. 1000:1000
# BUT: always to 0:0 if you are using podman
Expand All @@ -30,7 +30,3 @@ services:
configs:
phoebus_config:
file: ./config

include:
- path:
../../include/networks.yml

0 comments on commit 1dae411

Please sign in to comment.