Skip to content

Commit

Permalink
-Give root access to dev docker user
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-gomez-windhover committed Oct 16, 2024
1 parent e2e7ec8 commit 1f91f61
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile.ubuntu18.dev
Original file line number Diff line number Diff line change
Expand Up @@ -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


3 changes: 3 additions & 0 deletions Dockerfile.ubuntu20.dev
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions Dockerfile.ubuntu22.dev
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1f91f61

Please sign in to comment.