Does anyone have any links on how I manage running commands from a ruby container, to a mysql container, all in one stack, during deploy?
the commands I need to run are along these lines
I can’t work out where to put those types of commands.
If I put them into the Dockerfile for the ruby image, then if the database image isn’t up, they will fail.
Do these sorts of commands go into docker-cloud.yml, or do I need to call a .sh script in my Dockerfile to do them, after waiting for a connection from the DB to get setup?
I’m kind of talking about post deploy hooks I suppose.
Any tips or links greatly appreciated.