File: Dockerfile

package info (click to toggle)
hinge 0.5.0-8
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,972 kB
  • sloc: cpp: 9,480; ansic: 8,826; python: 5,023; sh: 340; makefile: 10
file content (30 lines) | stat: -rw-r--r-- 1,072 bytes parent folder | download | duplicates (4)
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
30
FROM centos:6


RUN rpm --import http://ftp.scientificlinux.org/linux/scientific/5x/x86_64/RPM-GPG-KEYs/RPM-GPG-KEY-cern

RUN yum install wget -y

RUN wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo
RUN yum install devtoolset-2-gcc devtoolset-2-binutils -y
RUN yum install devtoolset-2-gcc-c++ devtoolset-2-gcc-gfortran -y
RUN source /opt/rh/devtoolset-2/enable

ENV PATH=$PATH:/opt/rh/devtoolset-2/root/usr/bin/

RUN wget http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz --no-check-certificate && tar xf cmake-3.2.2.tar.gz
RUN cd cmake-3.2.2 && ./configure && make && make install

RUN wget http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz --no-check-certificate
RUN tar -xvzf boost_1_55_0.tar.gz
WORKDIR /boost_1_55_0/
RUN ./bootstrap.sh --with-libraries=graph
RUN ./b2 install

RUN yum install zlib-devel -y

RUN ln -s /opt/rh/devtoolset-2/root/usr/bin/gcc /usr/bin/gcc-4.8
RUN ln -s /opt/rh/devtoolset-2/root/usr/bin/g++ /usr/bin/g++-4.8
ADD . /hinge/
WORKDIR /hinge/
RUN ./utils/build.sh