forked from adfmb/Bayesian-Variable-Selection
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (17 loc) · 670 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (17 loc) · 670 Bytes
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
FROM ubuntu:14.04
RUN apt-get update -y && apt-get install -y build-essential \
nano \
man \
openssh-server
RUN groupadd mpi_user
RUN useradd mpi_user -g mpi_user -m -s /bin/bash
ADD openmpi-1.10.2.tar /opt/
#RUN tar -xvf openmpi-1.10.2.tar
RUN cd /opt && chown -hR mpi_user:mpi_user openmpi-1.10.2
RUN mkdir -p /var/run/sshd
RUN echo "mpi_user ALL=(ALL:ALL) NOPASSWD:ALL" | (EDITOR="tee -a" visudo)
RUN echo "mpi_user:mpi" | chpasswd
USER mpi_user
RUN cd /opt/openmpi-1.10.2 && ./configure --prefix=/opt/openmpi-1.10.2 -with-sge && make all install
ENV PATH="/opt/openmpi-1.10.2/bin:$PATH"
ENV LD_LIBRARY_PATH="/opt/openmpi-1.10.2/lib:LD_LIBRARY_PATH"