Skip to content

Commit

Permalink
got gateway and podman working
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Jun 30, 2024
1 parent eef7f2f commit 1f14e0a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
14 changes: 4 additions & 10 deletions include/ioc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
# For use with 'extends' in each individual IOC service description

services:

# linux IOCs that run in a container ##########################################
# linux IOCs that run in a container #########################################
linux_ioc: &linux_ioc

depends_on:
- init_iocs

Expand Down Expand Up @@ -43,12 +41,12 @@ services:
- "5064-5065/udp"
- "5064-5065"

# proxy services that each manage an RTEMS hard IOC ############################
# proxy services that each manage an RTEMS hard IOC ##########################
rtems_ioc:

# use an alias to copy all of the linux_ioc spec and add RTEMS environment
# use an alias to copy all of the linux_ioc spec
<<: *linux_ioc

# and add RTEMS environment variables
environment:
RTEMS_ROOT_NFS: /nfsv2-tftp
RTEMS_ROOT_TFTP: /nfsv2-tftp
Expand All @@ -58,7 +56,3 @@ services:
# But may need to move these to individual IOCs for the Machine.
RTEMS_IOC_NETMASK": 255.255.240.0
RTEMS_IOC_GATEWAY": 172.23.240.254




5 changes: 4 additions & 1 deletion services/gateway/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ services:
image: docker.io/pklaus/ca-gateway
container_name: ca-gateway
expose:
# podman gets 'rootlessport listen udp 0.0.0.0:5065: bind: address already in use'
# when we add the 5065 port here - TODO, diagnose
- "5064-5065/udp"
- "5064-5065"
ports:
- "5064-5065:5064-5065/udp"
- "5064:5064/udp"
- "5064-5065:5064-5065"
restart: unless-stopped
networks:
Expand All @@ -30,6 +32,7 @@ services:

profiles:
- deploy
- develop

configs:
ca-gateway_config:
Expand Down
6 changes: 4 additions & 2 deletions services/phoebus/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ services:
# IMPORTANT: set UIDGID to your host user:group e.g. 1000:1000
# BUT: always to 0:0 if you are using podman
user: ${UIDGID}
networks:
- channel_access

# network host with a gateway for CA is the most reliable way to
# get X11 forwarding to work - even with ssh->container
network_mode: host

profiles:
- develop
Expand Down

0 comments on commit 1f14e0a

Please sign in to comment.