{"id":21202364,"url":"https://github.com/taonity/command-runner","last_synced_at":"2026-05-07T20:15:42.053Z","repository":{"id":193357263,"uuid":"688641289","full_name":"taonity/command-runner","owner":"taonity","description":"The tool for running commands in docker containers. It is useful for container maintenance operations.","archived":false,"fork":false,"pushed_at":"2025-02-14T22:45:12.000Z","size":9,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T23:27:17.525Z","etag":null,"topics":["bash","docker"],"latest_commit_sha":null,"homepage":"","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/taonity.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-09-07T19:31:15.000Z","updated_at":"2023-10-13T16:53:42.000Z","dependencies_parsed_at":"2023-12-08T05:23:28.631Z","dependency_job_id":"a78e2588-9e4c-4b9a-8b67-744847705520","html_url":"https://github.com/taonity/command-runner","commit_stats":null,"previous_names":["taonity/command-runner"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taonity%2Fcommand-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taonity%2Fcommand-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taonity%2Fcommand-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taonity%2Fcommand-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taonity","download_url":"https://codeload.github.com/taonity/command-runner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243655159,"owners_count":20326041,"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":["bash","docker"],"created_at":"2024-11-20T20:15:35.177Z","updated_at":"2026-05-07T20:15:37.021Z","avatar_url":"https://github.com/taonity.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# command-runner\n[generaltao725/command-runner](https://hub.docker.com/repository/docker/generaltao725/command-runner/general) is the tool for running commands in docker containers. It is useful for container maintenance operations.\n\n### Usage\nThe easiest way of running the tool is using docker-compose. Here is an [example](test\\run-scripts-on-containers\\docker-compose.yml) of the tool usage.\n\n### Configuration\nYou have to add an environment variable in command-runner service - `COMMAND_RUNNER_GROUP`. It configures the group of containers the service will be working with. It can be populated\nwith any string in kebab-case style.\nTarget services are configured using labels with a root path `command-runner.`. Here are the labels:\n| Label                  | Required | Description                                                    |\n| ---------------------- | -------- | -------------------------------------------------------------- |                           \n| command-runner.group   | yes      | A group name that command-runner service will be working with  |\n| command-runner.user    | no       | A user that will run the command                               |\n| command-runner.shell   | yes      | A command shell path and parameters the command will run in    |\n| command-runner.command | yes      | A command that will be executed in a service                   |\n\nYou can also define `after-all.sh` and `before-all.sh` bash and mount them into `/etc/runner/scripts/shared` directory in command-runner container. The scripts allow you to \nrun bash scripts before and after running commands. The scripts will be running in the host. Both scripts are optional and are useful for some preparations and cleanup.\n\n### Run\nYou can run the configured commands and scripts using docker-compose:\n```bash\ndocker compose exec command-runner runner [arguments]\n```\nThe `runner` command can take any amount of arguments, which will be passed to the `after-all.sh` and `before-all.sh` scripts.\n\n### Used in\n - [taonity/java-discord-help-tree-bot](https://github.com/taonity/java-discord-help-tree-bot)\n - [taonity/prodenv](https://github.com/taonity/prodenv)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaonity%2Fcommand-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaonity%2Fcommand-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaonity%2Fcommand-runner/lists"}