-
Notifications
You must be signed in to change notification settings - Fork 7.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
./gradlew: not found local cluster deployment #1347
Comments
Thanks @anasj25 for reporting this issue! Just to confirm, could you clarify which command you are running please? For example, is it Are you on Linux, MacOS or Windows? I just tested
Also, could you confirm that you have the latest version of Online Boutique? Thanks for providing more context and information to help us diagnosing this issue. Note: JFYI: I see that we had in the past couple of issues related to this one with Minikube disk allocation or because on Windows: https://github.com/GoogleCloudPlatform/microservices-demo/issues?q=is%3Aissue+gradlew+is%3Aclosed. |
Hi Mathieu, |
Hey @anasj25,
|
i have the same problem on Windows 11 with Minkube
Error with skaffold run:
Error with docker build:
|
Hello again, I was able to fix it by going into VS Code and manually setting the end of line sequence as LF instead of CRLF for the following files:
I'm not sure if all 3 are required to fix the bug but I tried these 3 together at first and it worked. You can change the end of line sequence in VS Code by opening the Command Palette (Ctrl+Shift+P) and selecting Change End of Line Sequence and setting it to LF. |
@NimJay , can you please have a look. |
@marcghanime thank you for not only reporting your issue, but also finding and sharing a fix! 👏 I have created pull-request 1806 to fix the issue (i.e., convert existing If possible, could you please:
and let me know if you are able to successfully build the
|
Hey @NimJay, I have tried to build the service with your changes but it still fails. I also found out that only the It also might be that git on windows automatically changes all the files to CRLF as explained here. |
Thanks once again, @marcghanime! That info helps.
|
Step 4/18 : COPY gradle gradle
---> ca2a614ce472
Step 5/18 : RUN chmod +x gradlew
---> Running in 4cfbc82c2da9
Removing intermediate container 4cfbc82c2da9
---> 4ab32a37dc28
Step 6/18 : RUN ./gradlew downloadRepos
---> Running in 374228cb6f66
/bin/sh: 1: ./gradlew: not found
The command '/bin/sh -c ./gradlew downloadRepos' returned a non-zero code: 127
The text was updated successfully, but these errors were encountered: