Skip to content

Instantly share code, notes, and snippets.

@narendrans
Last active September 15, 2020 19:26
Show Gist options
  • Save narendrans/62c235d6221ca78b5e412a7ac03a4bda to your computer and use it in GitHub Desktop.
Save narendrans/62c235d6221ca78b5e412a7ac03a4bda to your computer and use it in GitHub Desktop.
Superset with Dremio ODBC on Centos7 Docker image
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"]
@narendrans
Copy link
Author

narendrans commented Apr 20, 2020

  1. Build a docker image with the above Dockerfile. Run it with docker run -d -p 80:80 <image_name>
  2. Navigate to http://localhost on host os.
  3. Sign in with admin/admin
  4. Sources > Databases > Add..
    URI example: dremio://user:password@host:port/dremio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment