-
Notifications
You must be signed in to change notification settings - Fork 146
/
Dockerfile
75 lines (54 loc) · 1.75 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# gibson graphical sample provided with the CUDA toolkit.
# docker build -t gibson .
# docker run --runtime=nvidia -ti --rm -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix gibson
FROM nvidia/cudagl:9.0-runtime-ubuntu16.04
RUN apt-get update && apt-get install -y --no-install-recommends \
cuda-samples-$CUDA_PKG_VERSION && \
rm -rf /var/lib/apt/lists/*
WORKDIR /usr/local/cuda/samples/5_Simulations/nbody
RUN make
#CMD ./nbody
RUN apt-get update && apt-get install -y curl
# Install miniconda to /miniconda
RUN curl -LO http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
RUN bash Miniconda-latest-Linux-x86_64.sh -p /miniconda -b
RUN rm Miniconda-latest-Linux-x86_64.sh
ENV PATH=/miniconda/bin:${PATH}
RUN conda update -y conda
RUN conda create -y -n py35 python=3.5
# Python packages from conda
ENV PATH /miniconda/envs/py35/bin:$PATH
RUN pip install http://download.pytorch.org/whl/cu90/torch-0.3.1-cp35-cp35m-linux_x86_64.whl
RUN pip install torchvision==0.2.0
RUN pip install tensorflow==1.3
WORKDIR /root
RUN apt-get install -y git build-essential cmake libopenmpi-dev
RUN apt-get install -y zlib1g-dev
RUN git clone https://github.com/fxia22/baselines.git&& \
pip install -e baselines
RUN apt-get update && apt-get install -y \
libglew-dev \
libglm-dev \
libassimp-dev \
xorg-dev \
libglu1-mesa-dev \
libboost-dev \
mesa-common-dev \
freeglut3-dev \
libopenmpi-dev \
cmake \
golang \
libjpeg-turbo8-dev \
wmctrl \
xdotool \
&& \
apt-get clean && \
apt-get autoremove && \
rm -rf /var/cache/apk/*
RUN apt-get install -y vim wget unzip
RUN apt-get install -y libzmq3-dev
ADD . /root/mount/gibson
WORKDIR /root/mount/gibson
RUN bash build.sh build_local
RUN pip install -e .
ENV QT_X11_NO_MITSHM 1