-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install EasyBuild as a module in base image + clean up GCC 9.3.0 image #8
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
8613cb2
install EasyBuild as a module in base image + clean up GCC 9.3.0 image
boegel 8dd0165
Merge branch 'master' into better_base
boegel 0a7ee38
clean up foss/2020a image, don't finalize /easybuild yet
boegel 6aa7927
break up long lines, move up defining $PYTHONUNBUFFERED
boegel 0027aa1
allow customizing base image via build args
boegel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,13 @@ ARG EB_VER=4.2.1 | |
LABEL easybuild_version=${EB_VER} | ||
# install required packages (EPEL is required for Lmod) | ||
RUN yum install -y epel-release \ | ||
&& yum install -y bzip2 file gcc-c++ git Lmod make openssl-devel patch python3-pip unzip vim which | ||
&& yum install -y bzip2 file gcc-c++ git Lmod make openssl openssl-devel patch python3-pip unzip vim which rdma-core-devel | ||
# install EasBuild & archspec | ||
RUN pip3 install easybuild==${EB_VER} archspec | ||
# add 'easybuild' user | ||
RUN useradd -ms /bin/bash easybuild | ||
# create /scratch & /easybuild directories | ||
RUN mkdir /scratch && chown easybuild:easybuild /scratch && mkdir /easybuild && chown easybuild:easybuild /easybuild | ||
boegel marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# define $EB_PYTHON to ensure EasyBuild runs with python3 | ||
ENV EB_PYTHON=python3 | ||
# Define the ENTRYPOINT for subsequent commands (CMD) | ||
|
@@ -19,5 +21,15 @@ SHELL ["/bin/bash", "-l", "-c"] | |
CMD ["bash"] | ||
# switch to 'easybuild' user | ||
USER easybuild | ||
# install EasyBuild as a module (& clean up /scratch) | ||
RUN eb --install-latest-eb-release --prefix /scratch --installpath /easybuild && rm -rf /scratch/* | ||
# print info on Lmod & EasyBuild | ||
RUN ml --version && which -a eb && eb --version & eb --show-system-info | ||
RUN ml use /easybuild/modules/all && ml EasyBuild && ml --version && which -a eb && eb --version & eb --show-system-info | ||
# remove globally installed EasyBuild, we can use the module going forward | ||
USER root | ||
RUN pip3 uninstall -y easybuild | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. potential optimization #11 |
||
# switch to 'easybuild' user | ||
USER easybuild | ||
WORKDIR /home/easybuild | ||
# disable output buffering in Python, so we see EasyBuild output as it progresses | ||
ENV PYTHONUNBUFFERED=TRUE | ||
boegel marked this conversation as resolved.
Show resolved
Hide resolved
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we install rdma-core-devel here? Who is to say someone wants to run RDMA stuff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having
rdma-core-devel
installed affects how OpenMPI is configured (--with-verbs
or--without-verbs
).I'm happy to remove it, it's probably overkill here, but I don't think it hurts to have it installed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just wonder if we need to install this in the base - but ok... premature optimization I'd say
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, I don't think it hurts much, except for size of the container a little bit?
Stripping it out is not a huge deal for the tutorial, and if it's there you can add
rdma-core-devel
in another image on top of this one, and rebuildOpenMPI
(and everything that depends on it...), if you really want IB support, but that's a hassle.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's keep it for now... and put a pin in it for a later discussion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Open an issue on it in this repo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#10