From 1f91f616365defee27e093e5fe47f0f10863b3ef Mon Sep 17 00:00:00 2001 From: lgomez Date: Wed, 16 Oct 2024 12:43:43 -0500 Subject: [PATCH] -Give root access to dev docker user --- Dockerfile.ubuntu18.dev | 3 +++ Dockerfile.ubuntu20.dev | 3 +++ Dockerfile.ubuntu22.dev | 3 +++ 3 files changed, 9 insertions(+) diff --git a/Dockerfile.ubuntu18.dev b/Dockerfile.ubuntu18.dev index 9cd18281..17ed50d3 100644 --- a/Dockerfile.ubuntu18.dev +++ b/Dockerfile.ubuntu18.dev @@ -22,6 +22,9 @@ WORKDIR /home/docker/juicer RUN useradd -ms /bin/bash juicer-dev +RUN usermod -aG sudo juicer-dev +RUN echo "juicer-dev ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers + USER juicer-dev diff --git a/Dockerfile.ubuntu20.dev b/Dockerfile.ubuntu20.dev index 15e2ba00..a122954a 100644 --- a/Dockerfile.ubuntu20.dev +++ b/Dockerfile.ubuntu20.dev @@ -29,4 +29,7 @@ RUN mkdir /home/docker/juicer WORKDIR /home/docker/juicer RUN useradd -ms /bin/bash juicer-dev +RUN usermod -aG sudo juicer-dev +RUN echo "juicer-dev ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers + USER juicer-dev diff --git a/Dockerfile.ubuntu22.dev b/Dockerfile.ubuntu22.dev index f3211684..083dd484 100644 --- a/Dockerfile.ubuntu22.dev +++ b/Dockerfile.ubuntu22.dev @@ -21,4 +21,7 @@ RUN mkdir /home/docker/juicer WORKDIR /home/docker/juicer RUN useradd -ms /bin/bash juicer-dev +RUN usermod -aG sudo juicer-dev +RUN echo "juicer-dev ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers + USER juicer-dev