shia
shia copied to clipboard
Question
Hi first of all thank you for developing such a great tool.
I would like to know if this tool offers the possibility to exec into Rancher containers also, for example in my Gitlab CE CI pipeline I would like to run some commands against a Rancher container.
Is this possible using this tool?
Thanks (and sorry if here's isn't the right place to ask such questions)
Hi, I'll also push the changes we did in the last couple of months next week.
Regarding your question, it's not supported right now. put we could extend it to do so if the API supports it. I'll let you know next week.
ping @pangdudu
ping @pangdudu
Any update on the changes you was going to push?
Hey, sorry for the late response. We've switched from the rancher v1 api to v2-beta (to support secrets, etc.) and have to play back our changes to the rancher-api gem. We're planning to do this in the next 1-2 sprints.
Regarding the exec:
https://github.com/akurkin/rancher-api/blob/master/lib/rancher/api/models/instance.rb
supports this (I haven't used it yet) so it should be easy to use/add to shia. It's currently not planned though, I might look into rancher-cli for a quick fix:
https://docs.rancher.com/rancher/v1.2/en/cli/commands/
which is getting more powerful all the time. I think it's a good option if you just want to drop a command from within a gitlab-ci stage.
Let me know what you think.
@pangdudu I've tried to use that but the problem is that when you use the command you get a message back saying that the device isn't a TTY device, even I've explicitly said so when creating the Container on Rancher
@scornea For rancher specific questions you are probably better off asking directly in https://slack.rancher.io/