fangli / rancherssh

Native SSH Client for Rancher Containers, provided a powerful native terminal to manage your docker containers
Apache License 2.0
101 stars 12 forks source link

Can you dockerize this project? #7

Open MichelDiz opened 6 years ago

MichelDiz commented 6 years ago

I'm looking for a tool that I can send some.sh script to perform within a Rancher service triggered by a pipeline action(Via WebHook). Not even Rancher's CLI is succeeding. I tried others I found, but there are limitations. Or maybe I'm the limitation xD

Below would be just an idealization

|> WebHook Run myscrip.sh
    #!/bin/sh  
   run rancherssh -> Git clone something
   run rancherssh -> Install that
   run rancherssh -> clean all unnecessary things
|> logs
|> Finish

or as a service inside Rancher being run through upgrades containing each, one step.

|> WebHook Run myscrip.sh
    #!/bin/sh
   rancher up -d -s rancherssh --rancher-file /script1.yml --force-upgrade --confirm-upgrade
   rancher up -d -s rancherssh --rancher-file /script2.yml --force-upgrade --confirm-upgrade
   rancher up -d -s rancherssh --rancher-file /script3.yml --force-upgrade --confirm-upgrade
 |> Kill the Service or let it "Started-Once". 

Cheers