forked from flux-framework/flux-pmix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request flux-framework#49 from grondo/issue#47
build: fix build with gcc 4.x, add centos7 to ci
- Loading branch information
Showing
8 changed files
with
130 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
FROM fluxrm/flux-core:bionic | ||
|
||
ARG USER=fluxuser | ||
ARG UID=1000 | ||
ARG OMPI_BRANCH=v5.0.x | ||
ARG OPENPMIX_BRANCH=v4.1.1rc2 | ||
|
||
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 adduser $USER sudo ; \ | ||
fi | ||
|
||
# ompi can't coexist with mpich | ||
RUN sudo apt remove -yy mpich \ | ||
&& sudo apt clean | ||
|
||
# install ompi prereqs | ||
RUN sudo apt-get update \ | ||
&& sudo apt-get -qq install -y --no-install-recommends \ | ||
libevent-dev \ | ||
flex \ | ||
openssh-client \ | ||
&& sudo apt clean \ | ||
&& sudo rm -rf /var/lib/apt/lists/* | ||
|
||
# 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 \ | ||
&& 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 \ | ||
&& make -j $(nproc) \ | ||
&& sudo make install \ | ||
&& cd .. \ | ||
&& rm -rf ompi | ||
|
||
USER $USER | ||
WORKDIR /home/$USER | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
FROM fluxrm/flux-core:centos7 | ||
|
||
ARG USER=fluxuser | ||
ARG UID=1000 | ||
ARG OMPI_BRANCH=v5.0.x | ||
ARG OPENPMIX_BRANCH=v4.1.1rc2 | ||
|
||
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 | ||
|
||
# ompi incompatible with mpich | ||
RUN sudo yum -y remove mpich mpich-devel | ||
|
||
# install ompi prereqs | ||
RUN sudo yum -y update \ | ||
&& sudo yum -y install \ | ||
flex \ | ||
libevent-devel \ | ||
zlib-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 \ | ||
&& 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 \ | ||
&& make -j $(nproc) \ | ||
&& sudo make install \ | ||
&& cd .. \ | ||
&& rm -rf ompi | ||
|
||
USER $USER | ||
WORKDIR /home/$USER | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters