Created
December 25, 2016 11:31
-
-
Save nikukyugamer/25dba4f49d5f22c827972022ae77f91f to your computer and use it in GitHub Desktop.
to install superset by myself
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 | |
docker run -it --name superset_create --hostname supersetcreate -p 12345:80 -v /docker/superset/.superset:/root/.superset -v /sqlite3:/sqlite3 ubuntu /bin/bash | |
# 1st prepare | |
apt-get update | |
apt-get dist-upgrade -y | |
apt-get install -y build-essential libssl-dev libffi-dev python-dev python-pip libsasl2-dev libldap2-dev curl git nano wget libbz2-dev libreadline-dev libsqlite3-dev | |
# you can install micro on behalf of nano | |
# pyenv | |
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash | |
nano ~/.bashrc | |
export PATH="/root/.pyenv/bin:$PATH" | |
eval "$(pyenv init -)" | |
eval "$(pyenv virtualenv-init -)" | |
source ~/.bashrc | |
pyenv install 3.5.2 | |
pyenv global 3.5.2 | |
# japanese | |
apt-get install -y language-pack-ja-base language-pack-ja | |
update-locale LANG=ja_JP.UTF-8 LANGUAGE=ja_JP:ja | |
dpkg-reconfigure tzdata | |
# add to shell | |
nano ~/.bashrc | |
export LANG=ja_JP.UTF-8 | |
export LC_ALL=ja_JP.UTF-8 | |
export LC_CTYPE=ja_JP.UTF-8 | |
source ~/.bashrc | |
# superset | |
pip install --upgrade setuptools pip | |
pip install superset | |
fabmanager create-admin --app superset | |
superset db upgrade | |
superset load_examples | |
superset init | |
# for mysql | |
apt-get install -y libmysqlclient-dev | |
pip install mysqlclient | |
# init.sh | |
nano ~/init.sh | |
chmod +x ~/init.sh | |
# superset runserver -p 80 -a 0.0.0.0 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment