Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

post-deploy hook with curl does not work because curl is not available #761

Closed
dimitri-koenig opened this issue Apr 5, 2024 · 3 comments

Comments

@dimitri-koenig
Copy link

Hi guys

Somehow I get a curl: not found error with the basic post-deploy example. Seems like the base image of ruby does not contain curl, and the post-deploy hook is run from within the kamal image and not the host server.

My workaround right now is to extend the kamal image and install curl afterwards.

Is there another way to use curl in post-deploy hook? Or is this a bug?

@aishek
Copy link
Contributor

aishek commented Apr 16, 2024

In recent 1.4.0 shipped they wget support as well. So gem upgrade could be the solution

@dimitri-koenig
Copy link
Author

I'm not talking about curl/wget ON the server, but IN the kamal docker image. That's the current place where the post-deploy hook is executed.

@dhh
Copy link
Member

dhh commented May 14, 2024

Ensuring the tools required by your hooks are available in the image you're using is an exercise left to the programmer. Adding curl as a package as part of your Dockerfile is the correct solution.

@dhh dhh closed this as completed May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants