-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile-Circle
More file actions
49 lines (43 loc) · 1.8 KB
/
Dockerfile-Circle
File metadata and controls
49 lines (43 loc) · 1.8 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
ENV TERM linux
RUN apt-get -y update
RUN apt-get -y install apt-utils
RUN apt-get -y install curl
RUN apt-get -y install gfortran gcc
RUN apt-get -y install libsuitesparse-dev
RUN apt-get -y install libmetis-dev
RUN apt-get -y install libboost-dev
RUN apt-get -y install libvtk7-dev libvtk7.1
RUN apt-get -y install valgrind
RUN apt-get -y install clang
RUN apt-get -y install python3-pip
RUN pip3 install cpp-coveralls
RUN apt-get -y install g++-mingw-w64 g++-mingw-w64-x86-64 mingw-w64-tools mingw-w64 mingw-w64-i686-dev binutils-mingw-w64 gfortran-mingw-w64-x86-64
RUN apt-get -y install zip
RUN apt-get -y install git
RUN apt-get -y install software-properties-common
RUN add-apt-repository -y ppa:deadsnakes/ppa
RUN apt-get -y install python3.7 libpython3.7-dev
RUN apt-get -y install cmake
RUN apt-get -y install libgfortran3
RUN python3.7 -m pip install numpy
RUN mkdir -p /boostsrc
WORKDIR /boostsrc
RUN curl -fsL https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.gz -o boost_1_67_0.tar.gz
RUN tar zxf boost_1_67_0.tar.gz
WORKDIR /boostsrc/boost_1_67_0
RUN ./bootstrap.sh --with-python=/usr/bin/python3.7 --with-libraries=python
RUN ./b2 --with-python toolset=gcc variant=release link=shared threading=multi runtime-link=shared install
# Pull in blitz.
RUN curl -fsL https://github.com/blitzpp/blitz/archive/1.0.1.tar.gz -o /blitzpp-1.0.1.tar.gz
RUN mkdir -p /opt/blitzpp
RUN tar xvf /blitzpp-1.0.1.tar.gz -C /opt/blitzpp
WORKDIR /opt/blitzpp/blitz-1.0.1
RUN ./configure --enable-shared && make && make install
# build blitz for mingw64
RUN mkdir -p /opt/blitzpp-mingw64
RUN tar xvf /blitzpp-1.0.1.tar.gz -C /opt/blitzpp-mingw64
WORKDIR /opt/blitzpp-mingw64/blitz-1.0.1
RUN CXX=x86_64-w64-mingw32-g++-posix ./configure --host mingw64
ENTRYPOINT ["/bin/bash"]