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

User:BryanDavis/Docker

From Wikitech-static
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'