-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build cloud extensions and sample apps as non-root user (#64)
* build ros1 sample app as non-root * build ros2/gazebo9 sample apps as non-root * fix formatting * build ros1 & ros2 cloud extensions as non-root
- Loading branch information
Showing
11 changed files
with
88 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# Only set up Gazebo's repository | ||
set -e | ||
|
||
# Only set up Gazebo's repository | ||
echo "Setting up Gazebo repository" | ||
|
||
apt-get install wget -y | ||
echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list | ||
wget http://packages.osrfoundation.org/gazebo.key -O - | apt-key add - | ||
apt-get update | ||
sudo apt-get install -y wget | ||
echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" | sudo tee /etc/apt/sources.list.d/gazebo-stable.list | ||
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add - | ||
sudo apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,34 @@ | ||
#!/bin/bash | ||
|
||
# Remove Kinetic Gazebo 7 and Install Kinetic Gazebo 9 | ||
set -e | ||
|
||
# Remove Kinetic Gazebo 7 and Install Kinetic Gazebo 9 | ||
echo "Setting up Gazebo 9" | ||
|
||
apt-get install wget -y | ||
echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list | ||
wget http://packages.osrfoundation.org/gazebo.key -O - | apt-key add - | ||
apt-get update | ||
sudo apt-get install -y wget | ||
echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" | sudo tee /etc/apt/sources.list.d/gazebo-stable.list | ||
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add - | ||
sudo apt-get update | ||
|
||
G9_APT_FILE="/etc/ros/rosdep/sources.list.d/00-gazebo9.list" | ||
rm -f "${G9_APT_FILE}" | ||
touch "${G9_APT_FILE}" | ||
echo "yaml https://github.com/osrf/osrf-rosdep/raw/master/gazebo9/gazebo.yaml" >> "${G9_APT_FILE}" | ||
echo "yaml https://github.com/osrf/osrf-rosdep/raw/master/gazebo9/releases/indigo.yaml indigo" >> "${G9_APT_FILE}" | ||
echo "yaml https://github.com/osrf/osrf-rosdep/raw/master/gazebo9/releases/jade.yaml jade" >> "${G9_APT_FILE}" | ||
echo "yaml https://github.com/osrf/osrf-rosdep/raw/master/gazebo9/releases/kinetic.yaml kinetic" >> "${G9_APT_FILE}" | ||
echo "yaml https://github.com/osrf/osrf-rosdep/raw/master/gazebo9/releases/lunar.yaml lunar" >> "${G9_APT_FILE}" | ||
sudo rm -f "${G9_APT_FILE}" | ||
sudo touch "${G9_APT_FILE}" | ||
echo "yaml https://github.com/osrf/osrf-rosdep/raw/master/gazebo9/gazebo.yaml" | sudo tee -a "${G9_APT_FILE}" | ||
echo "yaml https://github.com/osrf/osrf-rosdep/raw/master/gazebo9/releases/indigo.yaml indigo" | sudo tee -a "${G9_APT_FILE}" | ||
echo "yaml https://github.com/osrf/osrf-rosdep/raw/master/gazebo9/releases/jade.yaml jade" | sudo tee -a "${G9_APT_FILE}" | ||
echo "yaml https://github.com/osrf/osrf-rosdep/raw/master/gazebo9/releases/kinetic.yaml kinetic" | sudo tee -a "${G9_APT_FILE}" | ||
echo "yaml https://github.com/osrf/osrf-rosdep/raw/master/gazebo9/releases/lunar.yaml lunar" | sudo tee -a "${G9_APT_FILE}" | ||
|
||
apt-get update | ||
sudo apt-get update | ||
|
||
echo "Uninstalling Gazebo 7" | ||
apt-get remove --purge *gazebo7* -y | ||
apt-get remove ros-kinetic-gazebo* -y | ||
apt-get remove libgazebo* -y | ||
apt-get remove gazebo* -y | ||
sudo apt-get remove --purge -y *gazebo7* | ||
sudo apt-get remove -y ros-kinetic-gazebo* | ||
sudo apt-get remove -y libgazebo* | ||
sudo apt-get remove -y gazebo* | ||
echo "Gazebo 7 uninstalled with success" | ||
|
||
echo "Installing Gazebo 9" | ||
apt-get install ros-kinetic-gazebo9-* -y | ||
sudo apt-get install -y ros-kinetic-gazebo9-* | ||
echo "Gazebo 9 installed with success" | ||
|
||
echo "Gazebo 9 setup completed with success" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters