Skip to content

tshallenberger/superset-workspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Superset Workspace

A workspace for developing a separate fork of Apache Superset.

Bugs

superset-frontend won't build with following enabled in Docker on a Macbook M3:

Rosetta for x86/amd64 emulation on Apple Silicon

Setup

Open workspace in VS Code, then select Dev Containers: Rebuild and Reopen in container

This should spin up a docker-compose project called superset_workspace with child containers: app, db redis

Once the container is built, follow these steps to pull/build Superset:

# pull submodule
git submodule update --init
# PIP install superset
cd /workspace/superset && pip install -e .
# NPM install
cd /workspace/superset/superset-frontend && npm ci && npm run build

# Drop/Rebuild Superset Database
mysql -h db \
-psuperset \
-e "
DROP USER IF EXISTS superset@'%';
DROP USER IF EXISTS superset@localhost;
DROP DATABASE IF EXISTS superset;
CREATE DATABASE IF NOT EXISTS superset;
CREATE USER superset@'%' IDENTIFIED BY 'superset';
CREATE USER superset@localhost IDENTIFIED BY 'superset';
GRANT ALL PRIVILEGES ON *.* TO superset@'%' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO superset@localhost WITH GRANT OPTION;
"

# Run superset migrations, init roles, add admin user, load examples
superset db upgrade
superset init
superset fab create-admin \
  --username admin \
  --password admin \
  --firstname Admin \
  --lastname Admin \
  --email [email protected]
superset load_examples --force

Tools/Scripts

Display all networked containers (app, db, redis)

docker inspect superset_network \
| jq '.[0].Containers[] 
| {Name, IPv4Address} 
| .["name"] = .Name
| .["ip"] = .IPv4Address 
| del(.Name, .IPv4Address)'

About

Workspace for superset development.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published