-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.build_env
More file actions
54 lines (38 loc) · 2.23 KB
/
Copy pathDockerfile.build_env
File metadata and controls
54 lines (38 loc) · 2.23 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
50
51
# Dockerfile used to provide and environment to build the different executables of the tweetoscope during the CI/CD stage
FROM buildpack-deps:bionic
# See https://serverfault.com/questions/683605/docker-container-time-timezone-will-not-reflect-changes
ENV TZ=Europe/Paris
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Update aptitude with new repo
RUN apt update
RUN apt install -y software-properties-common
RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test
RUN apt install -y g++-7 gcc-7 libgsl-dev libgsl23 doxygen
# Deps for easykf
RUN apt install -y libboost-python-dev
# Deps for gaml-datasets
RUN apt install -y libcurl4
# Install our standard dependencies
RUN apt install -y git cmake sudo
# Install our own dependencies
# For libsvm
RUN git clone https://github.com/cjlin1/libsvm.git
RUN cd libsvm; make lib; sudo mkdir /usr/include/libsvm; sudo cp svm.h /usr/include/libsvm/ ; sudo cp libsvm.so.2 /usr/lib/ ; sudo ln -s /usr/lib/libsvm.so.2 /usr/lib/libsvm.so
# Dependency for gaml-mlp
RUN git clone https://github.com/jeremyfix/easykf.git
RUN cd easykf; mkdir -p build ; cd build ; cmake .. -DCMAKE_INSTALL_PREFIX=/usr ; sudo make install
# GAML
RUN git clone https://github.com/HerveFrezza-Buet/gaml
RUN cd gaml/gaml; mkdir -p build; cd build ; cmake .. -DCMAKE_INSTALL_PREFIX=/usr ; sudo make install
RUN cd gaml/gaml-datasets; mkdir -p build; cd build ; cmake .. -DCMAKE_INSTALL_PREFIX=/usr ; sudo make install
RUN cd gaml/gaml-xtree; mkdir -p build; cd build ; cmake .. -DCMAKE_INSTALL_PREFIX=/usr ; sudo make install
RUN cd gaml/gaml-mlp; mkdir -p build; cd build ; cmake .. -DCMAKE_INSTALL_PREFIX=/usr ; sudo make install
RUN cd gaml/gaml-libsvm; mkdir -p build; cd build ; cmake .. -DCMAKE_INSTALL_PREFIX=/usr ; sudo make install
RUN cd gaml/gaml-linear; mkdir -p build; cd build ; cmake .. -DCMAKE_INSTALL_PREFIX=/usr ; sudo make install
# Install dependency for cppkafka
RUN apt install -y librdkafka-dev
# cppKafka
RUN git clone https://github.com/mfontanini/cppkafka.git
RUN cd cppkafka; mkdir -p build; cd build; cmake .. -DCMAKE_INSTALL_PREFIX=/usr ; sudo make install
# Additional libraries
RUN apt install build-essential cython python-numpy coinor-libipopt1v5 coinor-libipopt-dev -y