Skip to content

Commit

Permalink
Merge pull request #44 from gstavrinos/permissions-fix
Browse files Browse the repository at this point in the history
Fixed the newly surfaced (!) permissions problem in the home folder
  • Loading branch information
gstavrinos authored Aug 14, 2023
2 parents bde1745 + b9750ea commit dda136f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions internal/entrypoint.bash
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ skip_compilation=$SKIPCOMPILATION
rosversion="unknown"
lockation=""
wstxt=""
find /home/rosez_user ! -user rosez_user -execdir sudo chown rosez_user:rosez_user {} \+
for i in $(seq 0 $(( ${#distros[@]}-1 )) ); do
if [ -f /opt/ros/"${distros[$i]}"/setup.bash ]; then
rosversion="${distros[$i]}"
Expand Down
2 changes: 1 addition & 1 deletion internal/ros2_Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ARG GROUP_ID=16661
RUN addgroup --gid $GROUP_ID rosez_user && adduser --disabled-password --gecos '' --uid $USER_ID --gid $GROUP_ID rosez_user && usermod -aG sudo rosez_user && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && touch /home/rosez_user/.sudo_as_admin_successful

USER rosez_user
RUN rosdep update
RUN sudo chown -R rosez_user:rosez_user /home/rosez_user && rosdep update

VOLUME /opt/ros/humble
VOLUME /bin
Expand Down
2 changes: 1 addition & 1 deletion internal/ros2_foxy_Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ARG GROUP_ID=16661
RUN addgroup --gid $GROUP_ID rosez_user && adduser --disabled-password --gecos '' --uid $USER_ID --gid $GROUP_ID rosez_user && usermod -aG sudo rosez_user && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && touch /home/rosez_user/.sudo_as_admin_successful

USER rosez_user
RUN rosdep update
RUN sudo chown -R rosez_user:rosez_user /home/rosez_user && rosdep update

VOLUME /opt/ros/foxy
VOLUME /bin
Expand Down
2 changes: 1 addition & 1 deletion internal/ros_Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ARG GROUP_ID=16661
RUN addgroup --gid $GROUP_ID rosez_user && adduser --disabled-password --gecos '' --uid $USER_ID --gid $GROUP_ID rosez_user && usermod -aG sudo rosez_user && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && touch /home/rosez_user/.sudo_as_admin_successful

USER rosez_user
RUN rosdep update
RUN sudo chown -R rosez_user:rosez_user /home/rosez_user && rosdep update

VOLUME /opt/ros/noetic
VOLUME /bin
Expand Down
2 changes: 1 addition & 1 deletion internal/ros_melodic_Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ARG GROUP_ID=16661
RUN addgroup --gid $GROUP_ID rosez_user && adduser --disabled-password --gecos '' --uid $USER_ID --gid $GROUP_ID rosez_user && usermod -aG sudo rosez_user && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && touch /home/rosez_user/.sudo_as_admin_successful

USER rosez_user
RUN rosdep update
RUN sudo chown -R rosez_user:rosez_user /home/rosez_user && rosdep update

VOLUME /opt/ros/melodic
VOLUME /bin
Expand Down

0 comments on commit dda136f

Please sign in to comment.