Skip to content

Commit

Permalink
init OSC support
Browse files Browse the repository at this point in the history
  • Loading branch information
onehouwong committed Mar 11, 2024
1 parent 717f1af commit 1760a85
Show file tree
Hide file tree
Showing 121 changed files with 2,999 additions and 2,547 deletions.
114 changes: 114 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# misc cruft
*.log
log.txt
rmr/*
docs_and_diagrams/

# documentation
.tox
docs/_build/

# standard python ignore template
.pytest_cache/
xunit-results.xml
.DS_Store
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
venv-tox/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# IPython Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# dotenv
.env

# virtualenv
venv/
ENV/

# Spyder project settings
.spyderproject

# Rope project settings
.ropeproject

# Test report
xunit-reports
coverage-reports

# Eclipse
.project
.pydevproject
.settings

9 changes: 0 additions & 9 deletions CODE_OF_CONDUCT.md

This file was deleted.

49 changes: 49 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# ==================================================================================
# Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==================================================================================
FROM python:3.8-alpine

# copy rmr libraries from builder image in lieu of an Alpine package
COPY --from=nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-alpine3-rmr:4.0.5 /usr/local/lib64/librmr* /usr/local/lib64/
# RMR setup
RUN mkdir -p /opt/route/
COPY init/test_route.rt /opt/route/test_route.rt
ENV LD_LIBRARY_PATH /usr/local/lib/:/usr/local/lib64
ENV RMR_SEED_RT /opt/route/test_route.rt
# install a legacy ver of betterproto TODO: upgrade later
RUN pip install betterproto==2.0.0b4

# sdl needs gcc
RUN apk update && apk add gcc musl-dev bash

# Install
COPY setup.py /tmp
COPY README.md /tmp
COPY LICENSE.txt /tmp/
COPY src/ /tmp/src
COPY init/ /tmp/init
RUN pip install /tmp

# Env - TODO- Configmap
ENV PYTHONUNBUFFERED 1
ENV CONFIG_FILE=/tmp/init/config-file.json

# For Default DB connection, modify for resp kubernetes env
ENV DBAAS_SERVICE_PORT=6379
ENV DBAAS_SERVICE_HOST=service-ricplt-dbaas-tcp.ricplt.svc.cluster.local

#Run
CMD run-xapp.py

35 changes: 35 additions & 0 deletions INFO.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
project: 'mobiflow_auditor'
project_creation_date: '2024-3-2'
project_category: ''
lifecycle_state: 'Incubation'
project_lead: &oran_ric_app_se_ran
name: 'SE-RAN'
email: '[email protected]'
id: 'SE-RAN'
company: 'Security-Enhanced Radio Access Network'
timezone: 'America/New_York'
primary_contact: *oran_ric_app_se_ran
issue_tracking:
type: 'Github'
url: 'https://github.com/5GSEC/MobiFlow-Auditor/issues'
key: 'MobiFlow-Auditor'
mailing_list:
type: 'groups.io'
url: 'https://lists.o-ran-sc.org/g/main'
tag: '[]'
repositories:
- 5GSEC/MobiFlow-Auditor
committers:
- <<: *oran_ric_app_se_ran
- name: 'Haohuang Wen'
email: '[email protected]'
company: 'The Ohio State University'
id: 'onehouwong'
timezone: 'America/New_York'
# - name: 'Naman Gupta'
# email: '[email protected]'
# company: 'Samsung'
# id: 'naman.gupta'
# timezone: 'Asia/Kolkata'

Loading

0 comments on commit 1760a85

Please sign in to comment.