Coder Social home page Coder Social logo

Comments (19)

ostenbom avatar ostenbom commented on June 11, 2024 47

Rather than downgrading (we're on 1.18), switching the installation method to go install -mod=mod github.com/githubnemo/CompileDaemon worked for me!

from compiledaemon.

WiRight avatar WiRight commented on June 11, 2024 3

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

from compiledaemon.

sumonbiswas2010 avatar sumonbiswas2010 commented on June 11, 2024 1

go install -mod=mod github.com/githubnemo/CompileDaemon

Worked for me also. Thanks man!

from compiledaemon.

terev avatar terev commented on June 11, 2024

@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 compiledaemon.

dapobelieve avatar dapobelieve commented on June 11, 2024

From my docker container @terev

from compiledaemon.

dapobelieve avatar dapobelieve commented on June 11, 2024

Screenshot 2020-02-23 at 4 25 04 PM

This is my simple dockerfile and I still get `CompileDaemon: not found` when i run dockercompose

from compiledaemon.

terev avatar terev commented on June 11, 2024

@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

from compiledaemon.

dapobelieve avatar dapobelieve commented on June 11, 2024

Ok I'll try that

from compiledaemon.

dapobelieve avatar dapobelieve commented on June 11, 2024

Still doesn't work. How are other users able to use it? I just don't get it at all

from compiledaemon.

terev avatar terev commented on June 11, 2024

@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

from compiledaemon.

terev avatar terev commented on June 11, 2024

@dapobelieve what base image are you using in your FROM ?

from compiledaemon.

dapobelieve avatar dapobelieve commented on June 11, 2024

Thanks @terev finally set it up properly had to do alot of reading

from compiledaemon.

terev avatar terev commented on June 11, 2024

@dapobelieve np . glad you got it working eventually

from compiledaemon.

 avatar commented on June 11, 2024

Gracias @terev finalmente lo configuró correctamente tuve que leer mucho

Y como lo resolviste?
me está pasando lo mismo.
Gracias

from compiledaemon.

terev avatar terev commented on June 11, 2024

@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

from compiledaemon.

SanhDoan avatar SanhDoan commented on June 11, 2024

hi @dapobelieve, I encounter the same issue, could you share your solution, thanks

from compiledaemon.

githubnemo avatar githubnemo commented on June 11, 2024

@PhuSanh there is no general solution to this as it depends on your Dockerfile. Can you share it?

from compiledaemon.

rituparnakhaund avatar rituparnakhaund commented on June 11, 2024

@githubnemo how do I find what is the gopath for my base image?

from compiledaemon.

Jatin-Kamboj avatar Jatin-Kamboj commented on June 11, 2024

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

from compiledaemon.

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.