Closed dapobelieve closed 4 years ago
@dapobelieve in what context? Is that an error from the binary or the os when trying to run it? Please paste the command you were trying to run
From my docker container @terev
This is my simple dockerfile and I still get CompileDaemon: not found
when i run dockercompose
@dapobelieve you specified the entrypoint as CompileDaemon which overrides the default entrypoint which is usually a shell with PATH set. if you changed your entrypoint to
ENTRYPOINT ["/go/bin/CompileDaemon", ...]
it should work. it would also work in the syntax you originally used as long as the full binary path is there
Ok I'll try that
Still doesn't work. How are other users able to use it? I just don't get it at all
@dapobelieve go get installs into GOPATH . whatever GOPATH is in your base image is where it'll be installed. it could be a different dir than /go/bin
@dapobelieve what base image are you using in your FROM ?
Thanks @terev finally set it up properly had to do alot of reading
@dapobelieve np . glad you got it working eventually
Gracias @terev finalmente lo configuró correctamente tuve que leer mucho
Y como lo resolviste? me está pasando lo mismo. Gracias
@feuangel your entrypoint needs to reference the absolute path to the executable. Or if the base image you're building off of has a shell as the entrypoint and GOPATH/bin is in PATH you should be able to specify CMD ["CompileDaemon", ...]
instead overriding the entrypoint
hi @dapobelieve, I encounter the same issue, could you share your solution, thanks
@PhuSanh there is no general solution to this as it depends on your Dockerfile. Can you share it?
@githubnemo how do I find what is the gopath for my base image?
In my case I getting error on golang:1.18.2-alpine3.15 image
Downgrade to golang:1.16.0-alpine3.13 works for me
Try it
Rather than downgrading (we're on 1.18), switching the installation method to go install -mod=mod github.com/githubnemo/CompileDaemon
worked for me!
Rather than downgrading (we're on 1.18), switching the installation method to
go install -mod=mod github.com/githubnemo/CompileDaemon
worked for me!
This worked for me
go install -mod=mod github.com/githubnemo/CompileDaemon
Worked for me also. Thanks man!
go install -mod=mod github.com/githubnemo/CompileDaemo
Worked. Thank you
I get the error "CompileDaemon: not found" and I don't understand why I'm getting such error