-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathentrypoint.sh
More file actions
executable file
·39 lines (31 loc) · 960 Bytes
/
entrypoint.sh
File metadata and controls
executable file
·39 lines (31 loc) · 960 Bytes
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
#!/bin/bash
# Set up debug
mkdir -p $HOME/.log
# Set up ROS
mkdir -p $HOME/racecar_ws/src
/bin/bash -c 'cd $HOME/racecar_ws; colcon build'
/bin/bash -c 'mkdir -p $HOME/.rviz2; cp /tmp/default.rviz $HOME/.rviz2'
# Start the VNC server
vncserver -SecurityTypes None -xstartup xstartup.sh > $HOME/.log/TigerVNC.log 2>&1
# Start NoVNC
exec /noVNC-$NO_VNC_VERSION/utils/novnc_proxy --vnc 0.0.0.0:5901 --listen 0.0.0.0:6080 > $HOME/.log/NoVNC.log 2>&1 &
# Welcome message
printf "\n"
printf "~~~~~Welcome to the racecar docker image!~~~~~"
printf "\n\n"
printf "To interface via a local terminal, open a new"
printf "\n"
printf "terminal, cd into the racecar_docker directory"
printf "\n"
printf "and run:"
printf "\n\n"
printf " docker compose exec racecar bash"
printf "\n\n"
printf "To use graphical programs like rviz, navigate"
printf "\n"
printf "to:"
printf "\n\n"
printf " http://localhost:6080/vnc.html?resize=remote"
printf "\n"
# Hang
tail -f