Merge "Add creation of /var/run/dragonflow directory in docker"
This commit is contained in:
commit
a9779b9a94
|
@ -10,7 +10,9 @@ ENV DEBIAN_FRONTEND noninteractive
|
|||
|
||||
RUN apt-get update && apt-get install -y $DRAGONFLOW_PACKAGES
|
||||
|
||||
RUN mkdir -p /opt/dragonflow
|
||||
# Create config folder
|
||||
ENV DRAGONFLOW_ETCDIR /etc/dragonflow
|
||||
RUN mkdir -p $DRAGONFLOW_ETCDIR /opt/dragonflow /var/run/dragonflow
|
||||
|
||||
# Copy Dragonflow sources to the container
|
||||
COPY . /opt/dragonflow/
|
||||
|
@ -19,9 +21,5 @@ COPY . /opt/dragonflow/
|
|||
WORKDIR /opt/dragonflow
|
||||
RUN pip install -e .
|
||||
|
||||
# Create config folder
|
||||
ENV DRAGONFLOW_ETCDIR /etc/dragonflow
|
||||
RUN mkdir -p $DRAGONFLOW_ETCDIR
|
||||
|
||||
ENTRYPOINT ["./tools/run_dragonflow.sh"]
|
||||
|
||||
|
|
|
@ -6,7 +6,9 @@ RUN dnf install -y git python3-pip python3-psutil python3-devel \
|
|||
RUN alternatives --install /usr/bin/python python /usr/bin/python3 1
|
||||
RUN alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
|
||||
|
||||
RUN mkdir -p /opt/dragonflow
|
||||
# Create config folder
|
||||
ENV DRAGONFLOW_ETCDIR /etc/dragonflow
|
||||
RUN mkdir -p $DRAGONFLOW_ETCDIR /opt/dragonflow /var/run/dragonflow
|
||||
|
||||
# Copy Dragonflow sources to the container
|
||||
COPY . /opt/dragonflow/
|
||||
|
@ -15,9 +17,5 @@ COPY . /opt/dragonflow/
|
|||
WORKDIR /opt/dragonflow
|
||||
RUN pip install -e .
|
||||
|
||||
# Create config folder
|
||||
ENV DRAGONFLOW_ETCDIR /etc/dragonflow
|
||||
RUN mkdir -p $DRAGONFLOW_ETCDIR
|
||||
|
||||
ENTRYPOINT ["./tools/run_dragonflow.sh"]
|
||||
|
||||
|
|
Loading…
Reference in New Issue