Commit 82083020 authored by chen2022's avatar chen2022

可以ping通,但是amf,plugin端口无法映射到本地

parent d9876414
To run the stateless core is very easy, just follow the below steps:
### 1. 下载源码
......
version: '3.3'
services:
stateless-mysql:
image: mysql/mysql-server:5.7
container_name: stateless-mysql
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_ROOT_HOST=%
- MYSQL_DATABASE=OPENXG
volumes:
- ./docker-mysql:/var/lib/mysql
- ./etc/config:/etc/mysql/conf.d
- ./etc/init:/docker-entrypoint-initdb.d/
networks:
openxg:
ipv4_address: 10.244.1.7
stateless-udm:
image: chendocker2022/stateless-udm:1.0
container_name: stateless-udm
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
volumes:
- ./etc:/etc/openxg/
command:
- /bin/bash
- -c
- |
#/opt/5gc/udm/libs/ld-linux-x86-64.so.2 --library-path /opt/5gc/udm/libs/ /opt/5gc/udm/udm -c /etc/openxg/udm.conf -o 2>&1 | tee /var/log/udm.log
/opt/5gc/udm/libs/ld-linux-x86-64.so.2 --library-path /opt/5gc/udm/libs/ /opt/5gc/udm/udm -c /etc/openxg/udm.conf -o
networks:
openxg:
ipv4_address: 10.244.1.7
stateless-udr:
image: chendocker2022/stateless-udr:1.0
container_name: stateless-udr
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
depends_on:
- stateless-mysql
volumes:
- ./etc:/etc/openxg/
depends_on:
- stateless-mysql
command:
- /bin/bash
- -c
- |
/opt/5gc/udr/libs/ld-linux-x86-64.so.2 --library-path /opt/5gc/udr/libs/ /opt/5gc/udr/udr -c /etc/openxg/udr.conf -o
networks:
openxg:
ipv4_address: 10.244.1.17
stateless-ausf:
image: chendocker2022/stateless-ausf:1.0
container_name: stateless-ausf
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
volumes:
- ./etc:/etc/openxg/
command:
- /bin/bash
- -c
- |
/opt/5gc/ausf/libs/ld-linux-x86-64.so.2 --library-path /opt/5gc/ausf/libs/ /opt/5gc/ausf/ausf -c /etc/openxg/ausf.conf -o
networks:
openxg:
ipv4_address: 10.244.1.14
stateless-amf:
image: chendocker2022/stateless-amf:1.0
container_name: stateless-amf
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
volumes:
- ./etc:/etc/openxg/
depends_on:
- stateless-udsf
command:
- /bin/bash
- -c
- |
/opt/5gc/amf/libs/ld-linux-x86-64.so.2 --library-path /opt/5gc/amf/libs/ /opt/5gc/amf/amf -c /etc/openxg/amf.conf -o
networks:
openxg:
ipv4_address: 10.244.1.12
stateless-smf:
image: chendocker2022/stateless-smf:1.0
container_name: stateless-smf
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
depends_on:
- stateless-amf
volumes:
- ./etc:/etc/openxg/
command:
- /bin/bash
- -c
- |
/opt/5gc/smf/libs/ld-linux-x86-64.so.2 --library-path /opt/5gc/smf/libs/ /opt/5gc/smf/smf -c /etc/openxg/smf.conf -o
networks:
openxg:
ipv4_address: 10.244.2.13
stateless-spgw:
image: chendocker2022/stateless-spgw:1.0
container_name: stateless-spgwu
privileged: true
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
depends_on:
- stateless-smf
volumes:
- ./etc:/etc/openxg/
command:
- /bin/bash
- -c
- |
/opt/5gc/spgw-u-tiny/libs/ld-linux-x86-64.so.2 --library-path /opt/5gc/spgw-u-tiny/libs/ /opt/5gc/spgw-u-tiny/spgwu -c /etc/openxg/spgwu.conf -o
networks:
openxg:
ipv4_address: 10.244.2.18
stateless-udsf:
image: chendocker2022/stateless-udsf:1.0
container_name: stateless-udsf
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
depends_on:
- stateless-mysql
volumes:
- ./etc:/etc/openxg/
command:
- /bin/bash
- -c
- |
/opt/5gc/udsf/libs/ld-linux-x86-64.so.2 --library-path /opt/5gc/udsf/libs/ /opt/5gc/udsf/udsf -c /etc/openxg/udsf.conf -o
networks:
openxg:
ipv4_address: 10.244.1.16
stateless-rise:
image: chendocker2022/stateless-rise:1.0
container_name: stateless-rise
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
depends_on:
- stateless-amf
volumes:
- ./etc:/etc/openxg/
command:
- /bin/bash
- -c
- |
opt/5gc/rise/libs/ld-linux-x86-64.so.2 --library-path /opt/5gc/rise/libs/ /opt/5gc/rise/plugin -c /etc/openxg/plugin.conf -o
networks:
openxg:
ipv4_address: 10.244.1.20
networks:
openxg:
external:
name: openxg-stateless
../../../etc/spgw_u.conf
\ No newline at end of file
../../../etc/spgwu.conf
\ No newline at end of file
#!/bin/bash
mkdir -p docker-mysql
sudo docker pull mysql/mysql-server:5.7
sudo docker pull hogostan/ueransim:1.0
docker pull chendocker2022/stateless-amf:1.0
docker pull chendocker2022/stateless-smf:1.0
docker pull chendocker2022/stateless-spgw:1.0
docker pull chendocker2022/stateless-udm:1.0
docker pull chendocker2022/stateless-udr:1.0
docker pull chendocker2022/stateless-ausf:1.0
docker pull chendocker2022/stateless-udsf:1.0
docker pull chendocker2022/stateless-rise:1.0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment