Sign inSign up

glorpen/hub-metadata

By glorpen

•Updated over 7 years ago

Updates repository description on Docker Hub / Docker Cloud.

Image
0

412

glorpen/hub-metadata repository overview

⁠Docker Hub Metadata

Updates repository description on Docker Hub / Docker Cloud.

⁠Official repositories

GitHub: https://github.com/glorpen/docker-hub-metadata⁠

BitBucket: https://bitbucket.org/glorpen/docker-hub-metadata⁠

Docker Hub: https://hub.docker.com/r/glorpen/hub-metadata⁠

⁠Why?

  • no api keys available on cloud.docker.com (removed, not sure why)
  • don't want copy & paste code between projects
  • no templating support on Docker Hub side so in some cases no autobuild
  • could use Docker Hub hooks but then it becomes like second CI to Travis

⁠Features

This container is not meant to implement full available Docker Cloud API but just enough to don't think about it when using CI deployment.

Also, if needed, pandoc is used to convert your favourite readme markup to Markdown.

⁠Usage

docker run --rm glorpen/hub-metadata --help:

usage: docker-hub-metadata [-h] [--repository NAME] [--username USER]
                           [--password PASS] [--description DESC]
                           [--long-description-file LONG_DESC]
                           [--print-only]

Converts and sets repository description on Docker Hub.

optional arguments:
  -h, --help            show this help message and exit
  --repository NAME, -r NAME
                        repository name, eg. glorpen/hub-metadata
  --username USER, -u USER
  --password PASS, -p PASS
  --description DESC, -d DESC
  --long-description-file LONG_DESC, -l LONG_DESC
                        file with text to convert and send
  --print-only          generate and print text, do not send it to Docker Hub

Use "--" to add arguments to pandoc process, eg. changing output to 10 columns
wide: docker-hub-metadata -l README.rst -- --columns 10
⁠Environment variables

Env vars correspond to app commandline arguments:

  • REPOSITORY
  • USERNAME
  • PASSWORD
  • DESCRIPTION
  • LONG_DESCRIPTION_FILE
⁠Examples

This repo - see .travis.yml.

Tag summary

Content type

Image

Digest

Size

44.5 MB

Last updated

over 7 years ago

docker pull glorpen/hub-metadata