When building my golang app (https://github.com/Bas-ProRail/resin-datacollector-edge) with gradle there is an error, " ./gradlew: not found".
[datacollector] Step 1/6 : FROM resin/iot2000-golang:latest
[datacollector] —> 07d5f0804451
[datacollector] Step 2/6 : ENV INITSYSTEM on
[datacollector] Using cache
[datacollector] —> f9a3449b44ea
[datacollector] Step 3/6 : COPY . $GOPATH/src/github.com/streamsets
[datacollector] —> a0d18d65f287
[datacollector] Removing intermediate container 9cb7c4995b47
[datacollector] Step 4/6 : RUN cd $GOPATH/src/github.com/streamsets
[datacollector] —> Running in 5bf4700a4860
[datacollector] —> f4e869f2669c
[datacollector] Removing intermediate container 5bf4700a4860
[datacollector] Step 5/6 : RUN ./gradlew build
[datacollector] —> Running in 8552d193a253
[datacollector] /bin/sh: 1: ./gradlew: not found
[datacollector]
[datacollector] Removing intermediate container 8552d193a253
[datacollector] The command ‘/bin/sh -c ./gradlew build’ returned a non-zero code: 127
Is there a way to check if the COPY command did copy something in $GOPATH/src/github.com/streamsets? It should copy all contents of /resin-datacollector-edge/datacollector-edge in $GOPATH/src/github.com/streamsets.
Thank you for your help, Bas