fix(README): usage

This commit is contained in:
Markus Pesch 2019-11-12 20:16:46 +01:00
parent 691239f706
commit f0fa50af90
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -5,24 +5,21 @@
[![GoDoc Reference](https://godoc.org/github.com/volker-raschek/docker-hub-description-updater?status.svg)](http://godoc.org/github.com/volker-raschek/docker-hub-description-updater) [![GoDoc Reference](https://godoc.org/github.com/volker-raschek/docker-hub-description-updater?status.svg)](http://godoc.org/github.com/volker-raschek/docker-hub-description-updater)
[![Docker Pulls](https://img.shields.io/docker/pulls/volkerraschek/dhdu)](https://hub.docker.com/r/volkerraschek/dhdu) [![Docker Pulls](https://img.shields.io/docker/pulls/volkerraschek/dhdu)](https://hub.docker.com/r/volkerraschek/dhdu)
By specifying the login data for hub.docker.com you can update the short and By specifying the login data for [hub.docker.com](https://hub.docker.com) you
long description of a docker repository. can update the short and long description of a docker repository.
## Usage ## Usage
Several options are available to update the descriptions. Either based on The examples below describe two ways to update the full description of the
Markdown files or as a normal string, which is passed as argument when calling. docker hub repository. First by the binary and second by a container based way.
The examples below describe two ways, the binary and container based way.
### Example 1: Update full description of the repository with a Markdown file
```bash ```bash
dhdu \ dhdu \
-user=<username> \ --user=<username> \
-password=<password> \ --password=<password> \
-namespace=<namespace> \ --namespace=<namespace> \
-repository=<repository> \ --repository=<repository> \
-full-description-file=./README.md --file=./README.md
``` ```
```bash ```bash
@ -30,33 +27,11 @@ docker run \
--rm \ --rm \
--volume $(pwd):/workspace \ --volume $(pwd):/workspace \
volkerraschek/dhdu \ volkerraschek/dhdu \
-user=<username> \ --user=<username> \
-password=<password> \ --password=<password> \
-namespace=<namespace> \ --namespace=<namespace> \
-repository=<repository> \ --repository=<repository> \
-full-description-file=./README.md --file=./README.md
```
### Example 2: Update full description of the repository over an argument
```bash
dhdu -user=<username> \
-password=<password> \
-namespace=<namespace> \
-repository=<repository> \
-full-description="My awesome description"
```
```bash
docker run \
--rm \
--volume $(pwd):/workspace \
volkerraschek/dhdu \
-user=<username> \
-password=<password> \
-namespace=<namespace> \
-repository=<repository> \
-full-description="My awesome description"
``` ```
## Compiling the source code ## Compiling the source code