progrium / entrykit

Entrypoint tools for elegant, programmable containers
443 stars 29 forks source link

`prehook` cannot find executable #17

Open joemcmahon opened 1 year ago

joemcmahon commented 1 year ago

[Originally posted by @Brescia717] Any chance you've tried using prehook? Running this in the Dockerfile:

ENTRYPOINT [ \
  "prehook", "ruby -v", "--", \
  "prehook", "/myapp/backend/prehook", "--"]

yields this error:

Error response from daemon: failed to create shim task: 
OCI runtime create failed: runc create failed: 
unable to start container process: 
exec: "prehook": executable file not found in $PATH: unknown

NOTE: /myapp/backend is the directory the application is in, in the docker container.