Debian Codegraph @

tools/docker/icfp17/Dockerfile

raw
1 FROM debian:stretch
2
3 MAINTAINER arximboldi
4
5 ## install immer
6
7 RUN apt-get update && \
8 apt-get install -y git
9 RUN git clone https://github.com/arximboldi/immer.git
10
11 ## prepare test dependencies
12
13 RUN apt-get update && \
14 apt-get install -y \
15 autoconf \
16 automake \
17 cmake \
18 g++ \
19 libboost-dev \
20 libtool \
21 make \
22 pkg-config \
23 --
24
25 RUN mkdir /immer/build
26 WORKDIR /immer/build
27 RUN cmake .. -DCMAKE_BUILD_TYPE=Release -DCHECK_BENCHMARKS=1
28 RUN make deps
29 RUN make tests examples benchmarks
30
31 ## prepare clojure dependencies
32
33 RUN apt-get update && \
34 apt-get install -y default-jdk curl
35
36 RUN curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein \
37 > /usr/local/bin/lein && \
38 chmod +x /usr/local/bin/lein
39
40 WORKDIR /immer/tools/clojure
41 ENV LEIN_ROOT ok
42 RUN lein deps
43 RUN lein compile
44
45 ## prepare scala dependencies
46
47 RUN apt-get update && \
48 apt-get install -y gnupg2 apt-transport-https
49 RUN echo "deb https://dl.bintray.com/sbt/debian /" \
50 > /etc/apt/sources.list.d/sbt.list && \
51 apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 \
52 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 && \
53 apt-get update && \
54 apt-get install -y sbt
55
56 WORKDIR /immer/tools/scala
57 RUN sbt compile
58
59 ## prepare python dependencies
60
61 RUN apt-get update && \
62 apt-get install -y python-pip
63
64 RUN pip install \
65 pytest-benchmark \
66 pyrsistent
67
68 RUN pip install /immer
69
70 ## add some editors
71
72 RUN apt-get update && \
73 apt-get install -y emacs vim nano
74
75 ## go to a useful working dir
76
77 WORKDIR /immer