Docker image for Google Copybara.
Google Copybara moves code between repositories. This image ships the prebuilt weekly snapshot jar, as upstream recommends.
v20260921 (weekly snapshot)COPYBARA_* environment variables as the upstream Docker wrappercopybara migrate copy.bara.sky; your config file must be inside /usr/src/app# 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
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
| 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.
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
See how to contribute to this package. Consider to support f3l1x. Thank you for using this package.
Content type
Image
Digest
sha256:16a4a66a2…
Size
184.2 MB
Last updated
2 days ago
docker pull dockette/copybaraPulls:
51
Last week