ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Docker Image build with modified Autoware source.

asked 2020-06-09 21:24:27 -0500

Ajay gravatar image

Hello everyone,

Currently, I am using Autoware 1.12.0 with source build. I have modified a few code and its working well with the source build. Now, I am trying to build docker image for modified Autoware source code, and following is my docker file structure.

ARG FROM_ARG
# hadolint ignore=DL3006
FROM ${FROM_ARG}
ARG ROS_DISTRO
ARG VERSION

ENV USERNAME autoware

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# Build Autoware
COPY ./MY_MODIFIED_CODE_DIR /home/$USERNAME/Autoware 
RUN su -c "source /opt/ros/$ROS_DISTRO/setup.bash; \
           colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release'" $USERNAME

RUN echo "source /home/$USERNAME/Autoware/install/local_setup.bash" >> \
    /home/$USERNAME/.bashrc

COPY ./entrypoint.sh /tmp
ENTRYPOINT ["/tmp/entrypoint.sh"]

But i am getting error after running ./build.sh command, with the following error statement.

bash: -c: line 0: unexpected EOF while looking for matching `''
bash: -c: line 1: syntax error: unexpected end of file
The command '/bin/bash -o pipefail -c su -c "source /opt/ros/$ROS_DISTRO/setup.bash;            
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release'" $USERNAME' returned a non-zero code: 1

I guess, its because some syntax error in the dockerfile, please can anyone help me how to get rid of this error.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-06-10 01:39:55 -0500

gvdhoorn gravatar image
RUN su -c "source /opt/ros/$ROS_DISTRO/setup.bash; \
           colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release'" $USERNAME

Where is that ' coming from (after Release)?

edit flag offensive delete link more

Comments

Note: this is not a ROS problem and is actually off-topic for this site.

gvdhoorn gravatar image gvdhoorn  ( 2020-06-10 01:40:19 -0500 )edit

@gvdhoorn, thank you so much.

Ajay gravatar image Ajay  ( 2020-06-10 02:19:56 -0500 )edit

Question Tools

Stats

Asked: 2020-06-09 21:24:27 -0500

Seen: 223 times

Last updated: Jun 10 '20