forked from HazyResearch/sampler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (22 loc) · 936 Bytes
/
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
FROM ubuntu
MAINTAINER [email protected]
RUN apt-get update
RUN apt-get install -y gnuplot python libpython2.7-dev default-jre default-jdk emacs postgresql postgresql-contrib git build-essential libnuma-dev bc unzip locales
RUN apt-get install -y cmake
RUN locale-gen en_US en_US.UTF-8 && dpkg-reconfigure locales
ENV USER=root
WORKDIR /root
#RUN git clone https://github.com/closedLoop/sampler.git
ADD . sampler
WORKDIR /root/sampler
# ENV DEBIAN_FRONTEND=noninteractive
ENV SHELL=/bin/bash
RUN ["/bin/bash", "-c", "make dep"]
RUN ["/bin/bash", "-c", "make"]
RUN ["/bin/bash", "-c", "make test"]
RUN mkdir -p /data/graph
RUN mkdir -p /data/out
VOLUME ["/data/graph/"]
VOLUME ["/data/out/"]
ENTRYPOINT ["./dw", "gibbs", "-w /data/graph/graph.weights", "-v /data/graph/graph.variables", "-f /data/graph/graph.factors", "-e /data/graph/graph.edges", "-m /data/graph/graph.meta", "-o /data/out"]
CMD ["-i 500", "-s 1", "-l 1000"]