Commit 1af48b1184c4ddae9e4b23a46418ccd0b5627a6c

Authored by Wesnydy Ribeiro
1 parent 37d8a4c8
Exists in release

Update dependencies script

Showing 2 changed files with 53 additions and 53 deletions   Show diff stats
README.md
... ... @@ -7,7 +7,9 @@ Recommended OS: [Linux Ubuntu 14.04.4 LTS 64-bit](http://releases.ubuntu.com/14.
7 7 Dependencies: [Docker](https://www.docker.com/), [RabbitMQ](https://www.rabbitmq.com/),
8 8 [Graylog](https://www.graylog.org/), [Nodejs](https://nodejs.org/en/),
9 9 [Redis](https://redis.io/), [MongoDB](https://www.mongodb.com/),
10   - [FFMPEG](https://www.ffmpeg.org/).
  10 + [FFmpeg](https://www.ffmpeg.org/).
  11 +
  12 +Aditional Dependencies: VLibras Translate, VLibras Video Player
11 13  
12 14 >Note: See Installation section to install dependencies.
13 15  
... ...
dependencies/configure.sh 100644 → 100755
1 1 #!/usr/bin/env bash
2 2  
3   -#Add root and menu
  3 +ERROR="\033[31mERROR\033[0m"
  4 +OK="\033[32mOK\033[0m"
4 5  
5   -PUR="\033[1;35m"
6   -CYA="\033[1;36m"
7   -RED="\033[1;31m"
8   -NC="\033[0m"
  6 +set -e
9 7  
10   -# set -e
  8 +echo -n "Updating apt"
  9 +sudo apt-get -qq -y update && echo -n "." || (echo -e $ERROR; exit 1;)
  10 +sudo apt-get -qq -y upgrade && echo -n "." || (echo -e $ERROR; exit 1;)
  11 +sudo apt-get -qq -y update && echo -e ". $OK" || (echo -e $ERROR; exit 1;)
11 12  
12   -echo -e "${CYA}Updating apt${NC}"
13   -sudo apt-get -y -qq update
14   -sudo apt-get -y -qq upgrade
15   -sudo apt-get -y -qq update
16   -
17   -sudo apt-get install -y -qq build-essential libssl-dev
18   -
19   -echo -e "${PUR}Installing python tools${NC}"
20   -sudo apt-get -y -qq install python-setuptools python-pip
21   -
22   -echo -e "${PUR}Installing RabbitMQ${NC}"
  13 +echo -e "Obtaining RabbitMQ from rabbitmq.com APT Repository..."
23 14 echo 'deb http://www.rabbitmq.com/debian/ testing main' | sudo tee /etc/apt/sources.list.d/rabbitmq.list
24   -wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
25   -sudo apt-get -y -qq update
26   -sudo apt-get install -y -qq rabbitmq-server
27   -
28   -echo -e "${PUR}Installing RabbitMQ lib for python${NC}"
29   -sudo pip install -q pika
  15 +wget -q -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
  16 +echo -n "Installing RabbitMQ"
  17 +sudo apt-get -qq -y update && echo -n "." || (echo -e $ERROR; exit 1;)
  18 +sudo apt-get install -qq -y rabbitmq-server && echo -n "." || (echo -e $ERROR; exit 1;)
  19 +sudo pip install -q pika && echo -e ". $OK" || (echo -e $ERROR; exit 1;)
  20 +echo -e "Enabling RabbitMQ management... "
  21 +sudo rabbitmq-plugins enable rabbitmq_management
  22 +
  23 +echo -n "Installing Graylog"
  24 +sudo pip install -q graypy && echo -n ".." || (echo -e $ERROR; exit 1;)
  25 +sudo pip install -q graypy[amqp] && echo -e ". $OK" || (echo -e $ERROR; exit 1;)
  26 +
  27 +echo -n "Installing nodejs v4.x"
  28 +curl -sL https://deb.nodesource.com/setup_4.x | sudo bash - &>/dev/null
  29 +sudo apt-get install -qq -y nodejs && echo -e "... $OK" || (echo -e $ERROR; exit 1;)
  30 +
  31 +echo -n "Installing Redis"
  32 +sudo apt-get install -qq -y redis-server && echo -e "... $OK" || (echo -e $ERROR; exit 1;)
  33 +echo -e "Restarting Redis server..."
  34 +sudo service redis-server restart
  35 +
  36 +echo -e "Obtaining MongoDB from repo.mongodb.org APT Repository..."
  37 +sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 &>/dev/null
  38 +echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" \
  39 + | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
  40 +echo -n "Installing MongoDB"
  41 +sudo apt-get -qq -y update && echo -n "." || (echo -e $ERROR; exit 1;)
  42 +sudo apt-get install -qq -y mongodb-org && echo -e ".. $OK" || (echo -e $ERROR; exit 1;)
30 43  
31   -echo -e "${PUR}Installing Graylog${NC}"
32   -sudo pip install -q graypy
33   -sudo pip install -q graypy[amqp]
  44 +echo -n "Installing FFmpeg"
  45 +sudo add-apt-repository -y ppa:mc3man/trusty-media &>/dev/null
  46 +sudo apt-get -qq -y update && echo -n "." || (echo -e $ERROR; exit 1;)
  47 +sudo apt-get install -qq -y ffmpeg && echo -e ".. $OK" || (echo -e $ERROR; exit 1;)
34 48  
35   -echo -e "${PUR}Enabling RabbitMQ management${NC}"
36   -rabbitmq-plugins enable rabbitmq_management
  49 +# echo -e "\nYou want to install aditional dependencies?\n"
37 50  
38   -echo -e "${PUR}Installing nodejs v4.x${NC}"
39   -curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
40   -sudo apt-get install -y -qq nodejs
  51 +# echo -n "Installing VLibras Translate"
  52 +# TODO
41 53  
42   -echo -e "${PUR}Installing Redis${NC}"
43   -sudo apt-get install -y -qq redis-server
44   -service redis-server restart
  54 +# echo -n "Obtaining VLibras Player..."
  55 +# wget http://150.165.204.30:8080/core/linux/unityVideo.tar.gz
  56 +#
  57 +# sudo apt-get install -qq -y xvfb && echo -n "." || (echo $ERROR; exit 1;)
  58 +# sudo pip install -q pyvirtualdisplay && echo -n "." || (echo $ERROR; exit 1;)
45 59  
46   -echo -e "${PUR}Installing MongoDB${NC}"
47   -sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
48   -echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" \
49   - | tee /etc/apt/sources.list.d/mongodb-org-3.2.list
50   -sudo apt-get -y -qq update
51   -sudo apt-get install -y -qq mongodb-org
52   -
53   -echo -e "${PUR}Installing FFMPEG${NC}"
54   -sudo add-apt-repository ppa:mc3man/trusty-media
55   -sudo apt-get -y -qq update
56   -sudo apt-get install -y -qq ffmpeg
57   -
58   -echo -e "${PUR}Installing Unity Video${NC}"
59   -sudo apt-get install -y -qq xvfb
60   -sudo pip install -q pyvirtualdisplay
61   -wget http://150.165.204.30:8080/core/linux/unityVideo.tar.gz
62   -tar -xf unityVideo.tar.gz -C $HOME
63   -rm unityVideo.tar.gz
  60 +# tar -xf unityVideo.tar.gz -C $HOME
  61 +# rm unityVideo.tar.gz
... ...