-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile-mpi
More file actions
24 lines (19 loc) · 812 Bytes
/
Dockerfile-mpi
File metadata and controls
24 lines (19 loc) · 812 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
ARG BASE_CONTAINER=define_as_build_arg
FROM $BASE_CONTAINER
LABEL MAINTAINER="CSEL Ops <admin@cs.colorado.edu>"
USER root
ENV DEBIAN_FRONTEND noninteractive
##
## Perf, MPICH
## You need to enable CAP_SYS_ADMIN to use perf in Docker
## For more infomration, refer to https://blog.alicegoldfuss.com/enabling-perf-in-kubernetes/
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
linux-tools-generic mpich libmpich-dev hwloc && \
cd /usr/lib/linux-tools && \
find `pwd` -name perf | xargs -I org_perf ln -s org_perf /usr/local/bin/perf && \
rm -rf /var/lib/apt/lists/*
RUN rm -rf /home/jovyan && \
mkdir /home/jovyan && \
chown $NB_UID:$NB_GID /home/jovyan
USER $NB_UID