starrocks Docker & Self-Hosted Deployment

GitHub

The world's fastest open query engine for sub-second analytics both on and off the data lakehouse. With the flexibility to support nearly any scenario,...

RAW Compose
1. Pull Image (DOCKERHUB) docker pull library/${STARROCKS_DEV_ENV_IMAGE
2. Docker Run (1-Click Launch) docker run -d --name starrocks --restart always ${STARROCKS_DEV_ENV_IMAGE:-starrocks/dev-env-ubuntu:latest}
3. Podman Run podman run -d --name starrocks --restart always ${STARROCKS_DEV_ENV_IMAGE:-starrocks/dev-env-ubuntu:latest}
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/library/${STARROCKS_DEV_ENV_IMAGE:-starrocks/dev-env-ubuntu
5. ORAS Pull (OCI Artifact) oras pull ${STARROCKS_DEV_ENV_IMAGE:-starrocks/dev-env-ubuntu:latest}
6. Compose Deployment docker compose up -d
docker-compose.dev.yml
Download .yml
version: '3.8'

services:
  starrocks-dev:
    image: ${STARROCKS_DEV_ENV_IMAGE:-starrocks/dev-env-ubuntu:latest}
    container_name: starrocks-dev-env
    volumes:
      - .:/workspace
      - ~/.m2:/tmp/.m2
      - starrocks-maven-cache:/root/.m2
      - starrocks-build-cache:/workspace/output
    working_dir: /workspace
    environment:
      - STARROCKS_HOME=/workspace
      - HOME=/tmp
    user: "${UID:-1000}:${GID:-1000}"
    stdin_open: true
    tty: true
    command: /bin/bash
    networks:
      - starrocks-dev

  # Service for building Frontend
  build-fe:
    extends: starrocks-dev
    container_name: starrocks-build-fe
    command: ./build.sh --fe

  # Service for building Backend
  build-be:
    extends: starrocks-dev
    container_name: starrocks-build-be
    command: ./build.sh --be

  # Service for running tests
  test-fe:
    extends: starrocks-dev
    container_name: starrocks-test-fe
    command: ./run-fe-ut.sh

  test-be:
    extends: starrocks-dev
    container_name: starrocks-test-be
    command: ./run-be-ut.sh

volumes:
  starrocks-maven-cache:
    driver: local
  starrocks-build-cache:
    driver: local

networks:
  starrocks-dev:
    driver: bridge