shia icon indicating copy to clipboard operation
shia copied to clipboard

Question

Open ghost opened this issue 8 years ago • 6 comments

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)

ghost avatar Feb 04 '17 11:02 ghost

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.

pangdudu avatar Feb 08 '17 16:02 pangdudu

ping @pangdudu

floriank avatar Feb 16 '17 09:02 floriank

ping @pangdudu

Any update on the changes you was going to push?

ed11s8c avatar Apr 13 '17 19:04 ed11s8c

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 avatar Apr 19 '17 11:04 pangdudu

@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

ghost avatar Apr 21 '17 08:04 ghost

@scornea For rancher specific questions you are probably better off asking directly in https://slack.rancher.io/

outsmartin avatar Aug 11 '17 09:08 outsmartin