mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
- all RAN code, CI code, configuration files, dockerfiles, in CSSL v1.0
- all deployment code (openshift, charts, ancillary files like shell
scripts), in MIT
- documentation in CC-BY-4.0
- exceptions might apply and are listed in NOTICE
- there is a new LICENSES folder with all licenses
- CONTRIBUTIONS.md has been updated accordingly
For automated changes based on OAI PL v1.1:
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.{c,h,cpp}
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.ts
perl -i~ -0pe 's/<!--.*Licensed to the OpenAirInterface.*openairinterface.org\n.*-->/<!-- SPDX-License-Identifier: LicenseRef-CSSL-1.0 -->/s' **/*.xml
The rest (cmake, files with missing license, cmake) manually.
30 lines
914 B
Bash
Executable File
30 lines
914 B
Bash
Executable File
#!/bin/bash
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
function die() { echo "${@}"; exit 1; }
|
|
|
|
[ $# -eq 1 ] || die "usage: $0 <path>"
|
|
|
|
DOCKERFILE="${1}"
|
|
|
|
function wait_for() {
|
|
local timeout=${1}
|
|
local condition=${2}
|
|
echo "wait up to ${timeout} seconds for condition \"${condition}\""
|
|
while [ $timeout -gt 0 ]; do
|
|
eval ${condition} && return
|
|
sleep 1
|
|
let timeout=$timeout-1
|
|
done
|
|
die "ERROR: timed out waiting for condition \"${condition}\""
|
|
}
|
|
|
|
# start database
|
|
docker compose -f ${DOCKERFILE} up -d db_init cassandra
|
|
wait_for 30 "docker logs prod-db-init 2> /dev/null | grep OK"
|
|
|
|
# start EPC
|
|
docker compose -f ${DOCKERFILE} up -d oai_hss redis magma_mme oai_spgwc oai_spgwu trf_gen
|
|
wait_for 20 "docker inspect --format='{{.State.Health.Status}}' prod-cassandra prod-oai-hss prod-magma-mme prod-oai-spgwc prod-oai-spgwu-tiny prod-redis prod-trf-gen | grep healthy | wc -l | grep 7"
|
|
echo "deployment OK"
|