5g aether in a box
Change-Id: I4eaf5d3288639b2263c8458cd7985f135ac4850a
diff --git a/Makefile b/Makefile
index b7a1d71..1bf5393 100644
--- a/Makefile
+++ b/Makefile
@@ -33,10 +33,11 @@
os_vendor := $(shell lsb_release -i -s)
os_release := $(shell lsb_release -r -s)
-aiab: $(M)/system-check $(M)/omec
+omec: $(M)/system-check $(M)/omec
oaisim: $(M)/oaisim
+5gc: $(M)/system-check $(M)/5g-core
-.PHONY: aiab oaisim test reset-test clean
+.PHONY: omec oaisim 5gc test reset-test 5g-core reset-5g-test clean
$(M):
mkdir -p $(M)
@@ -159,6 +160,29 @@
kubectl wait pod -n omec --for=condition=Ready -l release=omec-user-plane --timeout=300s
touch $@
+$(M)/5g-core: | $(M)/helm-ready /opt/cni/bin/simpleovs /opt/cni/bin/static $(M)/fabric
+ kubectl get namespace omec 2> /dev/null || kubectl create namespace omec
+ helm repo update
+ helm dep up $(WORKSPACE)/cord/aether-helm-charts/omec/5g-control-plane
+ helm upgrade --install $(HELM_GLOBAL_ARGS) \
+ --namespace omec \
+ --values $(AIABVALUES) \
+ 5g-core-up \
+ $(WORKSPACE)/cord/aether-helm-charts/omec/omec-user-plane && \
+ kubectl wait pod -n omec --for=condition=Ready -l release=5g-core-up --timeout=300s
+ helm upgrade --install $(HELM_GLOBAL_ARGS) \
+ --namespace omec \
+ --values $(AIABVALUES) \
+ fgc-core \
+ $(WORKSPACE)/cord/aether-helm-charts/omec/5g-control-plane && \
+ kubectl wait pod -n omec --for=condition=Ready -l release=fgc-core --timeout=300s && \
+ helm upgrade --install $(HELM_GLOBAL_ARGS) \
+ --namespace omec \
+ 5g-ransim-plane \
+ $(WORKSPACE)/cord/aether-helm-charts/omec/5g-ran-sim && \
+ kubectl wait pod -n omec --for=condition=Ready -l release=5g-ransim-plane --timeout=300s
+ touch $@
+
# UE images includes kernel module, ue_ip.ko
# which should be built in the exactly same kernel version of the host machine
$(BUILD)/openairinterface: | $(M)/setup
@@ -205,6 +229,13 @@
kubectl delete po router || true
cd $(M); rm -f oaisim omec fabric
+reset-5g-test:
+ helm uninstall -n omec fgc-core || true
+ helm uninstall -n omec 5g-core-up || true
+ helm uninstall -n omec 5g-ransim-plane || true
+ helm uninstall -n omec mongo || true
+ cd $(M); rm -f 5g-core
+
clean: reset-test
kubectl delete po router || true
kubectl delete net-attach-def core-net || true