-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis: add eoan CI builder for hwloc 2 coverage
- Loading branch information
1 parent
8db96aa
commit 485ca68
Showing
2 changed files
with
35 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM fluxrm/flux-core:focal | ||
|
||
ARG USER=flux | ||
ARG UID=1000 | ||
|
||
# Install extra buildrequires for flux-sched: | ||
RUN sudo apt-get update | ||
RUN sudo apt-get -qq install -y --no-install-recommends \ | ||
libboost-graph-dev \ | ||
libboost-system-dev \ | ||
libboost-filesystem-dev \ | ||
libboost-regex-dev \ | ||
libxml2-dev \ | ||
python-yaml \ | ||
libyaml-cpp-dev | ||
|
||
# Add configured user to image with sudo access: | ||
# | ||
RUN \ | ||
if test "$USER" != "flux"; 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 | ||
|
||
USER $USER | ||
WORKDIR /home/$USER | ||
RUN flux keygen |