If a container starts up with CMD or ENTRYPOINT, will that CMD or ENTRYPOINT run in the background or another shell while the pipeline script is running?
More specifically:
I have a Dockerfile that ends like this:
CMD /cmd.sh
I want to use the container built from this Dockerfile as an environment to run my pipeline script in.
Will my CMD run in the background or another shell as my pipeline is running?
I don't want it to -- I just want to run the pipeline script.
But I need to know if I need to update the CMD script so that it won't run when the pipeline starts.
What I've Tried
I've looked for details in the official documentation on the subject and listed processes as a step in the pipeline.
Thanks.