Skip to content

Commit

Permalink
Merge pull request #34 from aws-robotics/new_apt_repo
Browse files Browse the repository at this point in the history
Changing the apt source to 13.52.195.14 and using the new key before …
  • Loading branch information
raghaprasad authored Jun 3, 2019
2 parents fb13e7c + 51380aa commit 5a7949c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ros1_sa_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ set -e
export SCRIPT_DIR=$(dirname ${DOCKER_BUILD_SCRIPT})

# install dependencies
apt update && apt install -y zip python3-pip python3-apt dpkg ros-$ROS_DISTRO-ros-base && rosdep update
apt update && apt install -y python3-colcon-common-extensions && pip3 install -U setuptools
apt-get update && apt-get install -q -y dirmngr gnupg2 lsb-release zip python3-pip python3-apt dpkg
pip3 install -U setuptools
sh -c 'echo "deb http://13.52.195.14/ubuntu/main $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
apt-get update && apt-get install --no-install-recommends -y python-rosdep python-rosinstall python3-colcon-common-extensions ros-$ROS_DISTRO-ros-base
pip3 install colcon-bundle colcon-ros-bundle
# Remove the old rosdep sources.list
rm -rf /etc/ros/rosdep/sources.list.d/*
rosdep init && rosdep update

. /opt/ros/$ROS_DISTRO/setup.sh

BUILD_DIR_NAME=`basename $TRAVIS_BUILD_DIR`
Expand Down

0 comments on commit 5a7949c

Please sign in to comment.