diff --git a/src/test/docker/bookworm/Dockerfile b/src/test/docker/bookworm/Dockerfile new file mode 100644 index 000000000..3f8fefe98 --- /dev/null +++ b/src/test/docker/bookworm/Dockerfile @@ -0,0 +1,28 @@ +FROM fluxrm/flux-core:bookworm + +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 \ + python3-yaml \ + libyaml-cpp-dev \ + libedit-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