Skip to content

Commit

Permalink
Merge pull request #105 from garlick/ci_update2
Browse files Browse the repository at this point in the history
ci:  add fedora40 and el9 builders
  • Loading branch information
mergify[bot] authored Dec 13, 2024
2 parents 2442071 + c420821 commit 8d8d3b7
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 7 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: "el8 - ompi v4.1.4"
image: "el8"
ompi_branch: "v4.1.4"
openpmix_branch: "v3.2.3"
openpmix_branch: "v3.2.5"
coverage: false
env: {}
- name: "jammy - coverage"
Expand All @@ -49,8 +49,14 @@ jobs:
coverage: true
env:
COVERAGE: t
- name: "fedora34 - ompi v5.0.6"
image: "fedora34"
- name: "fedora40 - ompi v5"
image: "fedora40"
ompi_branch: "v5.0.6"
openpmix_branch: "v4.2.9"
coverage: false
env: {}
- name: "el9 - ompi v5"
image: "el9"
ompi_branch: "v5.0.6"
openpmix_branch: "v4.2.9"
coverage: false
Expand Down
2 changes: 1 addition & 1 deletion src/test/docker/el8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM fluxrm/flux-core:el8
ARG USER=fluxuser
ARG UID=1000
ARG OMPI_BRANCH=v5.0.x
ARG OPENPMIX_BRANCH=v4.2.2
ARG OPENPMIX_BRANCH=v4.2.9

RUN \
if test "$USER" != "fluxuser"; then \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM fluxrm/flux-core:fedora34
FROM fluxrm/flux-core:el9

ARG USER=fluxuser
ARG UID=1000
ARG OMPI_BRANCH=v5.0.x
ARG OPENPMIX_BRANCH=v4.2.2
ARG OPENPMIX_BRANCH=v4.2.9

RUN \
if test "$USER" != "fluxuser"; then \
Expand All @@ -17,7 +17,6 @@ RUN \
# install ompi prereqs
RUN sudo yum -y update \
&& sudo yum -y install \
flex \
libevent-devel \
zlib-devel \
&& sudo yum -y remove mpich mpich-devel \
Expand All @@ -33,6 +32,7 @@ RUN cd /tmp \
&& ./configure --prefix=/usr \
--enable-debug --disable-sphinx \
&& make -j $(nproc) \
&& sudo rm -rf /usr/lib64/pmix \
&& sudo make install \
&& cd .. \
&& rm -rf openpmix
Expand Down
57 changes: 57 additions & 0 deletions src/test/docker/fedora40/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
FROM fluxrm/flux-core:fedora40

ARG USER=fluxuser
ARG UID=1000
ARG OMPI_BRANCH=v5.0.x
ARG OPENPMIX_BRANCH=v4.2.9

RUN \
if test "$USER" != "fluxuser"; then \
sudo groupadd -g $UID $USER \
&& sudo useradd -g $USER -u $UID -d /home/$USER -m $USER \
&& sudo sh -c "printf \"$USER ALL= NOPASSWD: ALL\\n\" >> /etc/sudoers" \
&& sudo usermod -G wheel $USER \
&& sudo usermod -G wheel fluxuser ; \
fi

# install ompi prereqs
RUN sudo yum -y update \
&& sudo yum -y install \
flex \
libevent-devel \
zlib-devel \
&& sudo yum -y remove mpich mpich-devel pmix pmix-devel \
&& sudo yum clean all

# build/install openpmix
RUN cd /tmp \
&& git clone -b ${OPENPMIX_BRANCH} \
--recursive --depth=1 https://github.com/openpmix/openpmix \
&& cd openpmix \
&& git branch \
&& ./autogen.pl \
&& ./configure --prefix=/usr \
--enable-debug --disable-sphinx \
&& make -j $(nproc) \
&& sudo make install \
&& cd .. \
&& rm -rf openpmix

# build/install ompi
RUN cd /tmp \
&& git clone -b ${OMPI_BRANCH} \
--recursive --depth=1 https://github.com/open-mpi/ompi \
&& cd ompi \
&& git branch \
&& ./autogen.pl \
&& ./configure --prefix=/usr \
--disable-man-pages --enable-debug --enable-mem-debug \
--with-pmix=external --with-libevent --disable-sphinx \
&& make -j $(nproc) \
&& sudo make install \
&& cd .. \
&& rm -rf ompi

USER $USER
WORKDIR /home/$USER

0 comments on commit 8d8d3b7

Please sign in to comment.