Skip to content

Commit

Permalink
add jammy dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
trws committed Aug 4, 2023
1 parent 9726908 commit d8c5420
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/test/docker/jammy/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM fluxrm/flux-core:jammy

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

0 comments on commit d8c5420

Please sign in to comment.