Skip to content
dockettePublic

About

🐳 Google Copybara

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockette / Copybara

GitHub Actions Docker Hub pulls GitHub Sponsors Support/Discussions

Docker image for Google Copybara.


Google Copybara moves code between repositories. This image ships the prebuilt weekly snapshot jar, as upstream recommends.

Features

  • Copybara v20260921 (weekly snapshot)
  • Java 25, git, Mercurial, Quilt, OpenSSH client, buildifier, buildozer
  • Same COPYBARA_* environment variables as the upstream Docker wrapper
  • Default command is copybara migrate copy.bara.sky; your config file must be inside /usr/src/app

Usage

# Run the default command
docker run --rm -it -v "$(pwd)":/usr/src/app dockette/copybara:latest

# Run Copybara with your own arguments
docker run --rm -it -v "$(pwd)":/usr/src/app dockette/copybara:latest validate copy.bara.sky

# Or use environment variables
docker run --rm -it \
  -e COPYBARA_SUBCOMMAND=validate \
  -e COPYBARA_CONFIG=copy.bara.sky \
  -e COPYBARA_WORKFLOW=default \
  -v "$(pwd)":/usr/src/app \
  dockette/copybara:latest

Configuration

Supported variables: COPYBARA_SUBCOMMAND, COPYBARA_CONFIG, COPYBARA_WORKFLOW, COPYBARA_SOURCEREF, COPYBARA_OPTIONS.

If the origin or destination uses SSH, mount your git config, SSH directory and SSH agent socket:

docker run --rm -it \
  -v ~/.gitconfig:/root/.gitconfig:ro \
  -v ~/.ssh:/root/.ssh \
  -v ${SSH_AUTH_SOCK}:${SSH_AUTH_SOCK} \
  -e SSH_AUTH_SOCK=${SSH_AUTH_SOCK} \
  -v "$(pwd)":/usr/src/app \
  dockette/copybara:latest

Versions

Version Release
dockette/copybara:v20260921-YYYY.MM.DD release YYYY.MM.DD; pin this one
dockette/copybara:v20260921 latest release
dockette/copybara:YYYY.MM.DD release YYYY.MM.DD
dockette/copybara:latest latest build of master

All versions ship Copybara v20260921. Releases are listed on GitHub. To upgrade Copybara, change COPYBARA_VERSION and COPYBARA_SHA256 in latest/Dockerfile and VERSION.

Development

make build          # build the image for linux/amd64 and linux/arm64
make test           # check Java and the default command
make run            # run Copybara on the current directory
make version        # print VERSION
make release        # set today's date in VERSION

Maintenance

See how to contribute to this package. Consider to support f3l1x. Thank you for using this package.

About

🐳 Google Copybara

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages