Skip to content

Sandbox: add -c local build mode#1444

Merged
tuhaihe merged 1 commit intoapache:mainfrom
tuhaihe:sandbox-local
Dec 3, 2025
Merged

Sandbox: add -c local build mode#1444
tuhaihe merged 1 commit intoapache:mainfrom
tuhaihe:sandbox-local

Conversation

@tuhaihe
Copy link
Member

@tuhaihe tuhaihe commented Nov 21, 2025

Introduce a new "local" codebase option to the sandbox run script so developers can build Docker images directly from their current local checkout without cloning Cloudberry again inside the container.

Usage:

./run.sh -c local #single node
./run.sh -c local -m #multi node

Key changes:

  • Extend devops/sandbox/run.sh to accept CODEBASE_VERSION=local, compute the repository root as the Docker build context, and pass the version through to Docker as a build argument.
  • For local builds, initialize git submodules only when both a .git directory exists under the repository root and the git command is available; otherwise print a clear warning so users know to prepare required submodules themselves.

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


@tuhaihe tuhaihe force-pushed the sandbox-local branch 2 times, most recently from 57daa04 to 981eebc Compare November 25, 2025 03:38
Introduce a new "local" codebase option to the sandbox run script so
developers can build Docker images directly from their current local
checkout without cloning Cloudberry again inside the container.

Usage:

    ./run.sh -c local #single node
    ./run.sh -c local -m #multi node

Key changes:

- Extend devops/sandbox/run.sh to accept CODEBASE_VERSION=local,
  compute the repository root as the Docker build context, and pass
  the version through to Docker as a build argument.
- For local builds, initialize git submodules only when both a .git
  directory exists under the repository root and the git command is
  available; otherwise print a clear warning so users know to prepare
  required submodules themselves.
@tuhaihe tuhaihe merged commit 0d23be8 into apache:main Dec 3, 2025
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants