Add tox.ini and requirements, update Dockerfile
Change-Id: I2489a64b55e29eeb0c20cb4441e609fa8120ad11
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/Dockerfile b/Dockerfile
index 6761fe1..6b5c15f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -13,18 +13,24 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-FROM ubuntu:18.04
+FROM ubuntu:22.04
+
+RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \
+ DEBIAN_FRONTEND=noninteractive apt-get --yes install \
+ python3=3.10.* \
+ python3-pip=22.0.* \
+ && rm -rf /var/lib/apt/lists/*
+
+# gcc=4:11.* \
+# python3-dev=3.10.* \
+# curl=7.81.* \
# Set the working directory to /app
WORKDIR /app/EE
# Libraries used by the base osm defined ee
RUN apt-get update && apt-get install -y git python3 python3-pip \
- && python3 -m pip install --upgrade pip \
- && python3 -m pip install -U grpcio-tools \
- && python3 -m pip install -U grpclib \
- && python3 -m pip install -U PyYAML \
- && python3 -m pip install -U kubernetes
+ && python3 -m pip install --upgrade pip
# Libraries used by the vnf: asyncssh, ansible
#RUN apt-get update && apt-get install software-properties-common \
@@ -38,7 +44,7 @@
ADD . /app/EE
# Install as module
-RUN python3 -m pip install -e /app/EE
+RUN python3 -m pip install -e /app/EE -r /app/EE/requirements.txt
# Install SNMP Generator and its dependencies
#RUN apt-get install -y python3-pip unzip build-essential libsnmp-dev wget curl