Docker: fix test for pm3 when building images
This commit is contained in:
1 parent
f09705868a
commit
a1a9b50d24
28 files changed
+182
-70
No files matched your search
@@ -18,8 +18,10 @@ RUN useradd -ms /bin/bash rrg
|
||||
RUN passwd -d rrg
|
||||
ARG UART_GID
|
||||
# dialout group may already exist on another numeric ID than on host
|
||||
RUN groupadd -g ${UART_GID} mydialout || true
|
||||
RUN usermod -aG ${UART_GID} rrg
|
||||
RUN if [ -n "${UART_GID}" ]; then \
|
||||
groupadd -g ${UART_GID} mydialout || true; \
|
||||
usermod -aG ${UART_GID} rrg; \
|
||||
fi
|
||||
RUN printf 'rrg ALL=(ALL) NOPASSWD: ALL\n' | tee -a /etc/sudoers
|
||||
|
||||
USER rrg
|
||||
|
||||
Reference in new issue
Block a user