#### # A Docker container for running xmap # # To build, beware of caching and: # # * If you wish to build current master # # docker build -t xmap_ubuntu -f Dockerfile . # # * If you wish to build a specific commit, use the XMAP_COMMIT build argument. # # docker build -t xmap_ubuntu -f Dockerfile --build-arg XMAP_COMMIT= . # # To run: # # docker run -it --rm --net=host xmap_ubuntu #### FROM ubuntu:16.04 WORKDIR /project/xmap COPY . . RUN apt-get -qq update && apt-get -qqy upgrade # install xmap build dependencies RUN apt-get -qqy install build-essential cmake libgmp3-dev gengetopt libpcap-dev flex byacc libjson-c-dev pkg-config libunistring-dev wget unzip # install xmap+Docker specific things, currently just dumb-init, which allows # us to more easily send signals to xmap, for example by allowing ctrl-c of # a running container and xmap will stop. RUN apt-get -qqy install python3-dev python3-pip RUN pip3 install dumb-init RUN cmake . && make -j4 && make install ENTRYPOINT ["dumb-init", "/usr/local/sbin/xmap"]