Back to home page

EIC code displayed by LXR

 
 

    


Warning, /jana2/containers/Singularity/GPU/Dockerfile is written in an unsupported language. File is not indexed.

0001 # JANA docker image
0002 #
0003 # This will create a Docker image containing JANA source
0004 # and binaries.
0005 #
0006 # This Dockerfile is written by:
0007 #
0008 # David Lawrence
0009 #
0010 # Instructions:
0011 #
0012 #--------------------------------------------------------------------------
0013 #
0014 # To build and push the container:
0015 #
0016 #  docker build -f Dockerfile -t epsci/cuda:11.4.2-devel-ubuntu20.04 .
0017 #
0018 #--------------------------------------------------------------------------
0019 #
0020 # To run and interactive session using bash:
0021 #
0022 #  docker run -it --rm epsci/cuda:11.4.2-devel-ubuntu20.04
0023 #
0024 #--------------------------------------------------------------------------
0025 #
0026 # To build a singularity image from this:
0027 #
0028 #  singularity build epsci_cuda_11.4.2-devel-ubuntu20.04.sif docker-daemon://epsci/cuda:11.4.2-devel-ubuntu20.04
0029 #
0030 #--------------------------------------------------------------------------
0031 
0032 
0033 FROM nvidia/cuda:11.4.2-devel-ubuntu20.04
0034 LABEL maintainer "David Lawrence <davidl@jlab.org>"
0035 
0036 # Some operations require the timezone be set and will try and prompt
0037 # for it if it is not.
0038 ENV TZ=US/Eastern
0039 RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
0040 
0041 # Update package list from repositories
0042 # n.b. the ";exit 0" below is to ignore an error due to the nvidia
0043 # certificate not being verified. The right way to do this is to 
0044 # remove the nvidia repository, but this is quicker/easier.
0045 RUN apt-get update ; exit 0
0046 
0047 # Install g++ and git so we can grab and compile source
0048 RUN apt-get install -y \
0049         wget \
0050         git \
0051     cmake \
0052     make \
0053     python3-dev \
0054     python3-zmq \
0055     libczmq-dev \
0056     libxerces-c-dev \
0057     libx11-dev \
0058     libxpm-dev \
0059     libxft-dev \
0060     libxext-dev \
0061     libz3-dev \
0062     tcsh
0063 
0064 
0065 # Copy the Dockerfile into container
0066 ADD Dockerfile* /container/Docker
0067 
0068 CMD bash
0069