This is a repository of Docker images for updating Docker Hub repository Readme and Description sections.
If configured in CI (continuous integration), Readme and Description sections can be updated automatically.
Run the container:
docker container run --rm \
--volume $PWD/README.md:/app/README.md \
--env DOCKERHUB_USERNAME=my-username \
--env DOCKERHUB_PASSWORD=my-secret \
--env DOCKERHUB_NAMESPACE=my-namespace \
--env DOCKERHUB_IMAGE=my-image-name \
daverona/docker-desc
REAME.md under the host current directory will be published to Readme section in Docker Hub DOCKERHUB_NAMESPACE/DOCKERHUB_IMAGE repository.
You should set the following environment variables:
DOCKERHUB_USERNAME: username to use for Docker HubDOCKERHUB_PASSWORD: password to use for Docker HubDOCKERHUB_NAMESPACE: namespace of the image in Docker Hub repositoryDOCKERHUB_IMAGE: image name (without tag) of Docker Hub repositoryThe content of README.md file can be passed directly using environment variable FULL_DESCRIPTION:
docker container run --rm \
--env FULL_DESCRIPTION="$(cat $PWD/README.md)" \
--env DOCKERHUB_USERNAME=my-username \
--env DOCKERHUB_PASSWORD=my-secret \
--env DOCKERHUB_NAMESPACE=my-namespace \
--env DOCKERHUB_IMAGE=my-image-name \
daverona/docker-desc
FULL_DESCRIPTION takes precedence over mounted README.md file if any.
The environment variable SHORT_DESCRIPTION can be used to update Description section in the repository.
Content type
Image
Digest
Size
13.6 MB
Last updated
about 6 years ago
docker pull daverona/docker-desc