I have a Dockerfile with a CMD, it calls a .sh file that runs a Django app( makemigrations, migrate and uwsgi )And that runs fine in a pod.
There's a django admin script that runs infinitely that I'd like to run in the same pod.
- Per the docker docs I can't have a second command in the Dockerfile
- Adding the script on the sh file wouldn't work because the both processes ( the app or command script ) are running and don't end so the second one never runs.
- If I go in the pod and run exec -it bash to manually run the script i can't leave the pod without killing the process (Ctrl-C) or can I?
Any suggestions?