Commit 303fdd86 authored by Larkin Heintzman's avatar Larkin Heintzman

added kubernetes environment file

parent 3830a526
...@@ -36,7 +36,10 @@ RUN apt-get install -y python-rosdep python-rosinstall python-rosinstall-generat ...@@ -36,7 +36,10 @@ RUN apt-get install -y python-rosdep python-rosinstall python-rosinstall-generat
RUN mkdir -p catkin_ws/src && mkdir -p /tmp/darknetMemories RUN mkdir -p catkin_ws/src && mkdir -p /tmp/darknetMemories
# darknet ros package install # darknet ros package install
COPY ./yolov4-for-darknet_ros /catkin_ws/src/darknet_package COPY ./yolov4-for-darknet_ros /catkin_ws/src/darknet_package
# build the enclosed darknet installation
# copy over environment file to allow remote roslaunch
COPY ./dorknet_kube_env.sh /opt/ros/melodic/dorknet_kube_env.sh
# install random pip thing and run catkin_make # install random pip thing and run catkin_make
RUN /bin/bash -c '. /opt/ros/melodic/setup.bash && cd catkin_ws && catkin_make' RUN /bin/bash -c '. /opt/ros/melodic/setup.bash && cd catkin_ws && catkin_make'
......
#!/bin/bash
export ROS_WS=/catkin_ws
source $ROS_WS/devel/setup.bash
export PATH=$ROS_ROOT/bin:$PATH
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$ROS_WS
export ROS_MASTER_URI=http://service-master:11311
export ROS_HOSTNAME=service-dorknet
export ROS_LOG_DIR=/root/.ros/log
exec "$@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment