You are browsing a read-only backup copy of Wikitech. The primary site can be found at


From Wikitech-static
< User:BryanDavis
Revision as of 23:13, 17 September 2020 by imported>BryanDavis (Created page with "Fun with '''Docker'''! == Run `gbp dch` == See also: {{Codesample|lang=shell-session|scheme=light|code= $ docker pull opxhub/gbp:bust...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Fun with Docker!

Run `gbp dch`

See also:

$ docker pull opxhub/gbp:buster
$ docker run -it --rm \
  --name=${USER}-gbp-$(basename $(pwd)) \
  --hostname=buster \
  -v "$(pwd):/mnt" \
  -v "$HOME/.gitconfig:/etc/skel/.gitconfig:ro" \
  -v "$HOME/.gitconfig.user:/etc/skel/.gitconfig.user:ro" \
  -e UID=$(id -u) -e GID=$(id -g) \
  opxhub/gbp:buster \
  bash -c 'gbp dch --git-author --id-length=7'