Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
ROS-Kubernetes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Larkin Heintzman
ROS-Kubernetes
Commits
bd3e6dd8
Commit
bd3e6dd8
authored
Oct 29, 2021
by
Larkin Heintzman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first working prototype
parent
dc2a3c71
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
71 additions
and
1 deletion
+71
-1
ClusterSetup.txt
ClusterSetup.txt
+1
-0
hello-python
hello-python
+0
-1
Dockerfile
llhApproach/docker/drone/Dockerfile
+43
-0
bashCheckRoscore.sh
llhApproach/docker/drone/bashCheckRoscore.sh
+16
-0
ros_entrypoint.sh
llhApproach/docker/drone/ros_entrypoint.sh
+11
-0
No files found.
ClusterSetup.txt
View file @
bd3e6dd8
...
@@ -81,3 +81,4 @@ get into pod bash shell (remove -it and just put command for noninteractive):
...
@@ -81,3 +81,4 @@ get into pod bash shell (remove -it and just put command for noninteractive):
kubectl exec <pod_name> -it -- bash
kubectl exec <pod_name> -it -- bash
kubectl get service -> good for getting port numbers
kubectl get service -> good for getting port numbers
kubectl delete -f deployment.yaml -> removes (eventually) pods on the cluster in deployment
kubectl delete -f deployment.yaml -> removes (eventually) pods on the cluster in deployment
kubectl get pod -o=custom-columns=NAME:.metadata.name,STATUS:.status.phase,NODE:.spec.nodeName --all-namespaces
hello-python
@
dc7f4e90
Subproject commit dc7f4e9024dabcc72f2a60b83458fd2bf55b4268
llhApproach/docker/drone/Dockerfile
0 → 100644
View file @
bd3e6dd8
ARG
from=ros:noetic
FROM
${from}
# install build tools
# RUN apt-get update && apt-get install -y \
# python-catkin-tools \
# && rm -rf /var/lib/apt/lists/*
RUN
apt-get update
&&
apt-get
install
-y
python3-pip git
RUN
pip3
install
git+https://github.com/catkin/catkin_tools.git
# clone ros package repo
ENV
ROS_WS /opt/ros_ws
RUN
mkdir
-p
$ROS_WS
/src
WORKDIR
$ROS_WS
RUN
git
-C
src clone
\
-b
$ROS_DISTRO
-devel
\
https://github.com/ros/ros_tutorials.git
# install ros package dependencies
RUN
apt-get update
&&
\
rosdep update
&&
\
rosdep
install
-y
\
--from-paths
\
src/ros_tutorials/roscpp_tutorials
\
--ignore-src
&&
\
rm
-rf
/var/lib/apt/lists/
*
# build ros package source
RUN
catkin config
\
--extend
/opt/ros/
$ROS_DISTRO
&&
\
catkin build
\
roscpp_tutorials
COPY
bashCheckRoscore.sh /usr/local/bin/bashCheckRoscore.sh
COPY
ros_entrypoint.sh /usr/local/bin/ros_entrypoint.sh
RUN
chmod
755 /usr/local/bin/bashCheckRoscore.sh
&&
chmod
755 /usr/local/bin/ros_entrypoint.sh
ENTRYPOINT
["/usr/local/bin/ros_entrypoint.sh"]
# CMD [""]
CMD
["bash"]
# run ros package launch file
# CMD ["roslaunch", "roscpp_tutorials", "talker_listener.launch"]
llhApproach/docker/drone/bashCheckRoscore.sh
0 → 100755
View file @
bd3e6dd8
#!/bin/bash
# set -e
# make sure to source ros work space so we can use the rostopic command
FILE
=
"./resp.txt"
OUT
=
"confirm"
until
[[
$OUT
!=
"confirm"
]]
do
rostopic list &>
$FILE
echo
$OUT
OUT
=
$(
awk
'/ERR/ { print "confirm" }'
$FILE
)
sleep
1
done
echo
"found roscore!"
rm
$FILE
# exit 1
llhApproach/docker/drone/ros_entrypoint.sh
0 → 100755
View file @
bd3e6dd8
#!/bin/bash
set
-e
echo
"==> Executing node image entrypoint ..."
# setup ros environment
source
"/opt/ros/
$ROS_DISTRO
/setup.bash"
# might need to source the devel space as well
source
"
$ROS_WS
/devel/setup.bash"
echo
"==> Container ready"
exec
"
$@
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment