Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release rqt and foxglove #35

Merged
merged 19 commits into from
Feb 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions files/ubuntu/icewm/.icewm/menu
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
prog xterm xterm xterm
prog Terminator terminator /usr/bin/terminator
prog RViz rviz /usr/local/bin/rviz.sh
separator

menu "Development" folder {
prog "Foxglove Studio" foxglove-studio /usr/local/bin/foxglove
prog RViz /usr/share/rviz/icons/package.png /usr/local/bin/rviz.sh
}
menu "System" folder {
menu "TerminalEmulator" folder {
prog "Terminator" terminator terminator
prog "UXTerm" mini.xterm uxterm
prog "XTerm" mini.xterm xterm
}
}
menu "Utility" folder {
prog "Terminator" terminator terminator
menu "TextEditor" folder {
prog "Vim" gvim x-terminal-emulator -e vim
}
}
5 changes: 3 additions & 2 deletions files/ubuntu/icewm/.icewm/preferences
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
WorkspaceNames=" 1 "
TaskBarShowMailboxStatus = 0
TaskBarShowWorkspaces = 0
TaskBarShowMailboxStatus=0
TaskBarShowWorkspaces=0
ShowProgramsMenu=0
3 changes: 2 additions & 1 deletion files/ubuntu/icewm/.icewm/toolbar
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
prog xterm xterm xterm
prog Terminator terminator /usr/bin/terminator
prog RViz rviz /usr/local/bin/rviz.sh
prog RViz /usr/share/rviz/icons/package.png /usr/local/bin/rviz.sh
prog Foxglove foxglove-studio /usr/local/bin/foxglove
separator
25 changes: 25 additions & 0 deletions files/ubuntu/install/foxglove.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

FOXGLOVE_VERSION=1.39.0
FOXGLOVE_ARCH=amd64
FOXGLOVE_DEB_URL=https://github.com/foxglove/studio/releases/download/v${FOXGLOVE_VERSION}/foxglove-studio-${FOXGLOVE_VERSION}-linux-${FOXGLOVE_ARCH}.deb

mkdir -p /tmp/foxglove

wget --show-progress --progress=bar:force:noscroll $FOXGLOVE_DEB_URL -q -P /tmp/foxglove

apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
/tmp/foxglove/foxglove-studio-${FOXGLOVE_VERSION}-linux-${FOXGLOVE_ARCH}.deb

cat << EOF > /usr/local/bin/foxglove
export FOXGLOVE_DISABLE_SIGN_IN=true
"/opt/Foxglove Studio/foxglove-studio" --no-sandbox
EOF

chmod +x /usr/local/bin/foxglove

apt-get autoremove -y
apt-get clean -y
rm -rf /var/lib/apt/lists/*
rm -rf /tmp/foxglove
2 changes: 2 additions & 0 deletions files/ubuntu/install/icewm_ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ echo "Install IceWM UI components"
apt-get update
apt-get install -y --no-install-recommends supervisor icewm xterm xfonts-base xauth xinit dbus-x11 libdbus-glib-1-2
apt-get purge -y pm-utils *screensaver*
apt-get autoremove -y
apt-get clean -y
rm -rf /var/lib/apt/lists/*
3 changes: 3 additions & 0 deletions files/ubuntu/install/install_custom_fonts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
set -e

echo "Installing ttf-wqy-zenhei"
apt-get update
apt-get install --no-install-recommends -y ttf-wqy-zenhei
apt-get autoremove -y
apt-get clean -y
rm -rf /var/lib/apt/lists/*
4 changes: 3 additions & 1 deletion files/ubuntu/install/libnss_wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ set -e

echo "Install nss-wrapper to be able to execute image as non-root user"
apt-get update
apt-get install -y libnss-wrapper gettext
apt-get install -y --no-install-recommends libnss-wrapper gettext
apt-get autoremove -y
apt-get clean -y
rm -rf /var/lib/apt/lists/*

echo "add 'source generate_container_user' to .bashrc"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo ap

echo "Install ROS-Tools components"
apt-get update
apt-get install --no-install-recommends -y rviz \
"ros-$ROS_DISTRO-rqt" "ros-$ROS_DISTRO-rqt-common-plugins"
apt-get install --no-install-recommends -y rviz
apt-get autoremove -y
apt-get clean -y
rm -rf /var/lib/apt/lists/*
14 changes: 14 additions & 0 deletions files/ubuntu/install/rqt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
### every exit != 0 fails the script
set -e

echo "Setup ROS-Tools repo"
sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -

echo "Install ROS-Tools components"
apt-get update
apt-get install -y ros-$ROS_DISTRO-rqt-plot ros-$ROS_DISTRO-rqt-tf-tree ros-$ROS_DISTRO-rqt-reconfigure --no-install-recommends
apt-get autoremove -y
apt-get clean -y
rm -rf /var/lib/apt/lists/*
5 changes: 4 additions & 1 deletion files/ubuntu/install/tigervnc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
set -e

echo "Install TigerVNC server"
apt-get install -y tigervnc-standalone-server
apt-get update
apt-get install -y --no-install-recommends tigervnc-standalone-server tigervnc-common
apt-get autoremove -y
apt-get clean -y
rm -rf /var/lib/apt/lists/*
2 changes: 2 additions & 0 deletions files/ubuntu/install/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ echo "Install some common tools for further installation"
apt-get update
apt-get install --no-install-recommends -y terminator vim wget net-tools locales bzip2 procps \
python3-numpy #used for websockify/novnc
apt-get autoremove -y
apt-get clean -y
rm -rf /var/lib/apt/lists/*

echo "generate locales for $LANG"
locale-gen "$LANG"
Expand Down
28 changes: 16 additions & 12 deletions noetic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ ENV HOME=${USER_HOME} \
DEBIAN_FRONTEND=noninteractive \
LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'

### ROS Config
ENV ROS_MASTER_URI="http://${ROS_MASTER}:${ROS_MASTER_PORT}"

WORKDIR ${HOME}

USER root
Expand All @@ -59,18 +56,25 @@ COPY files/ubuntu/icewm/ files/home $HOME/

COPY files/bin /usr/local/bin/

### Install some common tools
RUN find $INST_SCRIPTS -name '*.sh' -exec chmod a+x {} + && \
### Install some common tools
$INST_SCRIPTS/tools.sh && \
### Install custom fonts
$INST_SCRIPTS/install_custom_fonts.sh && \
### Install xvnc-server & noVNC - HTML5 based VNC viewer
$INST_SCRIPTS/tigervnc.sh && \
$INST_SCRIPTS/no_vnc.sh && \
### Install IceWM UI
$INST_SCRIPTS/icewm_ui.sh && \
### Install ROS1 Melodic tools
$INST_SCRIPTS/ros-tools.sh && \
$INST_SCRIPTS/install_custom_fonts.sh
### Install xvnc-server & noVNC - HTML5 based VNC viewer
RUN $INST_SCRIPTS/tigervnc.sh && \
$INST_SCRIPTS/no_vnc.sh

### Install IceWM UI
RUN $INST_SCRIPTS/icewm_ui.sh

### Install Foxglove
RUN $INST_SCRIPTS/foxglove.sh

### Install ROS1 tools
ENV ROS_MASTER_URI="http://${ROS_MASTER}:${ROS_MASTER_PORT}"
RUN $INST_SCRIPTS/rqt.sh
RUN $INST_SCRIPTS/ros-tools.sh && \
### Clean
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
Expand Down