DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
cubejs logo

cubejs

packaged by Chainguard

Last changed
Start with 5 free container images

Catalog Starter gives your team 5 production-grade container images, free forever, with no contract or sales call. Sign up with your work email.

Try Starter for free
Tags
Overview
Comparison
Provenance
Specifications
SBOM
Vulnerabilities
Advisories

Chainguard Container for cubejs

A minimal Wolfi-based image for Cube Core, the open-source semantic layer that serves data models over REST, GraphQL, and a Postgres-compatible SQL API.

Chainguard Containers are regularly-updated, secure-by-default container images.

Download this Container Image

For those with access, this container image is available on cgr.dev:

docker pull cgr.dev/ORGANIZATION/cubejs:latest

Be sure to replace the ORGANIZATION placeholder with the name used for your organization's private repository within the Chainguard Registry.

Compatibility Notes

Chainguard's cubejs image is comparable to the upstream cubejs/cube image. It uses the same entrypoint (docker-entrypoint.sh), command (cubejs server), working directory (/cube/conf), and NODE_PATH, so existing data models and environment variables work unchanged. The differences:

  • The container runs as the nonroot user (UID 65532) instead of root. /cube/conf is owned by that user, so dev mode can still write model files there. A directory you bind-mount must be writable by UID 65532 for the Developer Playground to generate files in it.
  • Cube Store is not included. Upstream only starts its embedded Cube Store in dev mode. Point CUBEJS_CUBESTORE_HOST at a separately deployed Cube Store, or set CUBEJS_CACHE_AND_QUEUE_DRIVER to memory, in dev mode as well as in production: the image sets NODE_ENV=production, so Cube otherwise expects Cube Store. In dev mode with the memory driver, queries and the Developer Playground work, but /readyz and /livez report the missing Cube Store as unhealthy, so do not use them as probes for a dev mode container.
  • Like the upstream latest image, the image has no JDK, so JDBC-based drivers such as Databricks JDBC are not available.
  • Yarn, npm, and pip are not included, so upstream's RUN npm install extension pattern needs a multi-stage build that copies node_modules into /cube/conf.

Getting Started

Create a small data model. This one uses DuckDB in memory, so it needs no database:

mkdir -p model/cubes
cat > model/cubes/orders.yml <<'EOF'
cubes:
  - name: orders
    sql: >
      SELECT 1 AS id, 'completed' AS status
      UNION ALL
      SELECT 2 AS id, 'processing' AS status
    measures:
      - name: count
        type: count
    dimensions:
      - name: status
        sql: status
        type: string
EOF

Start Cube in dev mode with the model mounted:

docker run --rm -p 4000:4000 \
  -v "$PWD/model:/cube/conf/model" \
  -e CUBEJS_DEV_MODE=true \
  -e CUBEJS_DB_TYPE=duckdb \
  -e CUBEJS_API_SECRET=secret \
  -e CUBEJS_CACHE_AND_QUEUE_DRIVER=memory \
  cgr.dev/ORGANIZATION/cubejs:latest

Open the Developer Playground at http://localhost:4000, select orders > Count and Status, and run the query.

Configuration

Production deployments run without CUBEJS_DEV_MODE, against a real database. This example connects to Postgres and enables the Postgres-compatible SQL API on port 15432:

docker run -d --name cube -p 4000:4000 -p 15432:15432 \
  -v "$PWD/model:/cube/conf/model" \
  -e CUBEJS_DB_TYPE=postgres \
  -e CUBEJS_DB_HOST=postgres.example.com \
  -e CUBEJS_DB_NAME=analytics \
  -e CUBEJS_DB_USER=cube \
  -e CUBEJS_DB_PASS=change-me \
  -e CUBEJS_API_SECRET=change-me-too \
  -e CUBEJS_CACHE_AND_QUEUE_DRIVER=memory \
  -e CUBEJS_PG_SQL_PORT=15432 \
  -e CUBEJS_SQL_USER=cube \
  -e CUBEJS_SQL_PASSWORD=sql-secret \
  cgr.dev/ORGANIZATION/cubejs:latest

REST and GraphQL requests need a JWT signed with CUBEJS_API_SECRET. SQL clients connect with CUBEJS_SQL_USER and CUBEJS_SQL_PASSWORD:

psql -h localhost -p 15432 -U cube -c 'SELECT status, MEASURE(count) FROM orders GROUP BY 1'

For production, replace CUBEJS_CACHE_AND_QUEUE_DRIVER=memory with CUBEJS_CUBESTORE_HOST pointing at your Cube Store.

Documentation and Resources

What are Chainguard Containers?

Chainguard's free tier of Starter container images are built with Wolfi, our minimal Linux undistro.

All other Chainguard Containers are built with Chainguard OS, Chainguard's minimal Linux operating system designed to produce container images that meet the requirements of a more secure software supply chain.

The main features of Chainguard Containers include:

For cases where you need container images with shells and package managers to build or debug, most Chainguard Containers come paired with a development, or -dev, variant.

In all other cases, including Chainguard Containers tagged as :latest or with a specific version number, the container images include only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager.

Although the -dev container image variants have similar security features as their more minimal versions, they include additional software that is typically not necessary in production environments. We recommend using multi-stage builds to copy artifacts from the -dev variant into a more minimal production image.

Need additional packages?

To improve security, Chainguard Containers include only essential dependencies. Need more packages? Chainguard customers can use Custom Assembly to add packages, either through the Console, chainctl, or API.

To use Custom Assembly in the Chainguard Console: navigate to the image you'd like to customize in your Organization's list of images, and click on the Customize image button at the top of the page.

Learn More

Refer to our Chainguard Containers documentation on Chainguard Academy. Chainguard also offers VMs and Libraries — contact us for access.

Trademarks

This software listing is packaged by Chainguard. The trademarks set forth in this offering are owned by their respective companies, and use of them does not imply any affiliation, sponsorship, or endorsement by such companies.

Licenses

Chainguard's container images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" tag of this image:

    For a complete list of licenses, please refer to this Image's SBOM.

    Software license agreement

    Compliance

    Chainguard Containers are SLSA Level 3 compliant with detailed metadata and documentation about how it was built. We generate build provenance and a Software Bill of Materials (SBOM) for each release, with complete visibility into the software supply chain.

    SLSA compliance at Chainguard

    This image helps reduce time and effort in establishing PCI DSS 4.0 compliance with low-to-no CVEs.

    PCI DSS at Chainguard

    Category
    Application

    The trusted source for open source

    Talk to an expert
    PrivacyTerms

    Product

    Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
    © 2026 Chainguard, Inc. All Rights Reserved.
    Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
    The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.