Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sudo to Docker development image. #557

Merged
merged 1 commit into from
Sep 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docker/Dockerfile-Fedora-27
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ RUN dnf -y install \
which \
zlib-devel \
golang \
sudo \
&& dnf clean all

RUN wget http://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-linux-gnu-Fedora27.tar.xz \
Expand All @@ -41,6 +42,9 @@ RUN gem install --no-ri --no-rdoc fpm;

RUN useradd -d /home/dronecode -m -s /bin/bash dronecode

ADD /sudoers.txt /etc/sudoers
RUN chmod 440 /etc/sudoers

USER dronecode

CMD ["/bin/bash"]
Expand Down
4 changes: 4 additions & 0 deletions docker/Dockerfile-Fedora-28
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,16 @@ RUN dnf -y install \
which \
zlib-devel \
golang \
sudo \
&& dnf clean all

RUN gem install --no-ri --no-rdoc fpm;

RUN useradd -d /home/dronecode -m -s /bin/bash dronecode

ADD /sudoers.txt /etc/sudoers
RUN chmod 440 /etc/sudoers

USER dronecode

CMD ["/bin/bash"]
Expand Down
4 changes: 4 additions & 0 deletions docker/Dockerfile-Ubuntu-16.04
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ RUN apt-get update \
wget \
libz-dev \
golang-go \
sudo \
&& apt-get -y autoremove \
&& apt-get clean autoclean \
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
Expand All @@ -47,6 +48,9 @@ RUN gem install --no-ri --no-rdoc fpm;

RUN useradd -d /home/dronecode -m -s /bin/bash dronecode

ADD /sudoers.txt /etc/sudoers
RUN chmod 440 /etc/sudoers

USER dronecode

CMD ["/bin/bash"]
Expand Down
4 changes: 4 additions & 0 deletions docker/Dockerfile-Ubuntu-18.04
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ RUN apt-get update \
ruby-dev \
libz-dev \
golang-go \
sudo \
&& apt-get -y autoremove \
&& apt-get clean autoclean \
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
Expand All @@ -42,6 +43,9 @@ RUN gem install --no-ri --no-rdoc fpm;

RUN useradd -d /home/dronecode -m -s /bin/bash dronecode

ADD /sudoers.txt /etc/sudoers
RUN chmod 440 /etc/sudoers

USER dronecode

CMD ["/bin/bash"]
Expand Down
2 changes: 2 additions & 0 deletions docker/sudoers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
root ALL=(ALL) ALL
dronecode ALL=(ALL) NOPASSWD: ALL