-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathairbnb-superset-setup.sh
76 lines (61 loc) · 1.43 KB
/
airbnb-superset-setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/ash
# set shell env to execute...
# for debug change to -x to dryrun w/o execution change to -n
set -e
# confirm Alpin Linux 3.5
if [ -f /etc/alpine-release ]
then
if grep -q -i "3.5.0" /etc/alpine-release
then
echo "Alpine Linux 3.5.0 confirmed"
else
echo "Looks like Alpine Linux, but not the 3.5.0 version tested"
echo "Let's continue and see what happens..."
fi
else
echo "This does not appear to be Alpine Linux \n"
exit
fi
# uncomment community repo
sed -i '/3.5\/community/s/^#//g' /etc/apk/repositories
# refresh repositories
apk update
# install OS packages
apk add -u python3 \
python3-dev \
py3-pip \
build-base \
gfortran \
lapack \
lapack-dev \
cmake \
freetype \
freetype-dev \
libxml2 \
libxml2-dev \
libxslt-dev \
libxslt \
linux-headers \
libffi-dev \
openssl-dev \
cyrus-sasl-dev
# check for xlocale.h and if not exist create symlink to locale.h
if [ -f /usr/include/xlocale.h ]
then
echo "/usr/include/xlocale.h already exists"
else
ln -s /usr/include/locale.h /usr/include/xlocale.h
fi
# insall python apps and libraries
#pip install --upgrade pip
#pip install virtualenv
#virtualenv venv
#. ./venv/bin/activate
pip3 install --upgrade setuptools pip
pip3 install superset
# next steps
fabmanager create-admin --app superset
superset db upgrade
superset load_examples
superset init
superset runserver -p 8888