-
Notifications
You must be signed in to change notification settings - Fork 204
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
Building the cuebot image is extremely long (24h) #1217
Comments
Typically the build process should take a few minutes if you're doing it from scratch, so there's definitely a problem here. I've seen this in my personal environment before, same issue with that Once I upgraded the base image to It seems possible you're having the same issue since you're on Windows. You could try playing around with the base image in that Dockerfile. Just some initial info to help you get started. We can dig into this more later. |
It eventually finished, but it took 86035 seconds (so that's 23 hours 53 minutes and 55 seconds) On the other side, I tested with my Linux at home and it took 3 minutes. That's a pretty big difference 😂 Thanks @bcipriano for your workaround, I'll try that right now and post the results here after. |
So the gradle image is already at I've also seen a difference, but I don't know gradle/java enough to know if it's an issue or not: when building on Windows, it fetches the modules through https://jcenter.bintray.com, but when building on Linux it uses a different domain https://repo.maven.apache.org. Is it normal? Edit: compilation started to fail when I reached |
I found a promising answer in StackOverflow: https://stackoverflow.com/a/36533928
But the issue is that I have no knowledge of gradle at all, so I tried to remove the |
Someone suggested me to pass the HTTP proxy config to gradle. I did set them in the Dockerfile, using the http_proxy, https_proxy (and the same ones in capital letters), but it seems that gradle doesn't check these environment variables and apparently we need to pass them through. I guess it's a matter of adding a few command line options... |
As this is not really an issue with OpenCue but more with gradle, I'll close this issue. Also, the solution is simply to not build the image locally and use the one already available on Docker Hub (i.e. a simple |
Describe the enhancement
Would there be a solution to improve build time?
Version Number
Freshly cloned yesterday (2022/11/09) from master, so I guess it's somewhere after v0.15.22.
Additional context
It's the first time I try OpenCue, I went to the quick start documentation and it is taking ages to build the cuebot image. I mean it's been almost 18 hours and it is still building.
The command taking so much time is this one:
RUN gradle build --info --stacktrace
Am I doing something wrong here?
Note: I'm on Windows, but I guess since everything runs in Docker containers, it should not be a problem here.
The text was updated successfully, but these errors were encountered: