You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2021/08/16 20:49:32 UTC

[GitHub] [beam] youngoli commented on pull request #15336: redundant build

youngoli commented on pull request #15336:
URL: https://github.com/apache/beam/pull/15336#issuecomment-899808769


   This PR is fixing an issue that occurs when building a container with a clean docker cache. So if you follow these steps you can probably replicate it:
   
   1. Delete `sdks/java/container/build and sdks/java/container/java8/build`. (You might have to avoid some read-only directories, just delete everything else)
   2. Run `./gradlew -Pdocker-pull-licenses :sdks:java:container:java8:docker`. It should fail with a complaint about a missing third_party_license directory.
   3. Run the same command again. It should work this time.
   
   The specific error that it fails with is:
   ```
   Step 13/18 : ADD target/third_party_licenses /opt/apache/beam/third_party_licenses/
   [...]
   ADD failed: stat /var/lib/docker/tmp/docker-builder099525146/target/third_party_licenses: no such file or directory
   ```
   
   I can confirm that making this change fixes the issue on my machine at least.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org