From 717b1c5bb108ce3748568c2884a8effa8055d70c Mon Sep 17 00:00:00 2001 From: santanude Date: Thu, 1 Sep 2022 15:27:25 +0530 Subject: [PATCH] Introduce requirements.txt file in smo/ves project. SMO-89 Signed-off-by: santanude Change-Id: I893526475f13209e5457d801dd0d004b7bd8de18 Signed-off-by: santanude --- collector/Dockerfile | 3 +++ collector/pip.conf | 3 +++ dmaapadapter/Dockerfile | 7 +++++-- dmaapadapter/pip.conf | 3 +++ influxdb-connector/Dockerfile | 3 +++ influxdb-connector/pip.conf | 3 +++ requirements.txt | 24 ++++++++++++++++++++++++ 7 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 collector/pip.conf create mode 100644 dmaapadapter/pip.conf create mode 100644 influxdb-connector/pip.conf create mode 100644 requirements.txt diff --git a/collector/Dockerfile b/collector/Dockerfile index 74c65ab..4932f55 100755 --- a/collector/Dockerfile +++ b/collector/Dockerfile @@ -22,6 +22,9 @@ FROM ubuntu:focal RUN apt-get update && apt-get -y upgrade RUN apt-get install -y git curl python3 python3-pip + +COPY pip.conf /etc/pip.conf + RUN pip3 install requests jsonschema kafka-python gevent diff --git a/collector/pip.conf b/collector/pip.conf new file mode 100644 index 0000000..6581d0e --- /dev/null +++ b/collector/pip.conf @@ -0,0 +1,3 @@ +[global] +timeout = 60 +index-url = https://nexus3.o-ran-sc.org/repository/PyPi/simple diff --git a/dmaapadapter/Dockerfile b/dmaapadapter/Dockerfile index 58a8caa..7b29115 100755 --- a/dmaapadapter/Dockerfile +++ b/dmaapadapter/Dockerfile @@ -15,10 +15,13 @@ FROM ubuntu:focal + RUN apt-get update && apt-get -y upgrade -RUN apt-get install -y git curl python3 python3-pip -RUN pip3 install requests jsonschema kafka-python flask confluent-kafka +RUN apt-get install -y git curl python3 python3-pip +COPY pip.conf /etc/pip.conf + +RUN pip3 install requests jsonschema kafka-python flask confluent-kafka RUN mkdir /opt/smo diff --git a/dmaapadapter/pip.conf b/dmaapadapter/pip.conf new file mode 100644 index 0000000..6581d0e --- /dev/null +++ b/dmaapadapter/pip.conf @@ -0,0 +1,3 @@ +[global] +timeout = 60 +index-url = https://nexus3.o-ran-sc.org/repository/PyPi/simple diff --git a/influxdb-connector/Dockerfile b/influxdb-connector/Dockerfile index bd91696..ee60aa9 100755 --- a/influxdb-connector/Dockerfile +++ b/influxdb-connector/Dockerfile @@ -17,6 +17,9 @@ FROM ubuntu:focal RUN apt-get update && apt-get -y upgrade RUN apt-get install -y git curl python3 python3-pip + +COPY pip.conf /etc/pip.conf + RUN pip3 install requests confluent-kafka # Clone influxdb-connector diff --git a/influxdb-connector/pip.conf b/influxdb-connector/pip.conf new file mode 100644 index 0000000..6581d0e --- /dev/null +++ b/influxdb-connector/pip.conf @@ -0,0 +1,3 @@ +[global] +timeout = 60 +index-url = https://nexus3.o-ran-sc.org/repository/PyPi/simple diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..a5367a0 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,24 @@ +attrs==22.1.0 +certifi==2022.6.15 +charset-normalizer==2.1.1 +click==8.1.3 +confluent-kafka==1.9.2 +Flask==2.2.2 +gevent==21.12.0 +greenlet==1.1.3 +idna==3.3 +importlib-metadata==4.12.0 +importlib-resources==5.9.0 +itsdangerous==2.1.2 +Jinja2==3.1.2 +jsonschema==4.15.0 +kafka-python==2.0.2 +MarkupSafe==2.1.1 +pkgutil-resolve-name==1.3.10 +pyrsistent==0.18.1 +requests==2.28.1 +urllib3==1.26.12 +Werkzeug==2.2.2 +zipp==3.8.1 +zope.event==4.5.0 +zope.interface==5.4.0 -- 2.16.6