Docker image for Google Copybara. Uses upstream weekly snapshot releases and keeps the default Docker workflow simple.
docker run --rm -it \
-v "$(pwd)":/usr/src/app \
dockette/copybara:latestThis runs the default command:
copybara migrate copy.bara.skyJava 21, Copybara, git, Mercurial, Quilt, OpenSSH client, buildifier, buildozer.
Run Copybara directly with your own arguments:
docker run --rm -it \
-v "$(pwd)":/usr/src/app \
dockette/copybara:latest validate copy.bara.skyThe image supports the same COPYBARA_* environment variables as the upstream Docker wrapper.
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:latestSupported variables:
COPYBARA_SUBCOMMANDCOPYBARA_CONFIGCOPYBARA_WORKFLOWCOPYBARA_SOURCEREFCOPYBARA_OPTIONS
If your 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- The image follows upstream guidance and ships the prebuilt weekly snapshot jar.
- Copybara expects your config file, such as
copy.bara.sky, to be available inside/usr/src/app. - Snapshot versions can be updated by changing
COPYBARA_VERSIONandCOPYBARA_SHA256inlatest/Dockerfile.
See how to contribute to this package.
Consider to support f3l1x. Also thank you for using this package.