Last active
September 15, 2020 19:26
-
-
Save narendrans/62c235d6221ca78b5e412a7ac03a4bda to your computer and use it in GitHub Desktop.
Superset with Dremio ODBC on Centos7 Docker image
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
FROM centos:7 | |
RUN yum install -y python3 python3-devel python3-pip unixODBC unixODBC-devel python3-setuptools gcc gcc-c++ https://download.dremio.com/odbc-driver/dremio-odbc-LATEST.x86_64.rpm && \ | |
pip3 install apache-superset sqlalchemy_dremio && \ | |
export LC_ALL=en_US.UTF-8 && \ | |
superset db upgrade && \ | |
superset init && \ | |
export FLASK_APP=superset && \ | |
flask fab create-admin --username admin --firstname admin --lastname admin --email admin@admin --password admin | |
CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:80", "--timeout", "120", "--limit-request-line", "0", "--limit-request-field_size", "0", "superset.app:create_app()", "superset", "run"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker run -d -p 80:80 <image_name>
URI example:
dremio://user:password@host:port/dremio