Giter VIP home page Giter VIP logo

Comments (3)

DovOps avatar DovOps commented on July 17, 2024

@rocketstack-matt may be able to troubleshoot here, as he created the docker config

from traderx.

rocketstack-matt avatar rocketstack-matt commented on July 17, 2024

I don't have a Win 10 machine to test on, but from a little research this may be caused by line endings in the gradle file when building in WSL.

@tomhealey-icma I'm assuming you're running in WSL? Can you please try the setting the following git config git config --global core.autocrlf input delete the local repo and re-clone, then try the docker build again.

from traderx.

rocketstack-matt avatar rocketstack-matt commented on July 17, 2024

I was able to replicate this issue with an Azure VM

Note

Win10 Pro running on a Standard E4s v3 (4 vcpus, 32 GiB memory)
git version 2.43.0.windows.1
java 21.0.2 2024-01-16 LTS

I cloned the traderx repo and ran docker compose up from the root, result was:

=> [position-service 3/4] COPY . . 0.9s
=> ERROR [position-service 4/4] RUN ./gradlew build 1.6s

[position-service 4/4] RUN ./gradlew build:
0.754 /bin/sh: 1: ./gradlew: not found


failed to solve: process "/bin/sh -c ./gradlew build" did not complete successfully: exit code: 127

I deleted the cloned repo and ran the command I suggested previously git config --global core.autocrlf input then re-cloned the repo and re-ran docker compose up. This worked to build all the images but the database container failed to start, unable to find run.sh. This was related to the execute permission having been lost, I have updated the Dockerfile in this PR for the database to explicitly chmod +x the script which then worked.

from traderx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.