Move away from build time exposing ports to runtime exposing of ports for greater flexibility

This commit is contained in:
herlesupreeth
2020-07-21 10:14:31 +02:00
parent 0a5c87f063
commit 038052d646
8 changed files with 2 additions and 56 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -9,4 +9,4 @@ sgw:
dev: SGW_IF
gtpu:
dev: SGW_IF
advertise_addr: CONTAINER_HOST_IP
advertise_addr: DOCKER_HOST_IP

View File

@@ -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