From 33e68b333182d459943c33123e29298d1b5b7efa Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Mon, 10 Sep 2018 13:50:18 -0400 Subject: [PATCH] update ubuntu.sh setup script and python requirements.txt --- Tools/setup/requirements.txt | 2 ++ Tools/setup/ubuntu.sh | 34 +++++++++++++++++++++++++++++----- 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/Tools/setup/requirements.txt b/Tools/setup/requirements.txt index 45ce9f7186..86fbb688b3 100644 --- a/Tools/setup/requirements.txt +++ b/Tools/setup/requirements.txt @@ -1,10 +1,12 @@ argparse>=1.2 +cerberus empy>=3.3 jinja2>=2.8 numpy>=1.13 pandas>=0.21 pyserial>=3.0 pyulog>=0.5.0 +pyyaml setuptools>=39.2.0 toml>=0.9 wheel>=0.31.1 diff --git a/Tools/setup/ubuntu.sh b/Tools/setup/ubuntu.sh index 4c1d859db7..211553335e 100755 --- a/Tools/setup/ubuntu.sh +++ b/Tools/setup/ubuntu.sh @@ -1,5 +1,20 @@ #! /usr/bin/env bash + +# detect if running in docker +if [ -f /.dockerenv ]; then + echo "Running within docker, installing initial dependencies"; + apt-get --quiet -y update && apt-get --quiet -y install \ + ca-certificates \ + curl \ + gnupg \ + gosu \ + lsb-core \ + sudo \ + wget \ + ; +fi + # script directory DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) @@ -18,27 +33,32 @@ then elif [[ "${UBUNTU_RELEASE}" == "18.04" ]] then echo "Ubuntu 18.04" - echo "WARNING, instructions only tested on Ubuntu 16.04" fi export DEBIAN_FRONTEND=noninteractive + sudo apt-get update -yy --quiet sudo apt-get -yy --quiet --no-install-recommends install \ + astyle \ bzip2 \ - ca-certificates \ ccache \ cmake \ + cppcheck \ + doxygen \ g++ \ gcc \ + gdb \ git \ lcov \ make \ ninja-build \ - python-pip + python-pip \ + python-pygments \ + python-setuptools \ rsync \ + shellcheck \ unzip \ wget \ - wget \ xsltproc \ zip @@ -50,4 +70,8 @@ python -m pip install --user -r ${DIR}/requirements.txt # TODO: only install when necessary sudo apt-get -y --quiet --no-install-recommends install \ default-jre-headless \ - default-jdk-headless \ + default-jdk-headless + +# TODO: nuttx, raspberrypi, armhf generic + +# TODO: gazebo or ROS optional