question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build issues - gradlew build - SubWorkflowParamsTest fails, docker build cant find ./gradlew

See original GitHub issue

Having multiple issues with building master branch of Conductor using Windows 10/Gitbash. Just did a clone of the master branch. From the conductor root did a ./gradlew build and it failed on the SubWorkflowParamsTest:

com.netflix.conductor.common.workflow.SubWorkflowParamsTest > testWorkflowDefJson FAILED
    org.junit.ComparisonFailure at SubWorkflowParamsTest.java:119

Then I tried to do a docker build from the docker directory with ‘docker build -t conductor:server ./server’ and got this:

 ---> b2b927953ec5
Step 5/16 : RUN ./gradlew build -x test
 ---> Running in c49714c655e0
/bin/sh: 1: ./gradlew: not found
The command '/bin/sh -c ./gradlew build -x test' returned a non-zero code: 127

Gist link for the full log: https://gist.github.com/rickfish/fc0961a7fb681a7b5455987f934536eb

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
slipmpcommented, Aug 13, 2020

Let me disclose steps I’ve executed, which is explained on my first reference.

  1. Delete your current conductor folder
  2. Run git config --global core.autocrlf false; or simply make sure it is already set if you ran in the past
  3. Clone conductor repo again
  4. Check if end of lines shows as CRLF via NotePad++ by opening a DockerFile, e.g. => conductor/docker/server/DockerFile
  5. Run docker-compose up on conductor/docker

You didn’t make clear if Repo was cloned again, although you mentioned you saw CRLF… Well I hope that is the difference, otherwise I won’t know what is happening on your case @rickfish .

1reaction
slipmpcommented, Aug 13, 2020

Nice, it seems I’ve inverted screenshots then. I am glad this is solved for you @rickfish

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't run gradle wrapper with docker build - Stack Overflow
The Gradle wrapper gradlew is a shell script, and if shell scripts get copied in with DOS line endings, you could get a...
Read more >
Image-building best practices - Docker Documentation
Tips for building the images for our application. ... Use the docker image history command to see the layers in the getting-started image...
Read more >
Topical Guide | Spring Boot Docker
In this guide, we aim to show you some of the choices you can make if you are faced with the prospect of...
Read more >
Developing Locally | Airbyte Documentation
gradlew build creates all the necessary artifacts (Webapp, Jars and Docker images) so that you can run Airbyte locally. Since this builds everything, ......
Read more >
Gitlab-ci for gradle 7.3.3
I am trying to create ci/cd pipeline as well with gitlab-ci.yml ... gradlew clean build -x test artifacts: paths: - build/libs/*.jar ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found