I’ve been looking into the new rancher-cli
docs http://docs.rancher.com/rancher/v1.2/en/cli/ and can’t seem to find a way to upgrade a Service image without involving docker-compose.yml
.
This is quite an important feature, for example in a CI/CD pipeline I want to the following simple steps:
- Build a new docker image for Service A with tag: v10
- Upgrade Service A to use v10
- Finish the Upgrade
I can’t use rancher up
because that means I need to modify a docker-compose.yml, which I don’t want to do since my Continuous Deployment pipeline is triggered by a code modification.
It just seem very restrictive having to deal with a massive docker-compose.yml for a one line image version or environment variable upgrade. I avoided rancher-compose
for this very reason and resorted to using the Rancher REST API (see Upgrade Rancher Service using REST API) but now the rancher-cli
seem to be working exactly the same way as docker-compose
on this issue.
The best alternative I found was actually this: https://github.com/etlweather/gaucho which allows you to run ./services.py upgrade --imageUuid=imageName:tag --autoComplete
. Is it possible to incorporate some of these features into rancher-cli?