{"id":18438320,"url":"https://github.com/pumpkinseed/invoker","last_synced_at":"2026-05-01T04:41:10.197Z","repository":{"id":93534546,"uuid":"223478257","full_name":"PumpkinSeed/invoker","owner":"PumpkinSeed","description":"Run pre-defined commands inside your container/containers","archived":false,"fork":false,"pushed_at":"2019-11-25T10:48:17.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T13:16:17.035Z","etag":null,"topics":["docker","docker-client","docker-container","docker-tool"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PumpkinSeed.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,"zenodo":null}},"created_at":"2019-11-22T20:07:30.000Z","updated_at":"2024-09-13T03:48:20.000Z","dependencies_parsed_at":"2023-03-20T09:58:07.162Z","dependency_job_id":null,"html_url":"https://github.com/PumpkinSeed/invoker","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/PumpkinSeed%2Finvoker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PumpkinSeed%2Finvoker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PumpkinSeed%2Finvoker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PumpkinSeed%2Finvoker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PumpkinSeed","download_url":"https://codeload.github.com/PumpkinSeed/invoker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886344,"owners_count":21177645,"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":["docker","docker-client","docker-container","docker-tool"],"created_at":"2024-11-06T06:19:31.247Z","updated_at":"2026-05-01T04:41:05.176Z","avatar_url":"https://github.com/PumpkinSeed.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Invoker\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/PumpkinSeed/invoker)](https://goreportcard.com/report/github.com/PumpkinSeed/invoker)\n\n#### Run pre-defined commands inside your container/containers.\n\nThe main concept behind the solution is simplify and make faster command executions in docker containers.\n\n#### Usage\n\n```\ngo install github.com/PumpkinSeed/invoker\n```\n\nCreate settings.json and move to a common location\n\n```\n/home/username/invoker-settings.json\n{\n  \"containers\": {\n    \"couchbase\": [\n      \"api_couchbase_1\"\n    ]\n  },\n  \"commands\": {\n    \"ls\": [\n      \"ls -ll\",\n      \"echo end\"\n    ]\n  }\n}\n```\n\nThen add the `INVOKER_SETTINGS` environment variable with the location of settings.json\n\n```\nexport INVOKER_SETTINGS=/home/username/invoker-settings.json\n```\n\nUse it like, where the first parameter always the container group and the second is the command group\n\n```\ninvoker couchbase ls\n\n// Output:\napi_couchbase_1 [cc3a6f47227c8b084c8bb6546eaa0165a5631dee078c3197c2ea601f1042c290] ~ ls -ll\nHtotal 100\ndrwxr-xr-x.   1 root root 4096 Sep 19 00:07 bin\ndrwxr-xr-x.   2 root root 4096 Apr 12  2016 boot\ndrwxr-xr-x.   5 root root  340 Nov 25 09:26 dev\n-rwxrwxr-x.   1 root root 1930 Sep 19 00:06 entrypoint.sh\ndrwxr-xr-x.   1 root root 4096 Nov 25 09:26 etc\ndrwxr-xr-x.   2 root root 4096 Apr 12  2016 home\n-rw-r--r--.   1 root root 9452 Nov 25 09:26 index.html\n-rwxrwxr-x.   1 root root 2857 Oct 29 13:56 init.sh\ndrwxr-xr-x.   1 root root 4096 Sep 19 00:07 lib\ndrwxr-xr-x.   2 root root 4096 Sep  4 18:49 lib64\ndrwxr-xr-x.   2 root root 4096 Sep  4 18:47 media\ndrwxr-xr-x.   2 root root 4096 Sep  4 18:47 mnt\ndrwxr-xr-x.   1 root root 4096 Sep 19 00:07 opt\ndr-xr-xr-x. 361 root root    0 Nov 25 09:26 proc\ndrwx------.   1 root root 4096 Nov 25 09:26 root\ndrwxr-xr-x.   1 root root 4096 Sep  4 18:49 run\ndrwxr-xr-x.   1 root root 4096 Sep 19 00:07 sbin\ndrwxr-xr-x.   2 root root 4096 Sep  4 18:47 srv\ndr-xr-xr-x.  13 root root    0 Nov 25 07:15 sys\ndrwxrwxrwt.   1 root root 4096 Nov 25 09:26 tmp\ndrwxr-xr-x.   1 root root 4096 Sep  4 18:47 usr\ndrwxr-xr-x.   1 root root 4096 Sep  4 18:49 var\napi_couchbase_1 [cc3a6f47227c8b084c8bb6546eaa0165a5631dee078c3197c2ea601f1042c290] ~ echo end\nend\n```\n\n#### Settings file\n\n- You can create container groups which can contain one or more container based on container's name. Get it with `docker ps`.\n- You will use the alias (as the example shown `couchbase`) for call the invoker.\n\n```\n\"containers\": {\n    \"couchbase\": [\n      \"api_couchbase_1\"\n    ]\n  }\n```\n\n- You can create command groups which can have one or more commands.\n- You will use the alias (as the example shown `ls`) for call the invoker.\n\n```\n\"commands\": {\n    \"ls\": [\n      \"ls -ll\",\n      \"echo end\"\n    ]\n  }\n```\n\n#### Additional\n\nThere are extra environment variables to manipulate the behaviour of the program:\n\n- `INVOKER_VERBOSE`: true // add detailed logs\n- `INVOKER_SKIP_OUTPUT`: true // skip the print of commands output","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpumpkinseed%2Finvoker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpumpkinseed%2Finvoker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpumpkinseed%2Finvoker/lists"}