Jump to content

User:BryanDavis/Docker

From Wikitech
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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'