Commit 5b63d8f0 authored by Abraham, Subil's avatar Abraham, Subil
Browse files

updated Dockerfiles to use fakeroot and get around /var/cache issues

parent 113ee200
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -23,7 +23,8 @@ RUN mkdir ${MOFED_DIR}
# Need to find an easy way to pull from web
COPY MLNX_OFED_LINUX-${MOFED_VER}-${OS_VER}-${PLATFORM}.tgz ${MOFED_DIR}
 
RUN dnf install -y perl lsof numactl-libs pciutils tk libnl3 python36 tcsh gcc-gfortran tcl \
RUN rm -rf /var/cache/dnf \
    && dnf install -y perl lsof numactl-libs pciutils tk libnl3 python36 tcsh gcc-gfortran tcl \
	&& fakeroot dnf -y install tar wget git openssh \
	&& dnf clean all
RUN cd ${MOFED_DIR} && \
@@ -33,7 +34,9 @@ RUN cd ${MOFED_DIR} && \
    rm -rf ${MOFED_DIR}
 
# Compiler and dependencies
RUN dnf install -y gcc gcc-c++ libevent libevent-devel tar && dnf clean all
RUN rm -rf /var/cache/dnf \
    && dnf install -y gcc gcc-c++ libevent libevent-devel tar \
    && dnf clean all
 
# OSU benchmarks
RUN curl -o osubenchmarks.5.7.tar.gz https://mvapich.cse.ohio-state.edu/download/mvapich/osu-micro-benchmarks-5.7.tar.gz && tar -xzf osubenchmarks.5.7.tar.gz --no-same-owner
+1 −1
Original line number Diff line number Diff line
@@ -8,5 +8,5 @@ module load gcc/9.1.0
 
module -t list
 
podman build -f Dockerfile -t code.ornl.gov:4567/76a/olcfbaseimages/mpiimage-centos-cuda:latest .
podman build --build-arg mpi_root=$MPI_ROOT -v $MPI_ROOT:$MPI_ROOT -f Dockerfile -t code.ornl.gov:4567/76a/olcfbaseimages/mpiimage-centos-cuda:latest .
podman push code.ornl.gov:4567/76a/olcfbaseimages/mpiimage-centos-cuda:latest