Skip to content

Commit

Permalink
Add sudo to tests/docker
Browse files Browse the repository at this point in the history
This makes sudo available in the Docker-based test environment, in order
to make the environment slightly more similar to GitHub Actions (which
doesn't feature gosu).  With sudo it is easier to locally reproduce
sudo-related problems observed on GitHub actions.
  • Loading branch information
lunkwill42 authored and hmpf committed Mar 1, 2024
1 parent 3588a7d commit e7714a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ ENV DEBIAN_FRONTEND noninteractive
### Installing packages
RUN sed -ie 's/^# *deb-src/deb-src/' /etc/apt/sources.list # Enable source repos
RUN apt-get update && \
apt-get install -y software-properties-common gosu && \
apt-get install -y software-properties-common gosu sudo && \
chmod u+s /usr/sbin/gosu

RUN echo "build ALL =(ALL: ALL) NOPASSWD: ALL" > /etc/sudoers.d/navbuild


RUN add-apt-repository ppa:deadsnakes/ppa && \
apt-get update && \
apt-get -y install --no-install-recommends \
Expand Down

0 comments on commit e7714a3

Please sign in to comment.