Skip to content

Commit

Permalink
docker build error fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
woensug-choi committed Jun 5, 2024
1 parent f42785b commit dd21d5d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .docker/jazzy.amd64.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,17 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN adduser --shell /bin/bash --disabled-password --gecos '' $USER \
&& echo "$USER:$USER" | chpasswd && adduser $USER sudo \
&& echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# Set User as user
USER $USER

# RUN adduser --shell /bin/bash --disabled-password --gecos "" user \
# && echo 'user:user' | chpasswd && adduser user sudo \
# && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

ENV ROS_UNDERLAY ~/home/$USER/ws_dave/install
ENV ROS_UNDERLAY /home/$USER/ws_dave/install
WORKDIR $ROS_UNDERLAY/../src

ADD https://raw.githubusercontent.com/IOES-Lab/dave/$BRANCH/\
extras/repos/dave.$ROS_DISTRO.repos dave.repos
RUN vcs import < dave.repos
extras/repos/dave.$ROS_DISTRO.repos /home/$USER/ws_dave/dave.repos
RUN vcs import --shallow --input /home/$USER/ws_dave/dave.repos

RUN apt-get update && rosdep update && \
rosdep install -iy --from-paths . && \
Expand All @@ -65,3 +63,6 @@ RUN . "/opt/ros/${ROS_DISTRO}/setup.sh" && \
# source entrypoint setup
RUN sed --in-place --expression \
'$i source "$ROS_UNDERLAY/setup.bash"' /ros_entrypoint.sh

# Set User as user
USER $USER
4 changes: 2 additions & 2 deletions .docker/jazzy.arm64v8.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ ENV ROS_UNDERLAY /home/$USER/dave_ws/install
WORKDIR $ROS_UNDERLAY/../src

ADD https://raw.githubusercontent.com/IOES-Lab/dave/$BRANCH/\
extras/repos/dave.jazzy.repos dave.repos
RUN vcs import < dave.repos
extras/repos/dave.$ROS_DISTRO.repos /home/$USER/ws_dave/dave.repos
RUN vcs import --shallow --input /home/$USER/ws_dave/dave.repos

RUN rosdep init && \
rosdep update --rosdistro $ROS_DISTRO
Expand Down

0 comments on commit dd21d5d

Please sign in to comment.