Commit da25703a authored by chen2022's avatar chen2022

beifen20220525

parent de5cad1c
...@@ -34,8 +34,6 @@ services: ...@@ -34,8 +34,6 @@ services:
max-size: "100m" max-size: "100m"
depends_on: depends_on:
- stateless-mysql - stateless-mysql
volumes:
- ./green-install-packs/etc/000-default.conf:/etc/apache2/sites-enabled/000-default.conf
networks: networks:
openxg: openxg:
aliases: aliases:
......
...@@ -35,8 +35,6 @@ services: ...@@ -35,8 +35,6 @@ services:
max-size: "100m" max-size: "100m"
depends_on: depends_on:
- stateless-mysql - stateless-mysql
volumes:
- ./green-install-packs/etc/000-default.conf:/etc/apache2/sites-enabled/000-default.con
networks: networks:
openxg: openxg:
aliases: aliases:
...@@ -280,7 +278,20 @@ services: ...@@ -280,7 +278,20 @@ services:
options: options:
max-size: "100m" max-size: "100m"
depends_on: depends_on:
- stateless-mysql
- stateless-udsf
- stateless-plugin
- stateless-udr
- stateless-udm
- stateless-ausf
- stateless-amf1
- stateless-amf2
- stateless-amf3
- stateless-amf4
- stateless-amf5
- stateless-smf1 - stateless-smf1
- stateless-smf2
networks: networks:
openxg: openxg:
ipv4_address: 10.244.2.18 ipv4_address: 10.244.2.18
......
version: '3.3'
services:
stateless-ueransim2:
#image: hogostan/ueransim:1.0
image: ueransim:v6.0
container_name: stateless-ueransim2
restart: always
privileged: true
logging:
driver: "json-file"
options:
max-size: "100m"
networks:
openxg:
ipv4_address: 10.244.1.28
volumes:
- ./green-install-packs/etc/gnb2.yaml:/etc/openxg/gnb2.yaml
- ./green-install-packs/etc/ue.yaml:/etc/openxg/ue.yaml
- ./green-install-packs/etc/work:/work
ports:
- "1003:1003/tcp"
command:
- /bin/bash
- -c
- |
/etc/init.d/nginx stop
/etc/init.d/nginx start
/etc/init.d/php7.2-fpm stop
/etc/init.d/php7.2-fpm start
/UERANSIM-master/build/nr-gnb -c /etc/openxg/gnb2.yaml
networks:
openxg:
external:
name: openxg-stateless
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerName 10.244.1.8
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
mcc: '460' # Mobile Country Code value
mnc: '11' # Mobile Network Code value (2 or 3 digits)
nci: '0x000000009' # NR Cell Identity (36-bit)
idLength: 32 # NR gNB ID length in bits [22...32]
tac: 100 # Tracking Area Code
linkIp: 127.0.0.1 # gNB's local IP address for Radio Link Simulation (Usually same with local IP)
ngapIp: 10.244.1.28 # gNB's local IP address for N2 Interface (Usually same with local IP)
gtpIp: 10.244.1.28 # gNB's local IP address for N3 Interface (Usually same with local IP)
# List of AMF address information
amfConfigs:
- address: 10.244.1.20
port: 38412
# List of supported S-NSSAIs by this gNB
slices:
- sst: 1
sd: 0
# Indicates whether or not SCTP stream number errors should be ignored.
ignoreStreamIds: true
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#第四种 #第四种
/UERANSIM-master/build/nr-ue -t 1000 -c /etc/openxg/ue.yaml -n $1 /UERANSIM-master/build/nr-ue -t 500 -c /etc/openxg/ue.yaml -n $1 >/dev/null 2>&1 &
......
...@@ -231,7 +231,7 @@ CREATE TABLE `tp5_ue_state` ( ...@@ -231,7 +231,7 @@ CREATE TABLE `tp5_ue_state` (
`ueid` varchar(20) CHARACTER SET utf8 NOT NULL, `ueid` varchar(20) CHARACTER SET utf8 NOT NULL,
`status` varchar(45) CHARACTER SET utf8 NOT NULL, `status` varchar(45) CHARACTER SET utf8 NOT NULL,
`updatetime` bigint(20) NOT NULL `updatetime` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE `tp5_ue_state` ALTER TABLE `tp5_ue_state`
ADD PRIMARY KEY (`id`); ADD PRIMARY KEY (`id`);
...@@ -247,14 +247,32 @@ COMMIT; ...@@ -247,14 +247,32 @@ COMMIT;
CREATE TABLE `tp5_cpu_data` ( CREATE TABLE `tp5_cpu_data` (
`id` int(11) NOT NULL, `id` int(11) NOT NULL,
`cpu` int(11) NOT NULL DEFAULT '0', `cpu` decimal(10,2) DEFAULT '0.00',
`container_name` varchar(45) DEFAULT NULL, `container_name` varchar(45) DEFAULT NULL,
`addtime` bigint(20) NOT NULL `addtime` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE `tp5_cpu_data` ALTER TABLE `tp5_cpu_data`
ADD PRIMARY KEY (`id`); ADD PRIMARY KEY (`id`);
ALTER TABLE `tp5_cpu_data` ALTER TABLE `tp5_cpu_data`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;
--
-- 表的结构 `tp5_amfnum_log`
--
CREATE TABLE `tp5_amfnum_log` (
`id` int(11) NOT NULL,
`addtime` bigint(20) NOT NULL,
`content` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE `tp5_amfnum_log`
ADD PRIMARY KEY (`id`);
ALTER TABLE `tp5_amfnum_log`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT; COMMIT;
\ No newline at end of file
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