Skip to content

Instantly share code, notes, and snippets.

@zoobab
Created December 30, 2015 21:07
Show Gist options
  • Select an option

  • Save zoobab/2a4c355562af6d01c542 to your computer and use it in GitHub Desktop.

Select an option

Save zoobab/2a4c355562af6d01c542 to your computer and use it in GitHub Desktop.

Revisions

  1. zoobab created this gist Dec 30, 2015.
    51 changes: 51 additions & 0 deletions malamute main Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,51 @@
    FROM ubuntu:trusty
    MAINTAINER Benjamin Henrion <[email protected]>

    RUN DEBIAN_FRONTEND=noninteractive apt-get update -y -q
    RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q --force-yes uuid-dev build-essential git-core libtool autotools-dev autoconf automake pkg-config unzip libkrb5-dev cmake

    RUN useradd -d /home/zmq -m -s /bin/bash zmq
    RUN echo "zmq ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/zmq
    RUN chmod 0440 /etc/sudoers.d/zmq

    USER zmq

    WORKDIR /home/zmq
    RUN git clone git://github.com/jedisct1/libsodium.git
    WORKDIR /home/zmq/libsodium
    RUN ./autogen.sh
    RUN ./configure
    RUN make
    RUN sudo make install
    RUN sudo ldconfig

    WORKDIR /home/zmq
    RUN git clone git://github.com/zeromq/libzmq.git
    WORKDIR /home/zmq/libzmq
    RUN mkdir build
    WORKDIR /home/zmq/libzmq/build
    RUN cmake ..
    RUN make
    RUN sudo make install
    RUN sudo ldconfig

    WORKDIR /home/zmq
    RUN git clone git://github.com/zeromq/czmq.git
    WORKDIR /home/zmq/czmq
    RUN mkdir build
    WORKDIR /home/zmq/czmq/build
    RUN cmake ..
    RUN make
    RUN sudo make install
    RUN sudo ldconfig

    WORKDIR /home/zmq
    RUN git clone git://github.com/zeromq/malamute.git
    WORKDIR /home/zmq/malamute
    RUN mkdir build
    WORKDIR /home/zmq/malamute/build
    RUN cmake ..
    RUN make
    RUN sudo make install
    RUN sudo ldconfig