Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use working mpi4py (from pip) #7

Merged
merged 1 commit into from
Feb 8, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ ENV DEBIAN_FRONTEND=noninteractive \


RUN apt-get update -y && \
apt-get install -y sudo && \
apt-get install -y --no-install-recommends openssh-server python-mpi4py python-numpy python-virtualenv python-scipy \
gcc gfortran openmpi-bin openmpi-common openmpi-doc binutils && \
apt-get install -y --no-install-recommends sudo apt-utils && \
apt-get install -y --no-install-recommends openssh-server \
python-dev python-numpy python-pip python-virtualenv python-scipy \
gcc gfortran libopenmpi-dev openmpi-bin openmpi-common openmpi-doc binutils && \
apt-get clean && apt-get purge && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN mkdir /var/run/sshd
Expand Down Expand Up @@ -48,11 +49,13 @@ ADD ssh/id_rsa.mpi ${SSHDIR}/id_rsa
ADD ssh/id_rsa.mpi.pub ${SSHDIR}/id_rsa.pub
ADD ssh/id_rsa.mpi.pub ${SSHDIR}/authorized_keys



RUN chmod -R 600 ${SSHDIR}* && \
chown -R ${USER}:${USER} ${SSHDIR}

RUN pip install --upgrade pip \
&& pip install -U setuptools \
&& pip install mpi4py

# ------------------------------------------------------------
# Copy MPI4PY example scripts
# ------------------------------------------------------------
Expand All @@ -62,7 +65,5 @@ ENV TRIGGER 1
ADD mpi4py_benchmarks ${HOME}/mpi4py_benchmarks
RUN chown ${USER}:${USER} ${HOME}/mpi4py_benchmarks



EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]