From 0c66a8d870300dcaa0f9c29aa980a8a6eff959b0 Mon Sep 17 00:00:00 2001 From: Stephen Herbein Date: Wed, 24 Jun 2020 12:36:21 -0700 Subject: [PATCH] travis: add eoan CI builder for hwloc 2 coverage --- .travis.yml | 4 ++++ src/test/docker/eoan/Dockerfile | 29 +++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 src/test/docker/eoan/Dockerfile diff --git a/.travis.yml b/.travis.yml index 53b5ba12a..920daf662 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,10 @@ matrix: - ARGS="--prefix=/usr" - TEST_INSTALL=t - DOCKER_TAG=t + - name: "Ubuntu: eoan" + compiler: gcc + env: + - IMG=eoan - name: "Centos 7: docker-deploy" compiler: gcc env: diff --git a/src/test/docker/eoan/Dockerfile b/src/test/docker/eoan/Dockerfile new file mode 100644 index 000000000..505b5556e --- /dev/null +++ b/src/test/docker/eoan/Dockerfile @@ -0,0 +1,29 @@ +FROM fluxrm/flux-core:bionic + +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