dokku / dokku/github-action

Proposal: Add support for custom base image repository in the Dockerfile

Open
#86 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
194
Forks
34
PR merge metrics
No merged PRs in 30d

Description

Description of the problem
I have been encountering rate limit errors when pulling images from Docker Hub. To address this, I'm using a Harbor project as a cache. It would be helpful to modify the Dockerfile in the GitHub Action to allow customizing the base image repository.

Proposal
Modify the Dockerfile to allow the use of a custom repository for the FROM statement, like this:

ARG REPOSITORY FROM ${REPOSITORY}/dokku/ci-docker-image:0.13.0

Add a new optional parameter, REPOSITORY, to the GitHub Action.

  • If the REPOSITORY variable is provided, it should be used in the FROM statement.
  • If it’s empty, it should default to:

FROM dokku/ci-docker-image:0.13.0

Also add the credential configuration to access, in my case project cache in private harbor. As a temporary solution I have created a public project and with that I do not have an authentication error:

image

Expected Results

  • Users can configure the REPOSITORY in the GitHub Action inputs.
  • If the REPOSITORY is not set, the action should default to using dokku/ci-docker-image:0.13.0 from Docker Hub.

@josegonzalez i from Chile,

Regards
Saludos

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Dockerfile used by the GitHub Action and the action input/build entry point; no file paths or tests are named in the issue. Check how the current base image is selected and how registry credentials are configured. Done means an optional REPOSITORY input changes the base image, preserves the Docker Hub default when empty, and supports the requested private-registry authentication.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, github-actions, shell
Domain
build-system, ci-cd, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.