{"id":13567673,"url":"https://github.com/codespaces-io/codespaces","last_synced_at":"2026-01-17T00:56:35.098Z","repository":{"id":40595183,"uuid":"82297094","full_name":"codespaces-io/codespaces","owner":"codespaces-io","description":"Devops Workspaces in a Box","archived":false,"fork":false,"pushed_at":"2023-02-06T01:18:41.000Z","size":5021,"stargazers_count":236,"open_issues_count":33,"forks_count":194,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-08-01T13:38:34.385Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://codespaces-io.github.io/codespaces/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codespaces-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-2.0.txt","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-02-17T12:52:01.000Z","updated_at":"2024-05-09T16:22:24.000Z","dependencies_parsed_at":"2023-02-14T09:47:03.041Z","dependency_job_id":null,"html_url":"https://github.com/codespaces-io/codespaces","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codespaces-io%2Fcodespaces","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codespaces-io%2Fcodespaces/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codespaces-io%2Fcodespaces/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codespaces-io%2Fcodespaces/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codespaces-io","download_url":"https://codeload.github.com/codespaces-io/codespaces/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223083086,"owners_count":17084818,"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":[],"created_at":"2024-08-01T13:02:38.749Z","updated_at":"2026-01-17T00:56:35.078Z","avatar_url":"https://github.com/codespaces-io.png","language":"Shell","readme":"# Codespaces\r\n\r\n## How do you use Codespaces IDE in your machine?\r\n\r\n### Docker Installation\r\nWe assume that you have installed Docker-Engine and Docker-Compose in your machine. If not, please follow the below mentioned references to get started with Docker and Docker-Compose.\r\n  * [Docker-Engine Installation Tutorial](https://docs.docker.com/engine/installation/)\r\n  * [Docker-Compose Installation Tutorial](https://docs.docker.com/compose/install/)\r\n\r\n### Start Codespaces IDE\r\n\r\nAfter installing Docker-Engine and Docker-Compose, change directory into the corresponding tool you want to learn. For example, let us assume that you want to learn puppet. In that case,\r\n\r\n```\r\ncd cs-xxx\r\n```\r\nwhere xxx is the codespace you are setting up. \r\n\r\ne.g. \r\n\r\n```\r\ncd cs-ansible\r\ncd cs-chef-ci \r\ncd cs-puppet-ci\r\n```\r\n\r\nThen all you need to do is to run\r\n\r\n```\r\ndocker-compose up -d\r\n```\r\n\r\nThis single command will initialize your Codespaces IDE.\r\n\r\n### Use Codespaces IDE\r\n\r\nTo use Codespaces IDE,\r\n\r\n  * Open your browser.\r\n  * Visit your machine's IP with port 8000. (Ex. http://192.168.0.60:8080)\r\n  * You will be asked for your e-mail address. Enter it and you are good to go.\r\n\r\n![Email](images/email.jpg)\r\n\r\n  * Now you will be presented with the Codespaces IDE console.\r\n\r\n![Landing](images/landing.jpg)\r\n\r\n\r\n\r\n### Resetting a Node \r\n\r\nSince this is a docker based environment, its easy to rest a node. To do that, follow this process, \r\n\r\n * Find out the name of the node from **docker-compose.yml**\r\n\r\n\r\ne.g\r\n\r\n```\r\n  control:\r\n    image: codespaces/ansible-control:v0.4.0\r\n    ports:\r\n      - \"8000:8000\"\r\n    volumes:\r\n      - ./code:/workspace\r\n    networks:\r\n      custom:\r\n        ipv4_address: 192.168.61.10\r\n    dns: 8.8.8.8\r\n    domainname: codespaces.io\r\n    hostname: control\r\n    restart: always\r\n  lb:\r\n    image: codespaces/ansible-node-centos-6:v0.3.6\r\n    ports:\r\n       - \"80:80\"\r\n    networks:\r\n      custom:\r\n        ipv4_address: 192.168.61.11\r\n    dns: 8.8.8.8\r\n    domainname: codespaces.io\r\n    hostname: lb\r\n    restart: always\r\n```\r\n\r\nIn the above snippet of node, there are two nodes viz **control** and **lb**\r\n\r\nYou could alternately use the following command to find the node name \r\n\r\n```\r\ndocker-compose ps\r\n```\r\n\r\n  * Once you decide which node you are resetting, run the following command to redo it. I am taking an example of a node by name **lb**\r\n  \r\ne.g.  \r\n```\r\ndocker-compose stop lb \r\ndocker-compose rm lb \r\ndocker-compose up -d lb \r\n```\r\n\r\nReplace the name of actual node with lb.  That should help you redo the node. \r\n","funding_links":[],"categories":["HarmonyOS","Shell","DevOps"],"sub_categories":["Windows Manager","Data Management"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodespaces-io%2Fcodespaces","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodespaces-io%2Fcodespaces","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodespaces-io%2Fcodespaces/lists"}