Skip to content

Commit

Permalink
Add '-o' option to groupadd in Dockerfile.build_env
Browse files Browse the repository at this point in the history
Under OSX, user group (staff) is in the low tens (20)
and conflicts with system groups of Ubuntu. '-o' allows
to create group with same GID but different name.
  • Loading branch information
gpoulios committed Oct 31, 2023
1 parent f86b747 commit b685ff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packaging/Dockerfile.build_env
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM ghcr.io/tiiuae/px4-firmware-builder-base:latest
ARG UID=1000
ARG GID=1000

RUN groupadd -g $GID builder && \
RUN groupadd -o -g $GID builder && \
useradd -m -u $UID -g $GID -g builder builder && \
usermod -aG sudo builder && \
echo 'builder ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
Expand Down

0 comments on commit b685ff7

Please sign in to comment.