-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (32 loc) · 1.56 KB
/
Dockerfile
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
# FROM fpco/stack-build:lts-7.1
FROM fpco/stack-build:lts-6.23
RUN apt-get update && apt-get -y install mlton ocaml-native-compilers gcc time
# TODO: Check SHA like Nix does:
RUN cd / && wget -nv https://github.com/cisco/ChezScheme/archive/v9.4.tar.gz && \
tar xf v9.4.tar.gz && rm -f v9.4.tar.gz
RUN cd /ChezScheme-9.4/ && ./configure && time make install
# ADD ./deps /tree-velocity/BintreeBench/deps
# Having problems on hive: [2016.11.02]
# RUN /tree-velocity/BintreeBench/deps/rustup.sh --yes --revision=1.12.0
# wget --progress=dot:giga https://static.rust-lang.org/dist/rust-1.12.1-x86_64-unknown-linux-gnu.tar.gz && \
RUN mkdir /tmp/rust && cd /tmp/rust && \
curl -O https://static.rust-lang.org/dist/rust-1.12.1-x86_64-unknown-linux-gnu.tar.gz && \
tar xf rust-1.12.1-x86_64-unknown-linux-gnu.tar.gz && \
cd rust-1.12.1-x86_64-unknown-linux-gnu && \
./install.sh && \
cd / && rm -rf /tmp/rust
# This gets 6.3, too old:
# RUN apt-get install -y racket
RUN cd /tmp/ && \
wget --progress=dot:giga http://download.racket-lang.org/releases/6.7/installers/racket-6.7-x86_64-linux.sh && \
chmod +x racket-6.7-x86_64-linux.sh && \
./racket-6.7-x86_64-linux.sh --in-place --dest /racket/ && \
ln -s /racket/bin/* /usr/local/bin/ && \
rm -rf racket-6.7-x86_64-linux.sh
# ------------------------------------------------------------
ADD . /BintreeBench
# Build all the benchmarks:
RUN scheme --version && rustc --version && racket --version && \
cd /BintreeBench && make
# For testing purposes, make sure they all run:
RUN cd /BintreeBench && make run_small