We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pi4j-builder
1 parent ca2f90f commit 4429e6fCopy full SHA for 4429e6f
pi4j-builder-2.0/Dockerfile
@@ -41,8 +41,9 @@ RUN chmod -R a+rw /.m2
41
# Install sudo and libi2c-dev, needed for FFM plugin tests and create a test user and group
42
RUN apt-get install -y sudo
43
RUN apt-get install -y libi2c-dev
44
-RUN groupadd -r pi4j-builder && useradd -r -g pi4j-builder pi4j-builder
+RUN groupadd -r pi4j-builder && useradd -m -r -g pi4j-builder pi4j-builder
45
RUN usermod -aG sudo pi4j-builder
46
+RUN echo "pi4j-builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
47
48
# Add sudo permissions for GPIO simulator scripts
49
RUN echo "pi4j-builder ALL=(ALL) NOPASSWD: /build/plugins/pi4j-plugin-ffm/src/test/resources/*" >> /etc/sudoers.d/gpio-simulator
0 commit comments