Last active
June 17, 2024 23:52
-
-
Save bshaffer/7d44edf96945150bf023a6735ab52a65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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