Skip to content

contrib/docker: publish the Docker image to ghcr.io - #6180

Draft
SChakravorti21 wants to merge 3 commits into
bloomberg:mainfrom
SChakravorti21:ghcr
Draft

contrib/docker: publish the Docker image to ghcr.io#6180
SChakravorti21 wants to merge 3 commits into
bloomberg:mainfrom
SChakravorti21:ghcr

Conversation

@SChakravorti21

@SChakravorti21 SChakravorti21 commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Three changes:

  1. f0df082: make it so that the tests that exercise standalone dbs can run with a pre-built image (making the clustered tests work with a pre-built image will require more thought).
  2. 6306089: add a sanity check to the image's entrypoint - user must specify a dbname for the database to start.
  3. c54421b: add a GitHub Actions workflow for publishing the image to the GitHub container registry (ghcr). This does the following:
    a. Build the image for both amd64 and arm64.
    b. "Merge" the manifests so that a docker pull can choose the best image for the native architecture, and publish to ghcr.
    c. Verify that the published images pass tests/contrib_docker.

Adds a section argument and COMDB2_DOCKER_IMAGE so the standalone checks can run
against a prebuilt image, as the publish workflow needs.

Signed-off-by: Shoumyo Chakravorti <[email protected]>
The standalone entrypoint served the databases named as arguments but exited
silently when given none. Print usage and exit non-zero instead, and cover it in
the smoke test.

Signed-off-by: Shoumyo Chakravorti <[email protected]>
Adds a workflow that builds Dockerfile.dev for amd64 and arm64 and pushes a
combined manifest to the GitHub Container Registry on pushes to main.

Signed-off-by: Shoumyo Chakravorti <[email protected]>

@roborivers roborivers left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cbuild submission: Error ⚠.
Regression testing: Success ✓.

The first 10 failing tests are:
sc_resume_logicalsc_generated **quarantined**
ssl_san
consumer_non_atomic_default_consumer_generated **quarantined**
ssl_set_cmd
ssl_prefer
ssl_dbname
sc_downgrade [timeout] **quarantined**
reco-ddlk-sql [timeout] **quarantined**

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.

2 participants