forked from CNES/ccsdsmo-malc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CentOSDockerfile
29 lines (19 loc) · 1.47 KB
/
CentOSDockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM centos:latest
MAINTAINER [email protected]
# Adding dependencies
RUN yum makecache && yum install -y pcre-devel git automake autoconf libtool pkgconfig gcc gcc-c++ make
# Installing client
WORKDIR /opt
#!/bin/sh
ENV GIT_DEPTH=3
RUN git clone --depth $GIT_DEPTH https://github.com/imatix/gsl && cd gsl/src && make && make install
RUN git clone --depth $GIT_DEPTH https://github.com/zeromq/zproject.git && cd zproject && ./autogen.sh && ./configure && make && make install
# Installation of last release of ZeroMQ from github
#RUN git clone --depth $GIT_DEPTH https://github.com/zeromq/libzmq libzmq && cd libzmq && ./autogen.sh && ./configure --prefix=/usr/local && make && make install
# Installaton of ZeroMQ v4.1.3 as required in the documentation
# RUN wget https://archive.org/download/zeromq_4.1.3/zeromq-4.1.3.zip && unzip zeromq-4.1.3.zip && cd zeromq-4.1.3 && ./autogen.sh && ./configure --without-libsodium --prefix=/usr/local && make && make install
RUN git clone --depth $GIT_DEPTH --branch v4.1.3 https://github.com/zeromq/zeromq4-1 zeromq4-1 && cd zeromq4-1 && ./autogen.sh && ./configure --without-libsodium --prefix=/usr/local && make && make install
# Installation of CZMQ v3.0.2 from github.
# Be careful, the use of Version 4.0 needs changes in code.
RUN git clone --depth $GIT_DEPTH --branch v3.0.2 https://github.com/zeromq/czmq czmq && cd czmq && ./autogen.sh && ./configure --without-libsodium --prefix=/usr/local && make && make install
RUN ldconfig