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

User:BryanDavis/Docker

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: https://github.com/opx-infra/gbp-docker {{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: https://github.com/opx-infra/gbp-docker

$ 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'