{"id":15707761,"url":"https://github.com/thenets/cli-in-container","last_synced_at":"2025-10-05T10:21:46.516Z","repository":{"id":87614302,"uuid":"598801379","full_name":"thenets/cli-in-container","owner":"thenets","description":"Example of a CLI that must exist only inside a container","archived":false,"fork":false,"pushed_at":"2023-02-07T20:47:19.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T21:46:55.613Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/thenets.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-02-07T20:46:14.000Z","updated_at":"2023-02-07T20:47:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"30e118a6-2168-4ad9-acb0-0678ce309e21","html_url":"https://github.com/thenets/cli-in-container","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/thenets%2Fcli-in-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenets%2Fcli-in-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenets%2Fcli-in-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thenets%2Fcli-in-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thenets","download_url":"https://codeload.github.com/thenets/cli-in-container/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239558934,"owners_count":19658934,"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-10-03T20:41:18.274Z","updated_at":"2025-10-05T10:21:46.427Z","avatar_url":"https://github.com/thenets.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cli-in-container\n\nThis is a simple example of how to create a CLI that creates commands to invoke itself in a container.\n\n## Use-case\n\n- It's not possible to install the CLI on the host machine\n- Must be east-to-use\n\n\n## Process call order\n\n1. (Host) User invokes the `run.sh` script, which invoke container's `/app/wrapper.sh` script\n2. (Container) `/app/wrapper.sh` returns the full command, including speciall args like volume mapping, environment variables, etc.\n3. (Host) The `run.sh` script executes the full command, which invokes the container's `/app/cli.sh` script\n4. (Container) `/app/cli.sh` executes the command\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenets%2Fcli-in-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthenets%2Fcli-in-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthenets%2Fcli-in-container/lists"}