Skip to content

HIVE-27382: Migrate postgres-tpcds-metastore image to the Git repo#6490

Open
zabetak wants to merge 1 commit into
apache:masterfrom
zabetak:HIVE-27382-ci-publish
Open

HIVE-27382: Migrate postgres-tpcds-metastore image to the Git repo#6490
zabetak wants to merge 1 commit into
apache:masterfrom
zabetak:HIVE-27382-ci-publish

Conversation

@zabetak
Copy link
Copy Markdown
Member

@zabetak zabetak commented May 15, 2026

What changes were proposed in this pull request?

  1. Move necessary files from https://github.com/zabetak/hive-postgres-metastore repo to ASF.
  2. Remove redundant information and update README file.
  3. Create GitHub action for publishing new image to ASF Dockerhub on-demand.

Why are the changes needed?

  1. Facilitate maintenance
  2. Automate image publishing
  3. Track code provenance
  4. Avoid user-specific code silos

Does this PR introduce any user-facing change?

No

How was this patch tested?

The CI action publication was tested on my personal user namespace

I also pushed manually from my local env an image to the new apache/hive-postgres-tpcds-metastore namespace:
https://hub.docker.com/repository/docker/apache/hive-postgres-tpcds-metastore

1. Move necessary files from https://github.com/zabetak/hive-postgres-metastore repo to ASF.
2. Remove redundant information and update README file.
3. Create GitHub action for publishing new image to ASF Dockerhub on-demand.
Comment on lines +34 to +57
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd

- name: Login to Docker Hub
if: ${{ github.event.inputs.pushImage == 'true' }}
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and optionally push Docker image
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294
with:
context: ./standalone-metastore/metastore-server/docker/hive-postgres-tpcds-metastore/
file: ./standalone-metastore/metastore-server/docker/hive-postgres-tpcds-metastore/Dockerfile
push: ${{ github.event.inputs.pushImage == 'true' }}
tags: ${{ github.repository_owner }}/hive-postgres-tpcds-metastore:${{ github.event.inputs.imageTag }}
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@abstractdog abstractdog left a comment

Choose a reason for hiding this comment

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

LGTM, pending tests
currently, there is an unrelated test failure :(

@zabetak
Copy link
Copy Markdown
Member Author

zabetak commented May 16, 2026

Thanks for the review @abstractdog ! The test failure is definitely unrelated so I will not relaunch the tests to save some resources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants