Skip to content
Snippets Groups Projects

Uprc netma controller

Merged Panagiotis Karamolegkos requested to merge UPRC_NETMA_CONTROLLER into UPRC_V2_CONTROLLERS
11 files
+ 382
193
Compare changes
  • Side-by-side
  • Inline
Files
11
@@ -5,11 +5,14 @@ FROM python:3.10
@@ -5,11 +5,14 @@ FROM python:3.10
WORKDIR /app
WORKDIR /app
# Get the files to be used in the container
# Get the files to be used in the container
COPY netma-controller/netma-controller.py .
# COPY netma-controller/netma-controller.py .
COPY netma-controller/netma-crd.yaml .
# COPY netma-controller/netma-crd.yaml .
COPY generation/traffic_generator.py /app
# COPY generation/traffic_generator.py /app
COPY generation/test_gen.py /app
# COPY generation/test_gen.py /app
COPY generation/requirements.txt /app
# COPY generation/requirements.txt /app
 
 
# Copy the files needed for the controller
 
COPY . .
# Upgrade pip
# Upgrade pip
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir --upgrade pip
@@ -17,6 +20,6 @@ RUN pip install --no-cache-dir --upgrade pip
@@ -17,6 +20,6 @@ RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# This will be the default value for the environment variable
# This will be the default value for the environment variable
ENV DATA_PATH="/app/config.json"
# ENV DATA_PATH="/app/config.json"
CMD ["python", "-u", "netma-controller.py"]
CMD ["python", "-u", "netma-controller.py"]
 
\ No newline at end of file
Loading