Skip to content

Commit

Permalink
Added cuda image, adjusted gha
Browse files Browse the repository at this point in the history
  • Loading branch information
rynge committed Jul 11, 2023
1 parent 67eedaf commit e24d20f
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
echo "json=$image_json"
echo "json=$image_json" >> $GITHUB_OUTPUT
build_and_push:
build_push:
runs-on: ubuntu-latest
needs: build-image-list
# Prevent a single build failure from killing the workflow.
Expand Down
95 changes: 95 additions & 0 deletions htc/rocky:8-cuda-11.0.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
FROM nvidia/cuda:11.0.3-cudnn8-devel-rockylinux8

LABEL opensciencegrid.name="Rock 8 / CUDA 11.0.3"
LABEL opensciencegrid.description="Enterprise Linux (Rocky) 8 / CUDA 11.0.3 image"
LABEL opensciencegrid.url="https://rockylinux.org/"
LABEL opensciencegrid.category="Base"
LABEL opensciencegrid.definition_url="https://github.com/ospool-images"

# base dnf/yum setup
RUN dnf -y update && \
dnf -y install 'dnf-command(config-manager)' && \
yum -y config-manager --set-enabled powertools && \
dnf -y install epel-release

# osg repo
RUN dnf -y install https://repo.opensciencegrid.org/osg/3.6/osg-3.6-el8-release-latest.rpm

# pegasus repo - not available yet
RUN echo -e "# Pegasus\n[Pegasus]\nname=Pegasus\nbaseurl=http://download.pegasus.isi.edu/wms/download/rhel/8/\$basearch/\ngpgcheck=0\nenabled=1\npriority=50" >/etc/yum.repos.d/pegasus.repo

# well rounded basic system to support a wide range of user jobs
RUN dnf -y groupinstall "Development Tools" \
"Scientific Support"

RUN dnf -y install --allowerasing --enablerepo=osg-testing \
redhat-lsb \
bc \
binutils \
binutils-devel \
coreutils \
curl \
fontconfig \
gcc \
gcc-c++ \
gcc-gfortran \
git \
glib2-devel \
glibc-langpack-en \
glibc-locale-source \
graphviz \
gsl-devel \
java-11-openjdk \
java-11-openjdk-devel \
jq \
libgfortran \
libGLU \
libgomp \
libicu \
libquadmath \
libtool \
libtool-ltdl \
libtool-ltdl-devel \
libX11-devel \
libXaw-devel \
libXext-devel \
libXft-devel \
libxml2 \
libxml2-devel \
libXmu-devel \
libXpm \
libXpm-devel \
libXt \
mesa-libGL-devel \
openssh \
openssh-server \
osg-ca-certs \
osg-wn-client \
pegasus \
python3-devel \
python3-numpy \
python3-scipy \
redhat-lsb-core \
rsync \
stashcp \
subversion \
tcl-devel \
tcsh \
time \
tk-devel \
wget \
which

# Cleaning caches to reduce size of image
RUN dnf clean all

# make sure we have a way to bind host provided libraries
# see https://github.com/singularityware/singularity/issues/611
RUN mkdir -p /host-libs /etc/OpenCL/vendors

RUN mkdir -p /.singularity.d
COPY osg-labels.json /.singularity.d/labels.json

# build info
RUN echo "Timestamp:" `date --utc` | tee /image-build-info.txt

7 changes: 7 additions & 0 deletions htc/rocky:8-cuda-11.0.3/osg-labels.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"opensciencegrid.name": "Rocky Linux 8 with CUDA 11.0.3",
"opensciencegrid.description": "Enterprise Linux (Rocky) 8 base image, with CUDA 11.0.3",
"opensciencegrid.url": "https://rockylinux.org/",
"opensciencegrid.category": "Base",
"opensciencegrid.definition_url": "https://github.com/osg-htc/htc-images"
}

0 comments on commit e24d20f

Please sign in to comment.