superset/docker
ofekisr aee5c9a3ea
chore: removing redundant docker-entrypoint (#17687)
* chore: removing redundant docker-entrypoint

* chore: chmod the run-server

* Update Dockerfile

Co-authored-by: Amit Miran <47772523+amitmiran137@users.noreply.github.com>
2021-12-08 20:43:28 +02:00
..
pythonpath_dev chore: Enforce Mypy for non-tests (#15757) 2021-07-22 06:46:43 +12:00
.env chore: add non-dev docker-compose workflow (#13143) 2021-02-18 09:55:15 -08:00
.env-non-dev chore: add non-dev docker-compose workflow (#13143) 2021-02-18 09:55:15 -08:00
README.md docs(docker): update README (#15607) 2021-07-10 13:30:35 -04:00
docker-bootstrap.sh chore: removing redundant docker-entrypoint (#17687) 2021-12-08 20:43:28 +02:00
docker-ci.sh chore: removing redundant docker-entrypoint (#17687) 2021-12-08 20:43:28 +02:00
docker-frontend.sh fix: use npm v7 in docker compose (#15160) 2021-06-15 09:43:43 -07:00
docker-init.sh feat: Added setup for running Cypress tests in docker locally (#11207) 2020-12-14 08:06:19 -08:00
frontend-mem-nag.sh Docker-Compose Memory Issue Fix? (#9285) 2020-03-13 09:25:54 -07:00
run-server.sh chore: removing redundant docker-entrypoint (#17687) 2021-12-08 20:43:28 +02:00

README.md

Getting Started with Superset using Docker

Docker is an easy way to get started with Superset.

Prerequisites

  1. Docker! link
  2. Docker-compose link

Configuration

The /app/pythonpath folder is mounted from ./docker/pythonpath_dev which contains a base configuration ./docker/pythonpath_dev/superset_config.py intended for use with local development.

Local overrides

In order to override configuration settings locally, simply make a copy of ./docker/pythonpath_dev/superset_config_local.example into ./docker/pythonpath_dev/superset_config_docker.py (git ignored) and fill in your overrides.

Local packages

If you want to add Python packages in order to test things like databases locally, you can simply add a local requirements.txt (./docker/requirements-local.txt) and rebuild your Docker stack.

Steps:

  1. Create ./docker/requirements-local.txt
  2. Add your new packages
  3. Rebuild docker-compose
    1. docker-compose down -v
    2. docker-compose up

Initializing Database

The database will initialize itself upon startup via the init container (superset-init). This may take a minute.

Normal Operation

To run the container, simply run: docker-compose up

After waiting several minutes for Superset initialization to finish, you can open a browser and view http://localhost:8088 to start your journey.

Developing

While running, the container server will reload on modification of the Superset Python and JavaScript source code. Don't forget to reload the page to take the new frontend into account though.

Production

It is possible to run Superset in non-development mode by using docker-compose-non-dev.yml. This file excludes the volumes needed for development and uses ./docker/.env-non-dev which sets the variable SUPERSET_ENV to production.

Resource Constraints

If you are attempting to build on macOS and it exits with 137 you need to increase your Docker resources. See instructions here (search for memory)