Skip to content

Add dockerfile for performing an empty database build#3259

Merged
sgoggins merged 2 commits intochaoss:mainfrom
MoralCode:empty-db-build
Sep 10, 2025
Merged

Add dockerfile for performing an empty database build#3259
sgoggins merged 2 commits intochaoss:mainfrom
MoralCode:empty-db-build

Conversation

@MoralCode
Copy link
Contributor

Description
I recently created https://github.com/orgs/chaoss/packages/container/package/augur_empty_database, a GHCR container containing an empty augur Database for the purposes of enabling a downstream project like 8Knot to run CI jobs without needing to publish credentials to a publicly accessible database.

This container is a very thin wrapper around postgres 16 that ships postgres data for an empty augur db. While this intentionally violates usual docker conventions of storing postgres data in volumes, it does so to enable downstream projects to provide their CI jobs with SOMETHING to connect to in place of a real augur database for the purpose of testing.

This path was easier than attempts to create scripts that could anonymize an existing augur db for use in CI jobs.

This PR adds a dockerfile that can ensure this empty database image stays up to date as the augur schema evolves, as well as includes it in the existing docker build pipeline.

Notes for Reviewers
This dockerfile is largely a copy paste of the existing backend docker compose with some things removed (keyman, etc) that are not likely to be needed for the sole purpose of running augur db create-schema.

If theres a way to COPY this augur CLI binary and reduce the duplication in build steps with this container, that would also be super helpful.

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Copy link
Member

@sgoggins sgoggins left a comment

Choose a reason for hiding this comment

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

LGTM!

@sgoggins sgoggins merged commit 2c9a5f1 into chaoss:main Sep 10, 2025
10 checks passed
@MoralCode MoralCode deleted the empty-db-build branch September 10, 2025 15:15
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