Jump to content

User:BryanDavis/Docker

From Wikitech

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'