-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
132 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
# docker | ||
# dockerfiles | ||
|
||
- `Dockerfile`: Builds mainline Open5GS with the latest stable release. | ||
- `Dockerfile.metrics`: Builds custom metrics branch which spits out slice specific metrics from the UPF. | ||
Dockerfiles for containers used in this project. | ||
|
||
- `open5gs`: Builds mainline Open5GS with the latest stable release. | ||
- `open5gs-metrics`: Builds custom metrics branch which spits out slice specific metrics from the UPF. | ||
- `ueransim`: Builds UERANSIM with the latest stable release. | ||
|
||
# build | ||
|
||
Build mainline Open5GS. | ||
Images are hosted on GitHub Container Registry. | ||
Example build and push commands are given below. | ||
|
||
```bash | ||
cd open5gs | ||
docker build --no-cache -t ghcr.io/niloysh/open5gs:v2.7.0 . | ||
``` | ||
|
||
Build metrics branch. | ||
```bash | ||
docker build --no-cache -t ghcr.io/niloysh/open5gs:v2.7.0-upf-metrics -f Dockerfile.metrics . | ||
``` | ||
# Push to GitHub Container Registry | ||
docker push ghcr.io/niloysh/open5gs:v2.7.0 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
FROM gcc:9.4.0 AS builder | ||
|
||
LABEL maintainer="Niloy Saha <niloysaha.ns@gmail.com>" | ||
LABEL description="UERANSIM v3.2.6" | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
# Install dependencies | ||
RUN apt-get update \ | ||
&& apt-get install libsctp-dev lksctp-tools iproute2 -y \ | ||
&& wget https://github.com/Kitware/CMake/releases/download/v3.22.1/cmake-3.22.1-linux-x86_64.sh -O cmake_installer.sh \ | ||
&& chmod +x cmake_installer.sh \ | ||
&& ./cmake_installer.sh --skip-license \ | ||
&& git clone -b v3.2.6 -j `nproc` https://github.com/aligungr/UERANSIM \ | ||
&& cd ./UERANSIM \ | ||
&& make | ||
|
||
FROM ubuntu:20.04 | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
# Install runtime dependencies + debug tools | ||
RUN apt-get update \ | ||
&& apt-get install libsctp-dev lksctp-tools iproute2 iputils-ping -y \ | ||
&& apt-get install vim iperf3 net-tools tcpdump -y \ | ||
&& apt-get clean | ||
|
||
WORKDIR /ueransim | ||
|
||
RUN mkdir -p config/ binder/ | ||
|
||
COPY /app/* ./ | ||
RUN chmod +x init.sh | ||
|
||
COPY --from=builder /UERANSIM/build/nr-gnb . | ||
COPY --from=builder /UERANSIM/build/nr-ue . | ||
COPY --from=builder /UERANSIM/build/nr-cli . | ||
COPY --from=builder /UERANSIM/build/nr-binder binder/ | ||
COPY --from=builder /UERANSIM/build/libdevbnd.so binder/ | ||
|
||
VOLUME [ "/ueransim/config" ] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# multi-slice deployment | ||
|
||
Deploy multiple slices, with one UPF and SMF per slice. The number of slices and subscribers can be configured in `data/config.yaml`, followed by running `mongo-tools/generate-data.py` to generate the configuration files. | ||
|
||
## usage | ||
|
||
1. Generate the k8s manifest files using `msd/generate.py`. This will create `open5gs`, `ueransim-gnb` and `ueransim-ue` directories with the manifest files. | ||
2. Deploy the components using kustomize. See [deploying components](../README.md#deploying-components). |