Skip to content

Why kamal is trying to run IRB on deploy? #1264

Answered by nickhammond
Thiteago asked this question in Q&A
Discussion options

You must be logged in to vote

Your Dockerfile doesn't contain a default CMD. The default CMD for the Ruby docker image is to run irb.

https://hub.docker.com/layers/library/ruby/3.3.6/images/sha256-00e5fb8ebe1724226352ad35ddb9a505531286a5a6add8ab003303e5dcb80706?context=explore

Your Dockerfile also doesn't reference your entrypoint script. Kamal doesn't read anything from docker-compose.yml but it does by default build from your Dockerfile.

You'll want something like this in your Dockerfile, this is basically the default that ships with Rails now. Your setup_app.sh is pretty similar to the default docker-entrypoint file.

ENTRYPOINT ["/rails/bin/docker-entrypoint"]

# Start the server by default, this can be overwritte…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Thiteago
Comment options

Answer selected by Thiteago
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants