Skip to content

Commit

Permalink
added sourcing and entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwalter committed Feb 16, 2024
1 parent debff08 commit aa293f5
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions Dockerfile.xenial
Original file line number Diff line number Diff line change
Expand Up @@ -156,19 +156,15 @@ RUN apt update && apt install -y \
# clean the apt cache
&& rm -rf /var/lib/apt/lists/*

####### END: ROS INSTALLATION #######


# make binary files available
ENV PATH=$WORKING_DIR/software/build/bin:$PATH
# source ROS
RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> /etc/bash.bashrc

# make Python packages available
ENV PYTHON_PATH=$WORKING_DIR/software/build/lib/python2.7/dist-packages:$PYTHON_PATH
# copy and set entrypoint
COPY assets/entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

# make libraries available
ENV LD_LIBRARY_PATH=$WORKING_DIR/software/build/lib:$LD_LIBRARY_PATH
####### END: ROS INSTALLATION #######

# set WORKDIR
WORKDIR ${WORKING_DIR}


0 comments on commit aa293f5

Please sign in to comment.