# See the License for the specific language governing permissions and
# limitations under the License.
# ==================================================================================
-FROM frolvlad/alpine-miniconda3:python3.7
-#FROM python:3.7-alpine
+#Python 3.11 miniconda
+FROM continuumio/miniconda3:23.10.0-1
+
# RMR setup
RUN mkdir -p /opt/route/
-# copy rmr files 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_probe replaced health_ck
-COPY --from=nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-alpine3-rmr:4.0.5 /usr/local/bin/rmr* /usr/local/bin/
+
+# sdl uses hiredis which needs gcc
+RUN apt update && apt install -y gcc musl-dev
+
+# copy rmr libraries from builder image in lieu of an Alpine package
+ARG RMRVERSION=4.9.0
+RUN wget --content-disposition https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/rmr_${RMRVERSION}_amd64.deb/download.deb && dpkg -i rmr_${RMRVERSION}_amd64.deb
+RUN wget --content-disposition https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/rmr-dev_${RMRVERSION}_amd64.deb/download.deb && dpkg -i rmr-dev_${RMRVERSION}_amd64.deb
+RUN rm -f rmr_${RMRVERSION}_amd64.deb rmr-dev_${RMRVERSION}_amd64.deb
+
ENV LD_LIBRARY_PATH /usr/local/lib/:/usr/local/lib64
COPY tests/fixtures/local.rt /opt/route/local.rt
ENV RMR_SEED_RT /opt/route/local.rt
-# sdl needs gcc
-RUN apk update && apk add gcc musl-dev
# Install
COPY setup.py /tmp
COPY LICENSE.txt /tmp/
RUN pip install /tmp
-RUN pip install --force-reinstall redis==3.0.1
COPY src/ /src
# Run
ENV PYTHONUNBUFFERED 1
-CMD PYTHONPATH=/src:/usr/lib/python3.7/site-packages/:$PYTHONPATH run-qp.py
+CMD PYTHONPATH=/src:/usr/lib/python3.11/site-packages/:$PYTHONPATH run-qp.py
# See the License for the specific language governing permissions and
# limitations under the License.
# ==================================================================================
-FROM frolvlad/alpine-miniconda3:python3.7
-#FROM python:3.8-alpine
+#Python 3.11 miniconda
+FROM continuumio/miniconda3:23.10.0-1
+
+# RMR setup
+RUN mkdir -p /opt/route/
# sdl uses hiredis which needs gcc
-RUN apk update && apk add gcc musl-dev
+RUN apt update && apt install -y gcc musl-dev
# 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/
+ARG RMRVERSION=4.9.0
+RUN wget --content-disposition https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/rmr_${RMRVERSION}_amd64.deb/download.deb && dpkg -i rmr_${RMRVERSION}_amd64.deb
+RUN wget --content-disposition https://packagecloud.io/o-ran-sc/release/packages/debian/stretch/rmr-dev_${RMRVERSION}_amd64.deb/download.deb && dpkg -i rmr-dev_${RMRVERSION}_amd64.deb
+RUN rm -f rmr_${RMRVERSION}_amd64.deb rmr-dev_${RMRVERSION}_amd64.deb
# Upgrade pip, install tox
RUN pip install --upgrade pip && pip install tox
# Run the unit tests
WORKDIR /tmp
-RUN PYTHONPATH=/tmp/src:/usr/lib/python3.7/site-packages/:$PYTHONPATH tox -e code,flake8
+RUN PYTHONPATH=/tmp/src:/usr/lib/python3.11/site-packages/:$PYTHONPATH tox -e code,flake8
The format is based on `Keep a Changelog <http://keepachangelog.com/>`__
and this project adheres to `Semantic Versioning <http://semver.org/>`__.
+[0.0.6] - 2022-12-15
+--------------------
+* Support for python 3.11 and RMR version 4.9.0 (`RICAPP-230 <https://jira.o-ran-sc.org/browse/RICAPP-230>`_)
+
+
[0.0.5] - 2022-12-15
--------------------
* Database logic modification and improvements (`RICAPP-207 <https://jira.o-ran-sc.org/browse/RICAPP-207>`_)
# inintiate connection and create database UEDATA
db = INSERTDATA()
df = pd.read_csv('src/cells.csv')
- print("Writin data into influxDB")
+ print("Writinig data into influxDB")
while True:
db.assign_timestamp(df)
# CI script installs RMR from PackageCloud using this version
---
-version: 4.7.4
+version: 4.9.0
packages=find_packages(exclude=["tests.*", "tests"]),
description="Quality-of-Service Predictor Xapp for Traffic Steering",
url="https://gerrit.o-ran-sc.org/r/admin/repos/ric-app/qp",
- install_requires=["ricxappframe>=1.1.1,<2.0.0", "joblib>=0.3.2", "statsmodels>=0.11.1", "mdclogpy<=1.1.1", "influxdb", "pandas>=1.1.3", "scikit-learn", "schedule", "joblib"],
+ install_requires=["ricxappframe==3.2.2", "joblib>=0.3.2", "statsmodels>=0.11.1", "mdclogpy<=1.1.1", "influxdb", "pandas==1.5.3", "scikit-learn", "schedule", "joblib"],
entry_points={"console_scripts": ["run-qp.py=src.main:start"]}, # adds a magical entrypoint for Docker
license="Apache 2.0",
data_files=[("", ["LICENSE.txt"])],
[influxdb]
-#host = ricplt-influxdb.ricplt
-host = 10.244.0.21
+host = ricplt-influxdb.ricplt
port = 8086
user = admin
-password = IoyLfHwWmO
+password =
path =
database = RIC-Test
uemeas = UEReports
from exceptions import DataNotMatchError
from sklearn.metrics import mean_squared_error
from math import sqrt
+import pandas as pd
import joblib
import warnings
warnings.filterwarnings("ignore")
def constant(self):
val = True
df = self.data.copy()
- df = df.drop_duplicates().dropna()
- df = df.loc[:, (df != 0).any(axis=0)]
- if len(df) >= 10:
- val = False
+ df = df[db.thptparam]
+ df = df.drop_duplicates()
+ df = df.loc[:, df.apply(pd.Series.nunique) != 1]
+ if df is not None:
+ df = df.dropna()
+ df = df.loc[:, (df != 0).any(axis=0)]
+ if len(df) >= 10:
+ val = False
return val
def evaluate_var(self, X, lag):
sphinxcontrib-httpdomain
recommonmark
lfdocs-conf
+ urllib3~=1.26.15
+allowlist_externals = echo
commands =
sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
echo "Generated docs available in {toxinidir}/docs/_build/html"
sphinxcontrib-httpdomain
recommonmark
lfdocs-conf
+ urllib3~=1.26.15
commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
{
"xapp_name": "qp",
- "version": "0.0.5",
+ "version": "0.0.6",
"containers": [
{
"name": "qp",