chore: update hermetic build docker volume usage by diegomarquezp · Pull Request #10770 · googleapis/google-cloud-java · GitHub
Skip to content

chore: update hermetic build docker volume usage#10770

Closed
diegomarquezp wants to merge 14 commits into
mainfrom
update-library-generation-docker-volume-usage
Closed

chore: update hermetic build docker volume usage#10770
diegomarquezp wants to merge 14 commits into
mainfrom
update-library-generation-docker-volume-usage

Conversation

@diegomarquezp

@diegomarquezp diegomarquezp commented May 1, 2024

Copy link
Copy Markdown
Contributor

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.

@diegomarquezp diegomarquezp requested a review from a team May 1, 2024 17:36
@diegomarquezp diegomarquezp marked this pull request as draft May 1, 2024 17:42
@diegomarquezp

Copy link
Copy Markdown
Contributor Author

@diegomarquezp

Copy link
Copy Markdown
Contributor Author

From https://github.com/googleapis/google-cloud-java/actions/runs/8913106957/job/24477945575?pr=10770

docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "--baseline-generation-config-path=/workspace/baseline_generation_config.yaml": stat --baseline-generation-config-path=/workspace/baseline_generation_config.yaml: no such file or directory: unknown.

This is because 2.39.0 has a different interface. We need to wait until 2.40 is released to perform this change

@diegomarquezp diegomarquezp added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label May 1, 2024
@diegomarquezp diegomarquezp marked this pull request as ready for review May 1, 2024 18:20
--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 \

Copy link
Copy Markdown
Contributor

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)" \

Copy link
Copy Markdown
Contributor

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?

Copy link
Copy Markdown
Contributor Author

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

@JoeWang1127

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Indicates a pull request not ready for merge, due to either quality or timing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants