$ mkdir superset
$ cd superset
$ wget https://gist.githubusercontent.com/ariarijp/f04c51feff8bfff73a53e7958474a942/raw/db67ddac46e53dbd3db139c3e7abdf8a4f70f504/run.sh
$ chmod +x run.sh
$ ./run.sh
Last active
November 28, 2016 10:24
-
-
Save ariarijp/f04c51feff8bfff73a53e7958474a942 to your computer and use it in GitHub Desktop.
supersetのお試し環境構築
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
#!/bin/bash | |
set -e | |
if [ ! -e Vagrantfile ]; then | |
wget https://gist.githubusercontent.com/ariarijp/f04c51feff8bfff73a53e7958474a942/raw/c827a6b77fac9028e2200dc5c32ac60a388757ee/Vagrantfile | |
fi | |
vagrant up | |
vagrant ssh -c "cd /opt/superset; . venv/bin/activate; superset runserver -p 8088" |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "forwarded_port", guest: 8088, host: 8088 | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = 1024 * 2 | |
end | |
config.vm.provision "shell", privileged: false, inline: <<-SHELL | |
sudo sed -i s/archive.ubuntu.com/jp.archive.ubuntu.com/ /etc/apt/sources.list | |
sudo apt-get update | |
sudo apt-get install -y build-essential libssl-dev libffi-dev python-dev python-pip libsasl2-dev libldap2-dev | |
sudo pip install virtualenv | |
sudo mkdir /opt/superset | |
sudo chown vagrant.vagrant /opt/superset | |
cd /opt/superset | |
virtualenv venv | |
. ./venv/bin/activate | |
pip install --upgrade setuptools pip | |
pip install superset | |
fabmanager create-admin --app superset --username admin --firstname admin --lastname user --email admin@fab.org --password superset | |
superset db upgrade | |
superset load_examples | |
superset init | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment