How to run scripts correctly according to the Google Cloud Run idea, commands like php artisan migrate
.
- It is incorrect to write this command in the Dockerfile, because this file was invented to build a container, instead of running code scripts.
⚠️ I know it’s possible, but inconsistent with the idea.. - There is no solutions to connect by SSH to running Cloud Run container (to run some commands).
- I used to think that Cloud Run Jobs would do the trick, but not.
The questions is, How should it be done according to the idea?
App need run some scripts after deployments, so maybe Cloud Run isn’t for this case?