-
Notifications
You must be signed in to change notification settings - Fork 0
/
picam-app-pub-photo.sh
executable file
·114 lines (105 loc) · 2.38 KB
/
picam-app-pub-photo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#!/bin/bash
#
if [ "${HOCKERHUB_ACCOUNT}" = "" ] ; then
echo "[ERROR]Please set environment variable 'HOCKERHUB_ACCOUNT'"
exit
fi
#
cat << EoYaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: picam-deploy-pub-photo
labels:
app: ros
anchors:
- var_path_vchiq: &var_path_vchiq "/dev/vchiq"
spec:
replicas: 1
selector:
matchLabels:
app: ros
template:
metadata:
labels:
app: ros
spec:
volumes:
- name: picam-dev-photo
hostPath:
path: *var_path_vchiq
containers:
#
- name: roscore
image: ros:kinetic-ros-base
tty: true
args:
- roscore
env:
- name: ROS_HOSTNAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: ROS_MASTER_URI
value: "http://\$(ROS_HOSTNAME):11311"
#
- name: multimaster-fkie-discovery
image: rdbox/arm.multimaster_fkie:kinetic
tty: true
args:
- roslaunch
- --screen
- --wait
- multimaster_fkie_launch
- master_discovery_fkie.launch
env:
- name: ROS_HOSTNAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: ROS_MASTER_URI
value: "http://\$(ROS_HOSTNAME):11311"
#
- name: multimaster-fkie-sync
image: rdbox/arm.multimaster_fkie:kinetic
tty: true
args:
- roslaunch
- --screen
- --wait
- multimaster_fkie_launch
- master_sync_fkie.launch
env:
- name: ROS_HOSTNAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: ROS_MASTER_URI
value: "http://\$(ROS_HOSTNAME):11311"
#
- name: picam-app-pub-photo
image: ${HOCKERHUB_ACCOUNT}/picam_pub_photo
volumeMounts:
- mountPath: *var_path_vchiq
name: picam-dev-photo
securityContext:
privileged: true
tty: true
stdin: true
args:
- /bin/bash
env:
- name: ROS_HOSTNAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: ROS_MASTER_URI
value: "http://\$(ROS_HOSTNAME):11311"
- name: PICAM_START
value: auto
#
hostNetwork: true
nodeSelector:
node.rdbox.com/type: picam
EoYaml
#