latest pushes

This commit is contained in:
Ronaldson Bellande 2024-05-10 19:42:01 -04:00
parent 37e95e7317
commit 32c5f29c08
3 changed files with 11 additions and 8 deletions

View File

@ -24,7 +24,7 @@ ENV PYTHON_VERSION="3.8"
ARG ROS_ARCHITECTURE_VERSION_GIT_BRANCH=main ARG ROS_ARCHITECTURE_VERSION_GIT_BRANCH=main
ARG ROS_ARCHITECTURE_VERSION_GIT_COMMIT=HEAD ARG ROS_ARCHITECTURE_VERSION_GIT_COMMIT=HEAD
ARG ROS_VERSION=noetic ENV ROS_VERSION=noetic
ENV CATKIN_WS=/root/catkin_ws ENV CATKIN_WS=/root/catkin_ws
LABEL maintainer=ronaldsonbellande@gmail.com LABEL maintainer=ronaldsonbellande@gmail.com
@ -71,7 +71,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends <requirements/r
# Create local catkin workspace # Create local catkin workspace
RUN mkdir -p $CATKIN_WS/src RUN mkdir -p $CATKIN_WS/src
WORKDIR $CATKIN_WS/src
# Copy Every Package
COPY ../ ${CATKIN_WS}/src
# Set the working directory for Catkin
WORKDIR $CATKIN_WS
# Initialize local catkin workspace, install dependencies and build workpsace # Initialize local catkin workspace, install dependencies and build workpsace
RUN echo "source /opt/ros/${ROS_VERSION}/setup.bash" >> ~/.bashrc RUN echo "source /opt/ros/${ROS_VERSION}/setup.bash" >> ~/.bashrc
@ -90,4 +95,4 @@ RUN echo "source /usr/local/bin/catkin_setup.sh" >> /root/.bashrc
RUN chmod +x /usr/local/bin/catkin_setup.sh RUN chmod +x /usr/local/bin/catkin_setup.sh
ENTRYPOINT ["/usr/local/bin/catkin_setup.sh"] ENTRYPOINT ["/usr/local/bin/catkin_setup.sh"]
CMD ["bash"] CMD ["/bin/bash"]

View File

@ -16,6 +16,5 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
catkin build catkin build
source "/opt/ros/noetic/setup.bash" source "/root/catkin_ws/devel/setup.bash"
source "$CATKIN_WS/devel/setup.bash"

View File

@ -17,5 +17,4 @@
colcon build colcon build
source "/opt/ros/foxy/setup.bash" source "./install/setup.bash"
source "$CATKIN_WS/install/setup.bash"