Skip to content

Commit 4429e6f

Browse files
committed
Adding sudo user pi4j-builder
1 parent ca2f90f commit 4429e6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pi4j-builder-2.0/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ RUN chmod -R a+rw /.m2
4141
# Install sudo and libi2c-dev, needed for FFM plugin tests and create a test user and group
4242
RUN apt-get install -y sudo
4343
RUN apt-get install -y libi2c-dev
44-
RUN groupadd -r pi4j-builder && useradd -r -g pi4j-builder pi4j-builder
44+
RUN groupadd -r pi4j-builder && useradd -m -r -g pi4j-builder pi4j-builder
4545
RUN usermod -aG sudo pi4j-builder
46+
RUN echo "pi4j-builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
4647

4748
# Add sudo permissions for GPIO simulator scripts
4849
RUN echo "pi4j-builder ALL=(ALL) NOPASSWD: /build/plugins/pi4j-plugin-ffm/src/test/resources/*" >> /etc/sudoers.d/gpio-simulator

0 commit comments

Comments
 (0)