Comments (6)
I have run into the same problem. It is because in the NativeDockerClient, when it executes the docker command it does a waitFor() on the process. If the docker build process generates a lot of output to standard out or standard err, then it will eventually fill a buffer of the executing process and the process will block indefinitely while trying to write to the stream. Whenever processes are executed, you have to consume the standard out and standard err or ensure that there is little to no output in there.
from gradle-docker.
So the solution is to NOT use this task but instead fall back to using exec? @petehayes maybe we should put together a PR to solve the issue? I'm not sure how active this project is anymore judging from lack of commits going in
from gradle-docker.
Yes, I was going to give that a shot at some point to fix this and issue a pull request.
from gradle-docker.
Hi, what is the status of this issue?
From my understanding this issue is, in many cases, a blocker for using the plugin on Windows?
(never seen the problem on OS X)
See for example a discussion on the subject in the following blog post: http://callistaenterprise.se/blogg/teknik/2015/06/08/building-microservices-part-4-dockerize-your-microservices/
Regards,
Magnus.
from gradle-docker.
In our case, we decided to move to the other gradle docker plugin so I won't be contributing a patch.
from gradle-docker.
Ok, thanks for the update. I just realised that it already exists a pull request that seems to solve the issue so I'll post a comment there as well.
from gradle-docker.
Related Issues (20)
- DockerTasks should use registry from DockerPluginExtension HOT 1
- Use the installation directory as the default working directory HOT 1
- Cannot find switchUser in DockerTask HOT 1
- Require docker login when push=true HOT 4
- Release a new version HOT 1
- Exposing UDP port HOT 3
- Provide option to Dockerfile name equivalent
- Unable to use docker registry HOT 2
- is this plugin not in the official gradle plugin repo? HOT 2
- passing project version info from gradle to external Dockerfile HOT 1
- Can you also add base images for openjdk 10 and openjdk 11 HOT 3
- springboot2打包后tar包大小是原始包大小的2倍 HOT 1
- Building Docker Image with Gradle fails with “COPY failed: no source files were specified” HOT 2
- Roadmap HOT 7
- How to pass docker build arguments to Dockerfile through gradle command line HOT 3
- How to update build jars to a gradle task & external Dockerfile dynamically HOT 1
- Slight error in the readme
- EntryPoint HOT 1
- Gradle 7 - Missing Annotation DockerTask HOT 4
- Email : EOF buildDocker failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-docker.