Add dockerfile for performing an empty database build#3259
Merged
sgoggins merged 2 commits intochaoss:mainfrom Sep 10, 2025
Merged
Add dockerfile for performing an empty database build#3259sgoggins merged 2 commits intochaoss:mainfrom
sgoggins merged 2 commits intochaoss:mainfrom
Conversation
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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