-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/colcon build #2000
Fix/colcon build #2000
Conversation
docker/generic/Dockerfile.kinetic
Outdated
@@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y \ | |||
libflann-dev \ | |||
libgsl0-dev \ | |||
libgoogle-perftools-dev \ | |||
libeigen3-dev | |||
libeigen3-dev sudo gconf2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Just a minor thing, could you break this down into separate lines and sort them alphabetically?
docker/generic/Dockerfile.kinetic
Outdated
@@ -62,7 +66,7 @@ RUN sudo rosdep init \ | |||
# Install Autoware | |||
RUN cd && mkdir /home/$USERNAME/Autoware | |||
COPY --chown=autoware ./ /home/$USERNAME/Autoware/ | |||
RUN /bin/bash -c 'source /opt/ros/kinetic/setup.bash; cd /home/$USERNAME/Autoware/ros/src; git submodule update --init --recursive; catkin_init_workspace; cd ../; rosdep install -y --from-paths /home/$USERNAME/Autoware/ros/src --ignore-src --rosdistro kinetic; ./catkin_make_release' | |||
RUN /bin/bash -c 'source /opt/ros/kinetic/setup.bash; cd /home/$USERNAME/Autoware/ros/src; git submodule update --init --recursive; cd ../; rosdep install -y --from-paths /home/$USERNAME/Autoware/ros/src --ignore-src --rosdistro kinetic; ./colcon_release' | |||
RUN echo "source /home/$USERNAME/Autoware/ros/devel/setup.bash" >> /home/$USERNAME/.bashrc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs to point to install
space instead of devel
RUN echo "source /home/$USERNAME/Autoware/ros/devel/setup.bash" >> /home/$USERNAME/.bashrc | |
RUN echo "source /home/$USERNAME/Autoware/ros/install/setup.bash" >> /home/$USERNAME/.bashrc |
docker/generic/Dockerfile.kinetic
Outdated
@@ -62,7 +66,7 @@ RUN sudo rosdep init \ | |||
# Install Autoware | |||
RUN cd && mkdir /home/$USERNAME/Autoware | |||
COPY --chown=autoware ./ /home/$USERNAME/Autoware/ | |||
RUN /bin/bash -c 'source /opt/ros/kinetic/setup.bash; cd /home/$USERNAME/Autoware/ros/src; git submodule update --init --recursive; catkin_init_workspace; cd ../; rosdep install -y --from-paths /home/$USERNAME/Autoware/ros/src --ignore-src --rosdistro kinetic; ./catkin_make_release' | |||
RUN /bin/bash -c 'source /opt/ros/kinetic/setup.bash; cd /home/$USERNAME/Autoware/ros/src; git submodule update --init --recursive; cd ../; rosdep install -y --from-paths /home/$USERNAME/Autoware/ros/src --ignore-src --rosdistro kinetic; ./colcon_release' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend using sudo -E
in the script to allow the build arguments to be passed. This is useful when running behind a proxy.
RUN /bin/bash -c 'source /opt/ros/kinetic/setup.bash; cd /home/$USERNAME/Autoware/ros/src; git submodule update --init --recursive; cd ../; rosdep install -y --from-paths /home/$USERNAME/Autoware/ros/src --ignore-src --rosdistro kinetic; ./colcon_release' | |
RUN /bin/bash -c 'source /opt/ros/kinetic/setup.bash; cd /home/$USERNAME/Autoware/ros/src; git submodule update --init --recursive; cd ../; sudo -E rosdep install -y --from-paths /home/$USERNAME/Autoware/ros/src --ignore-src --rosdistro kinetic; ./colcon_release' |
@esteve @amc-nu I have undone the changes to the Dockerfile to keep the aim of the PR clean. The needed changes are mentioned in autowarefoundation/autoware_ai#563 in any case for testing purposes. |
* Added lcuda link
Status
PRODUCTION / DEVELOPMENT
Description
As described in autowarefoundation/autoware_ai#563