A cube dev deployment creating a semantic layer for serving up a connected data model.
- Your machine is running docker
- You have an Auth0 user
-
Create a .env file at the root repo directory and add the following properties and get their values from dev:
1.1. Add properties and values to setup authentication for auth0:
CUBEJS_JWK_URL CUBEJS_JWT_AUDIENCE CUBEJS_JWT_ISSUER CUBEJS_JWT_ALGS CUBEJS_JWT_CLAIMS_NAMESPACE1.2. Add properties to connect to different Sync datastores like Postgres and Databricks Delta Tables
CUBEJS_DB_HOST CUBEJS_DB_PORT CUBEJS_DB_NAME CUBEJS_DB_USER CUBEJS_DB_PASS CUBEJS_DB_TYPE -
Build docker image
docker build -t sync-cube-image . -
Run
docker compose up -
Run
curl -X GET 'http://localhost:4000/livez'to ensure cube is properly running -
You should now have a running cube server! Happy cubing! You can navigate to
http://localhost:4000/to play with the cube playground.