Sign inSign up
copybara logo

dockette/copybara

Sponsored OSS

By dockette

•Updated 2 days ago

🐳 Google Copybara

Image
0

10K+

dockette/copybara repository overview

⁠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

VersionRelease
dockette/copybara:v20260921-YYYY.MM.DDrelease YYYY.MM.DD; pin this one
dockette/copybara:v20260921latest release
dockette/copybara:YYYY.MM.DDrelease YYYY.MM.DD
dockette/copybara:latestlatest 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.

Tag summary

Content type

Image

Digest

sha256:16a4a66a2…

Size

184.2 MB

Last updated

2 days ago

docker pull dockette/copybara

This week's pulls

Pulls:

51

Last week