Commit 6d2a09a9 authored by Mohamad Rahhal's avatar Mohamad Rahhal
Browse files

Update file Ryu.Dockerfile

parent 245a9c10
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -14,7 +14,9 @@

FROM python:3.9-slim

RUN apt-get update && apt-get install -y --no-install-recommends git iproute2 && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y --no-install-recommends \
    git iproute2 && \
    rm -rf /var/lib/apt/lists/*

RUN pip install --no-cache-dir --upgrade pip
# NOTE: Ryu 4.34 expects eventlet.wsgi.ALREADY_HANDLED, which disappears in Eventlet ≥ 0.30.3.
@@ -22,7 +24,8 @@ RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir --upgrade pip \
    && pip install --no-cache-dir "setuptools<58" "wheel" \
    && pip install --no-cache-dir --no-build-isolation \
       "git+https://github.com/faucetsdn/ryu.git@v4.34" "eventlet<0.30.3"
       "git+https://github.com/faucetsdn/ryu.git@v4.34" \
       "eventlet<0.30.3"


#COPY apps/ /opt/ryu-apps/  # Copy Ryu Apps, if any
@@ -32,3 +35,4 @@ WORKDIR /opt/ryu-apps
EXPOSE 6653/tcp 8080/tcp

CMD ["python", "-m", "ryu.cmd.manager", "--verbose","ryu.app.ofctl_rest"]