Merge "Add Fedora based docker file creation"

This commit is contained in:
Zuul 2018-11-12 10:33:44 +00:00 committed by Gerrit Code Review
commit 56c7d93ef1
1 changed files with 23 additions and 0 deletions

23
Dockerfile.fedora Normal file
View File

@ -0,0 +1,23 @@
FROM fedora:latest
RUN dnf install -y git python3-pip python3-psutil python3-devel \
"@C Development Tools and Libraries"
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
# Copy Dragonflow sources to the container
COPY . /opt/dragonflow/
# Install Dragonflow on the container
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"]