Move away from build time exposing ports to runtime exposing of ports for greater flexibility
This commit is contained in:
@@ -26,16 +26,5 @@
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
# Expose port 3868 for Diameter queries
|
||||
EXPOSE 3868/udp
|
||||
EXPOSE 3868/tcp
|
||||
EXPOSE 3868/sctp
|
||||
EXPOSE 5868/udp
|
||||
EXPOSE 5868/tcp
|
||||
EXPOSE 5868/sctp
|
||||
|
||||
# Expose port 3000 Web UI of HSS
|
||||
EXPOSE 3000/tcp
|
||||
|
||||
CMD /mnt/hss/hss_init.sh && \
|
||||
cd install/bin && sleep 5 && ./open5gs-hssd
|
||||
|
@@ -26,16 +26,5 @@
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
# Expose port 3868 for Diameter queries
|
||||
EXPOSE 3868/udp
|
||||
EXPOSE 3868/tcp
|
||||
EXPOSE 3868/sctp
|
||||
EXPOSE 5868/udp
|
||||
EXPOSE 5868/tcp
|
||||
EXPOSE 5868/sctp
|
||||
|
||||
# Expose port 36412
|
||||
EXPOSE 36412/sctp
|
||||
|
||||
CMD /mnt/mme/mme_init.sh && \
|
||||
cd install/bin && ./open5gs-mmed
|
@@ -26,8 +26,4 @@
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
# Expose port 27017 for Mongodb queries
|
||||
EXPOSE 27017/udp
|
||||
EXPOSE 27017/tcp
|
||||
|
||||
CMD /mnt/mongo/mongo_init.sh
|
||||
|
@@ -26,13 +26,5 @@
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
# Expose port 3868 for Diameter queries
|
||||
EXPOSE 3868/udp
|
||||
EXPOSE 3868/tcp
|
||||
EXPOSE 3868/sctp
|
||||
EXPOSE 5868/udp
|
||||
EXPOSE 5868/tcp
|
||||
EXPOSE 5868/sctp
|
||||
|
||||
CMD /mnt/pcrf/pcrf_init.sh && sleep 10 && \
|
||||
cd install/bin && ./open5gs-pcrfd
|
@@ -26,19 +26,5 @@
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
# Expose port 3868 for Diameter queries
|
||||
EXPOSE 3868/udp
|
||||
EXPOSE 3868/tcp
|
||||
EXPOSE 3868/sctp
|
||||
EXPOSE 5868/udp
|
||||
EXPOSE 5868/tcp
|
||||
EXPOSE 5868/sctp
|
||||
|
||||
# Expose port 2152
|
||||
EXPOSE 2152/udp
|
||||
|
||||
# Expose port 2123
|
||||
EXPOSE 2123/udp
|
||||
|
||||
CMD /mnt/pgw/pgw_init.sh && \
|
||||
cd install/bin && ./open5gs-pgwd
|
@@ -26,11 +26,5 @@
|
||||
|
||||
FROM docker_open5gs
|
||||
|
||||
# Expose port 2152
|
||||
EXPOSE 2152/udp
|
||||
|
||||
# Expose port 2123
|
||||
EXPOSE 2123/udp
|
||||
|
||||
CMD /mnt/sgw/sgw_init.sh && \
|
||||
cd install/bin && ./open5gs-sgwd
|
@@ -9,4 +9,4 @@ sgw:
|
||||
dev: SGW_IF
|
||||
gtpu:
|
||||
dev: SGW_IF
|
||||
advertise_addr: CONTAINER_HOST_IP
|
||||
advertise_addr: DOCKER_HOST_IP
|
||||
|
@@ -30,4 +30,4 @@ export IF_NAME=$(ip r | awk '/default/ { print $5 }')
|
||||
|
||||
cp /mnt/sgw/sgw.yaml install/etc/open5gs
|
||||
sed -i 's|SGW_IF|'$IF_NAME'|g' install/etc/open5gs/sgw.yaml
|
||||
sed -i 's|CONTAINER_HOST_IP|'$CONTAINER_HOST_IP'|g' install/etc/open5gs/sgw.yaml
|
||||
sed -i 's|DOCKER_HOST_IP|'$DOCKER_HOST_IP'|g' install/etc/open5gs/sgw.yaml
|
||||
|
Reference in New Issue
Block a user