Skip to content

Make Docker URL for fetching Templates flexible #1964

Closed

Description

@tarunwadhwa-paypay

Is your feature request related to a problem? Please describe.

My company uses a proxy for fetching docker images (which allows caching if needed). The endpoint for listing tags is different from docker hub endpoint. But since /tags is hardcoded here, I cannot simply set the DOCKER_HUB_URL value to use my custom proxy

Describe the solution you'd like

I will be open to raising a PR if you feel this can be added.
Proposed solution -
Create a template URL in env config. Something like -
- DOCKER_HUB_TEMPLATE_URL=https://hub.docker.com/v2/repositories/{repo_name}/tags
and code can simply format the repo_name in code

Although the original variable (DOCKER_HUB_URL) is not being used anywhere, hardcoding /tags in value might not keep code extensible, hence new variable altogether

Describe alternatives you've considered
Nothing possible as such since /tags will give 404 for our proxy

Activity

  1. mmabrouk commented on Mar 12, 2025

    @mmabrouk
    Member

    Sorry it took a bit long @tarunwadhwa-paypay

    We have modified our architecture not to need templates anymore. The code of the services is now part of the docker compose. The issue is resolved as a result

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions