Skip to content

Commit 4493988

Browse files
authored
update Dockerfile for NERSC (#30)
1 parent 1d0eedf commit 4493988

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

Dockerfile

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
FROM ubuntu
1+
FROM ubuntu:22.04
22

3-
RUN apt-get update
4-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
5-
python3 \
3+
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
4+
python3.10 \
65
pip \
76
make \
87
git \
@@ -11,31 +10,30 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
1110
libcurl4-openssl-dev \
1211
libtool \
1312
autoconf \
14-
automake
13+
zlib1g \
14+
libtool
1515
RUN rm -rf /var/lib/apt/lists/*
1616

17-
RUN wget https://ftp.mcs.anl.gov/pub/darshan/releases/darshan-3.4.4.tar.gz
18-
RUN tar zxvf darshan-3.4.4.tar.gz
17+
RUN wget https://web.cels.anl.gov/projects/darshan/releases/darshan-3.4.6.tar.gz
18+
RUN tar zxvf darshan-3.4.6.tar.gz
19+
WORKDIR /darshan-3.4.6/
20+
RUN ./prepare.sh
1921

20-
WORKDIR /darshan-3.4.4/
21-
22-
RUN bash prepare.sh
23-
24-
WORKDIR /darshan-3.4.4/darshan-util/
25-
26-
RUN ./configure --prefix=/opt/darshan && make && make install
27-
28-
ENV PATH=/opt/darshan/bin:$PATH
29-
ENV LD_LIBRARY_PATH=/opt/darshan/lib:$LD_LIBRARY_PATH
22+
WORKDIR /darshan-3.4.6/darshan-util/
23+
RUN ./configure --enable-pydarshan --enable-shared
24+
RUN make
25+
RUN make install
3026

3127
WORKDIR /
3228

3329
RUN git clone https://github.com/hpc-io/drishti-io
3430

3531
WORKDIR /drishti-io
3632

37-
RUN pip install --upgrade pip
3833
RUN pip install -r requirements.txt
3934
RUN pip install .
4035

36+
RUN echo "/usr/local/lib/" > /etc/ld.so.conf.d/libdarshan.conf
37+
RUN ldconfig
38+
4139
ENTRYPOINT ["drishti"]

0 commit comments

Comments
 (0)