Skip to content

Commit

Permalink
Add Dockerfile for development
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-duponchelle committed Feb 13, 2017
1 parent f33e470 commit 4fed986
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Dockerfile for GNS3 server development

FROM ubuntu:16.04

ENV DEBIAN_FRONTEND noninteractive

# Set the locale
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

RUN apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository ppa:gns3/ppa
RUN apt-get update && apt-get install -y \
python3-pip \
python3-dev \
qemu-system-x86 \
qemu-system-arm \
qemu-kvm \
libvirt-bin \
x11vnc

# Install uninstall to install dependencies
RUN apt-get install -y vpcs ubridge

ADD . /server
WORKDIR /server

RUN pip3 install -r /server/requirements.txt

EXPOSE 3080

ENTRYPOINT python3 -m gns3server --local
10 changes: 10 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ To run tests use:
py.test -v
Docker container
****************

For development you can run the GNS3 server in a container

.. code:: bash
docker build -t gns3-server .
docker run -i --expose=8001 -p 8001:8001/tcp -t gns3-server python3 -m gns3server --local --port 8001
Run as daemon (Unix only)
**************************

Expand Down

1 comment on commit 4fed986

@julien-duponchelle
Copy link
Contributor Author

@julien-duponchelle julien-duponchelle commented on 4fed986 Feb 13, 2017 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.