From: varac Date: Sat, 15 Oct 2016 20:22:59 +0000 (+0200) Subject: Configure unprivileged cirunner, install sudo X-Git-Url: https://leap.se/git/scripts.git/commitdiff_plain/843adc0023a0f089327cf60df4d2f7ca0f2180d3 Configure unprivileged cirunner, install sudo --- diff --git a/docker/jessie/Dockerfile b/docker/jessie/Dockerfile index e8c321a..cffffd5 100644 --- a/docker/jessie/Dockerfile +++ b/docker/jessie/Dockerfile @@ -8,8 +8,14 @@ RUN apt-get update \ && apt-get install -y --no-install-recommends \ git \ locales \ + sudo \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 ENV LANG en_US.utf8 + +RUN useradd -ms /bin/bash -G sudo cirunner + +# allow all members of sudo group to execute any command without password +RUN sed -i 's/^%sudo.*/%sudo ALL=(ALL) NOPASSWD:ALL/' /etc/sudoers