Skip to content

Commit

Permalink
Add alma9 flavour (attempt to add standalone Combine after)
Browse files Browse the repository at this point in the history
  • Loading branch information
oshadura committed Jun 13, 2024
1 parent 0b8d238 commit 7f4df0e
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/gh-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ jobs:
fail-fast: false
matrix:
image_dir: [coffea-base, coffea-dask]
distro: [almalinux8]
distro: [almalinux8, almalinux9]
python: ["3.9", "3.10", "3.11"]
exclude:
- distro: almalinux8
python: 3.9
- distro: almalinux9
python: 3.9
- image_dir: coffea-base
python: 3.11
name: ${{ matrix.image_dir }}-${{ matrix.distro }}-${{ matrix.python }}
Expand Down
29 changes: 29 additions & 0 deletions coffea-base/Dockerfile.almalinux9
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM almalinux:9

ARG python
ARG releasev0

ENV PYTHON_VERSION=${python}

RUN yum -y install epel-release \
&& yum -y update \
&& yum -y install git curl bzip2 libgfortran which \
&& curl -sSL https://github.com/conda-forge/miniforge/releases/download/23.3.1-1/Mambaforge-Linux-x86_64.sh -o /tmp/mambaforge.sh \
&& bash /tmp/mambaforge.sh -bfp /usr/local \
&& rm -rf /tmp/mambaforge.sh \
&& mamba update mamba \
&& mamba clean --all --yes \
&& rpm -e --nodeps curl bzip2 \
&& yum clean all

COPY environment.yaml /

RUN mamba install --yes python=${PYTHON_VERSION} \
&& mamba env update --file /environment.yaml \
&& mamba clean -y --all

# Make a symbolic link between installation /opt/conda/etc/grid-security and actual directory /etc/grid-security
RUN ln -s /usr/local/etc/grid-security /etc/grid-security && \
curl -L https://github.com/opensciencegrid/osg-vo-config/archive/refs/heads/master.tar.gz | \
tar -xz --strip-components=1 --directory=/etc/grid-security --wildcards */vomses */vomsdir && \
mv /etc/grid-security/vomses /etc
29 changes: 29 additions & 0 deletions coffea-dask/Dockerfile.almalinux9
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM almalinux:9

ARG python
ARG release

ENV PYTHON_VERSION=${python}

RUN yum -y install epel-release \
&& yum -y update \
&& yum -y install git curl bzip2 libgfortran which zsh emacs vim htop man man-pages \
&& curl -sSL https://github.com/conda-forge/miniforge/releases/download/23.3.1-1/Mambaforge-Linux-x86_64.sh -o /tmp/mambaforge.sh \
&& bash /tmp/mambaforge.sh -bfp /usr/local \
&& rm -rf /tmp/mambaforge.sh \
&& mamba update mamba \
&& mamba clean --all --yes \
&& rpm -e --nodeps curl bzip2 \
&& yum clean all

COPY environment.yaml /

RUN mamba install --yes python=${PYTHON_VERSION} \
&& mamba env update --file /environment.yaml \
&& mamba clean -y --all

# Make a symbolic link between installation /opt/conda/etc/grid-security and actual directory /etc/grid-security
RUN ln -s /usr/local/etc/grid-security /etc/grid-security && \
curl -L https://github.com/opensciencegrid/osg-vo-config/archive/refs/heads/master.tar.gz | \
tar -xz --strip-components=1 --directory=/etc/grid-security --wildcards */vomses */vomsdir && \
mv /etc/grid-security/vomses /etc

0 comments on commit 7f4df0e

Please sign in to comment.