Skip to content

Instantly share code, notes, and snippets.

@bshaffer
Created April 28, 2023 19:50
Show Gist options
  • Save bshaffer/7d44edf96945150bf023a6735ab52a65 to your computer and use it in GitHub Desktop.
Save bshaffer/7d44edf96945150bf023a6735ab52a65 to your computer and use it in GitHub Desktop.
#!/bin/bash
IMAGE="gcr.io/cloud-devrel-public-resources/owlbot-php:latest"
COMMON_PROTOS_PHP=~/Code/common-protos-php
GOOGLEAPIS_GEN=~/Code/googleapis-gen
docker run --rm --user $(id -u):$(id -g) \
-v $COMMON_PROTOS_PHP:/repo -v $GOOGLEAPIS_GEN:/googleapis-gen -w /repo \
--env HOME=/tmp \
gcr.io/cloud-devrel-public-resources/owlbot-cli:latest copy-code \
--source-repo=/googleapis-gen \
docker run --rm --user $(id -u):$(id -g) \
-v $COMMON_PROTOS_PHP:/repo \
-v $GOOGLEAPIS_GEN/bazel-bin:/bazel-bin \
gcr.io/cloud-devrel-public-resources/owlbot-cli:latest copy-bazel-bin \
--source-dir /bazel-bin --dest /repo
docker pull $IMAGE
docker run --user $(id -u):$(id -g) --rm -v $(pwd):/repo -w /repo $IMAGE
# To run local synthtool instead
#python3 -m synthtool.languages.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment