Skip to content

Commit

Permalink
Merge pull request #512 from johnkearney/tidier-requirements
Browse files Browse the repository at this point in the history
Move datasource requirements from bootstrap to own requirements file
  • Loading branch information
arikfr committed Jul 27, 2015
2 parents 27639f8 + d202570 commit e9f1e3a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies:
- tar xvf optipng-0.7.5.tar.gz
- cd optipng-0.7.5; ./configure; make; sudo checkinstall -y;
- make deps
- pip install -r dev_requirements.txt
- pip install -r requirements_dev.txt
- pip install -r requirements.txt
cache_directories:
- rd_ui/node_modules/
Expand Down
9 changes: 9 additions & 0 deletions requirements_all_ds.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
google-api-python-client==1.2
gspread==0.2.5
impyla==0.10.0
influxdb==2.7.1
MySQL-python==1.2.5
oauth2client==1.2
pyhive==0.1.5
pymongo==2.7.2
pyOpenSSL==0.14
File renamed without changes.
19 changes: 3 additions & 16 deletions setup/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,26 +152,12 @@ fi

# BigQuery dependencies:
apt-get install -y libffi-dev libssl-dev
pip install google-api-python-client==1.2 pyOpenSSL==0.14 oauth2client==1.2

# MySQL dependencies:
apt-get install -y libmysqlclient-dev
pip install MySQL-python==1.2.5

# Mongo dependencies:
pip install pymongo==2.7.2

# Google spreadsheets:
pip install gspread

# InfluxDB
pip install influxdb

# Presto
pip install pyhive

# Impala
pip install impyla
# Pip requirements for all data source types
pip install -r requirements_all_ds.txt

# Setup supervisord + sysv init startup script
sudo -u redash mkdir -p /opt/redash/supervisord
Expand All @@ -188,3 +174,4 @@ rm /etc/nginx/sites-enabled/default
wget -O /etc/nginx/sites-available/redash $FILES_BASE_URL"nginx_redash_site"
ln -nfs /etc/nginx/sites-available/redash /etc/nginx/sites-enabled/redash
service nginx restart

0 comments on commit e9f1e3a

Please sign in to comment.