-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile.build
More file actions
82 lines (75 loc) · 2 KB
/
Copy pathDockerfile.build
File metadata and controls
82 lines (75 loc) · 2 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
FROM continuumio/miniconda3
# Avoid warnings by switching to noninteractive
ENV DEBIAN_FRONTEND=noninteractive
# setup environment
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
## Install apt packages
RUN apt-get update --allow-insecure-repositories && \
apt-get install -y --no-install-recommends --allow-unauthenticated \
ca-certificates \
tzdata \
dirmngr \
gnupg2 \
psmisc \
python3-pip \
python-is-python3 \
mpich \
python3-tk \
python3-dev \
libosmesa6-dev \
libgl1-mesa-glx \
libglfw3 \
apt-utils \
git \
iproute2 \
procps \
lsb-release \
nano \
libopenmpi-dev \
swig \
wget \
ca-certificates \
curl \
bzip2 \
sudo \
cmake \
build-essential \
tar \
unzip \
g++ \
gcc \
clang \
libgtest-dev \
libgmock-dev \
patchelf \
ssh \
liboctomap-dev \
python3-sphinx && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
# Create the environment:
COPY environment.yml .
RUN conda env create -f environment.yml
# Clean up
RUN apt-get autoremove -y \
&& apt-get autoremove \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
# Switch back to dialog for any ad-hoc use of apt-get
ENV DEBIAN_FRONTEND=dialog
COPY .bashrc_docker /root/.bashrc
RUN echo "conda activate hrgym" >> /root/.bashrc
# Get Eigen3.4
RUN mkdir /usr/include/eigen3/
WORKDIR /usr/include/eigen3/
RUN curl -LJO https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.bz2
RUN tar -xvf eigen-3.4.0.tar.bz2
RUN rm eigen-3.4.0.tar.bz2
RUN echo export CMAKE_PREFIX_PATH="/usr/include/eigen3/eigen-3.4.0" >> /root/.bashrc
RUN echo export EIGEN3_INCLUDE_DIR="/usr/include/eigen3/eigen-3.4.0" >> /root/.bashrc
WORKDIR /usr/include/eigen3/eigen-3.4.0/
RUN mkdir build
WORKDIR /usr/include/eigen3/eigen-3.4.0/build
RUN cmake .. && make install
WORKDIR /