rancher-gitlab-deploy icon indicating copy to clipboard operation
rancher-gitlab-deploy copied to clipboard

Can you add "upgrade --replace-Command" ?

Open MichelDiz opened this issue 7 years ago • 0 comments

I would like to be able to dynamically change the container's commands.

Could be a "restart --container-new-command yarn build && Yarn tests" but for upgrade would be helpful.

upgrade --replace-Command 'yarn install && yarn build && yarn tests' then upgrade --replace-Command 'yarn start'

I still have not found anything that could do that. I'm doing a complex roundtrip by creating a container with Rancher CLI inside the Rancher and updating it via Gitlab CI/CD and then doing Rancher-compose up myfile.yml.

In case my yml files are triggered according to the context of the command I want to keep in the container. What I'm doing It works, but it's hard to maintain and teach how to use them.

Cheers

MichelDiz avatar Jan 10 '18 01:01 MichelDiz