-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: update hermetic build docker volume usage #10770
chore: update hermetic build docker volume usage #10770
Conversation
Confirmed locally that
|
This is because |
--target-library-names=<library_name if specified; otherwise api_shortname> | ||
docker run --rm -u $(id -u):$(id -g) -v $(pwd):/workspace --entrypoint \ | ||
python gcr.io/cloud-devrel-public-resources/java-library-generation:latest \ | ||
/src/generate_repo.py generate \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you change this command to use entry_point.py
because the cli in generate_repo.py
will be removed soon.
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
-e "RUNNING_IN_DOCKER=true" \ | ||
-e "REPO_BINDING_VOLUMES=-v ${repo_volumes}" \ | ||
-u "$(id -u):$(id -g)" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is the command enables us to modify/delete the docker generated files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, including ownership takeover performed by the container
Included in #10758 |
Follow up of googleapis/sdk-platform-java#2615
The way we use the docker image changed with that pull request. Here we adapt to those changes.