Skip to content

chore(docker): remove tmp volume mounts after image update#2976

Merged
imbajin merged 1 commit intoapache:masterfrom
bitflicker64:chore/remove-entrypoint-volume-mounts
Mar 22, 2026
Merged

chore(docker): remove tmp volume mounts after image update#2976
imbajin merged 1 commit intoapache:masterfrom
bitflicker64:chore/remove-entrypoint-volume-mounts

Conversation

@bitflicker64
Copy link
Contributor

Purpose of the PR

Follow-up cleanup for #2952 — removes temporary entrypoint volume mounts from compose files now that updated Docker images have been published to Docker Hub with the new entrypoints baked in.

Main Changes

  • Removed entrypoint: overrides from docker/docker-compose.yml and docker/docker-compose-3pd-3store-3server.yml
  • Removed script volume mounts for docker-entrypoint.sh, wait-storage.sh, and wait-partition.sh from all services
  • Removed TODO comment that was tracking this cleanup

Verifying these changes

  • Trivial rework / code cleanup without any test coverage. (No Need)

Does this PR potentially affect the following parts?

  • Dependencies
  • Modify configurations
  • The public API
  • Other affects
  • Nope

Documentation Status

  • Doc - No Need

@imbajin
Copy link
Member

imbajin commented Mar 22, 2026

THX, the latest images in DockerHub already updated: (Also updated the introduction info)
https://github.com/hugegraph/actions/actions/runs/23381352130 (Building/Validate Process)

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Cleans up Docker Compose configurations by removing now-unnecessary entrypoint overrides and bind-mounted helper scripts after the corresponding Docker images were updated to include the new entrypoints directly.

Changes:

  • Removed temporary entrypoint: overrides from single-node and 3x3 compose files
  • Removed bind mounts for docker-entrypoint.sh, wait-storage.sh, and wait-partition.sh
  • Deleted the TODO comments tracking this temporary workaround

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
docker/docker-compose.yml Removes temporary entrypoint overrides and script mounts for the single-node deployment.
docker/docker-compose-3pd-3store-3server.yml Removes temporary entrypoint overrides and script mounts for the 3PD/3Store/3Server deployment.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 33 to 37
x-pd-common: &pd-common
image: hugegraph/pd:${HUGEGRAPH_VERSION:-latest}
pull_policy: missing
restart: unless-stopped
networks: [hg-net]
Copy link

Copilot AI Mar 22, 2026

Choose a reason for hiding this comment

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

pull_policy: missing + HUGEGRAPH_VERSION:-latest can keep using a locally cached (older) image instead of pulling the updated one. Since this PR removes the bind-mounted entrypoints/scripts and now relies on the images to contain the new entrypoint logic, using a cached image can lead to startup/config behavior that no longer matches these compose files. Consider switching the compose defaults to pull_policy: always (or pin HUGEGRAPH_VERSION to a known-good tag and document the required minimum image version).

Copilot uses AI. Check for mistakes.
Copy link
Member

@imbajin imbajin Mar 22, 2026

Choose a reason for hiding this comment

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

pull_policy: missing + HUGEGRAPH_VERSION:-latest can keep using a locally cached (older) image instead of pulling the updated one. Since this PR removes the bind-mounted entrypoints/scripts and now relies on the images to contain the new entrypoint logic, using a cached image can lead to startup/config behavior that no longer matches these compose files. Consider switching the compose defaults to pull_policy: always (or pin HUGEGRAPH_VERSION to a known-good tag and document the required minimum image version).

I agree the image update behavior should be explicit, but I don’t think switching this file to pull_policy: always is the right move yet.

Right now these three images do not have stable release tags like 1.7.0, so always pulling latest on every docker compose up would make production deployments pick up potentially breaking changes without an explicit upgrade step. For now, I’d prefer to keep pull_policy: missing and document the manual refresh workflow here instead.

If users want to force a refresh, run: (could refer it in #2963)

docker compose pull pd store server
docker compose up -d pd store server

Once release tags are available for all three images, we can revisit pinning the version and updating the compose defaults accordingly.

@imbajin imbajin changed the title chore(docker): remove temporary entrypoint volume mounts after image update chore(docker): remove tmp volume mounts after image update Mar 22, 2026
@imbajin imbajin merged commit 8d758d5 into apache:master Mar 22, 2026
17 checks passed
@bitflicker64
Copy link
Contributor Author

THX, the latest images in DockerHub already updated: (Also updated the introduction info)
https://github.com/hugegraph/actions/actions/runs/23381352130 (Building/Validate Process)

Thanks for the update!!

@imbajin imbajin added this to the 1.8.0 milestone Mar 22, 2026
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