{"id":21903589,"url":"https://github.com/graboskyc/basiccloudshellrobot","last_synced_at":"2025-03-22T06:33:01.664Z","repository":{"id":146291419,"uuid":"84319419","full_name":"graboskyc/BasicCloudShellRobot","owner":"graboskyc","description":"Sample implementation of custom execution server to power Robot for Quali CloudShell","archived":false,"fork":false,"pushed_at":"2017-04-05T12:50:13.000Z","size":3750,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T10:53:30.509Z","etag":null,"topics":["cloudshell","robot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/graboskyc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-08T12:47:01.000Z","updated_at":"2017-05-06T20:24:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"30484e34-08f0-4632-a5eb-c9ccf56fc636","html_url":"https://github.com/graboskyc/BasicCloudShellRobot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graboskyc%2FBasicCloudShellRobot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graboskyc%2FBasicCloudShellRobot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graboskyc%2FBasicCloudShellRobot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graboskyc%2FBasicCloudShellRobot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graboskyc","download_url":"https://codeload.github.com/graboskyc/BasicCloudShellRobot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244918500,"owners_count":20531682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudshell","robot"],"created_at":"2024-11-28T15:28:30.604Z","updated_at":"2025-03-22T06:33:01.633Z","avatar_url":"https://github.com/graboskyc.png","language":"Python","readme":"# BasicCloudShellRobot\nThis is a repository with a proof-of-concept easy implementation of calling Robot Tests (Python Robot Framework) from Quali CloudShell SnQ. [Sample screenshots in this pptx](Images/CloudShellRobot.pptx)\n\n# Setup\n* Deploy a linux VM (Ubuntu)\n* In CloudShell, Add a new Custom Execution Server Type of `Robot` (Job Scheduler -\u003e Edit Execution Server Types -\u003e Add)\n* On that VM, start the docker container based on the Dockerfile \n* Note that you may need to modify the config.json... I'm working on that\n* Create a Blueprint with a single resource with the resource script HelloWorld.py attached. [A sample one is provided](CSScripts/RobotExampleBlueprint.zip)\n* Create a job suite for Robot using the above blueprint. Valid tests should be as follows:\n\n![](Images/SnQSS.PNG)\n\n![](Images/ss2.PNG)\n\n# Deploying docker container\n## From source\n* `docker build -t gskyqsrobot`\n* `docker run -t -i -d -p 2222:22 --name qsrobot gskyqsrobot `\n\n## From Dockerhub\n* `docker run -t -i -d -p 2222:22 --name qsrobot graboskyc/qualicsrobot `\n\n# Modifications\nNote that the default config.json has the IP you need. You likely need to modify it:\n* SSH to that ubuntu box\n* `ssh -l qualisystems localhost -p 2222` and password is `Password1` or `docker ps` and identify container ID, then `docker exec -u 0 -it {cntrid} bash`\n* You should be /opt/BasicCloudShellRobot\n* `cd CES`\n* `vi config.json` and change the IP address there and save \n* rerun the register routine: `python ces.py register`\n* run the actual Custom Execution Server `python ces.py` and you probably want to nohup that... \n\n## Persistant Modifications\n* Run `docker run -i -t -d --name qsrobot -v /root/qsrobot:/opt/BasicCloudShellRobot graboskyc/qualicsrobot`\n* `docker ps` and find the running container for qsrobot and stop it using `docker stop {containerid}`\n* Run `mkdir /root/qsrobot;cd /root/qsrobot; git clone https://github.com/graboskyc/BasicCloudShellRobot.git .`\n* Modify the /root/qsrobot/CES/config.json\n* Run `docker start {containerid}`","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraboskyc%2Fbasiccloudshellrobot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraboskyc%2Fbasiccloudshellrobot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraboskyc%2Fbasiccloudshellrobot/lists"}