Last active
April 6, 2023 20:06
-
-
Save bshaffer/7269b5bfdfc4b4d73174f3e6f430a271 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