{"id":22769944,"url":"https://github.com/olegstepura/docker-shell","last_synced_at":"2026-05-08T13:40:34.180Z","repository":{"id":141948156,"uuid":"48039836","full_name":"olegstepura/docker-shell","owner":"olegstepura","description":"🐳 A set of usefull functions for writing interactive docker scripts","archived":false,"fork":false,"pushed_at":"2016-04-10T20:45:05.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T11:41:34.250Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/olegstepura.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":"2015-12-15T11:52:28.000Z","updated_at":"2017-09-06T07:20:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"54c7dba3-bd47-4199-b45d-20a3dd4aba4d","html_url":"https://github.com/olegstepura/docker-shell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/olegstepura/docker-shell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegstepura%2Fdocker-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegstepura%2Fdocker-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegstepura%2Fdocker-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegstepura%2Fdocker-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olegstepura","download_url":"https://codeload.github.com/olegstepura/docker-shell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegstepura%2Fdocker-shell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32783308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-12-11T15:17:28.209Z","updated_at":"2026-05-08T13:40:34.166Z","avatar_url":"https://github.com/olegstepura.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-shell\n\nA set of usefull functions for writing interactive [docker](https://www.docker.com/) `build` and `run` scripts.\nDependencies are: [`rlwrap`](http://utopia.knoware.nl/~hlub/uck/rlwrap/#rlwrap) (available in debian), `bash`, `sudo`, `curl`, and `docker` (surprise! :)\n\nFunctions take named parameters via environment variables e.g. `FOO=\"test\" my_func`, \nmost require a special variable named `VAR` which contains name of environment \nvariable that will contain function result:\n\n```bash\nVAR=TEST my_foo\n# Now $TEST contains result of running my_foo (most likely some string)\necho $TEST # outputs result of running my_foo\n```\n\n`shared-functions.sh` is not that long, go ahead and read it. Each function contains \na comment with possible argument variables. Some of them are bypassed as is to an \ninner function invocation so it's not that obvious.\n\nNote, that after running set of commands with the right name passed to `VAR` there is \nno need to pass that vars to later commands explicitly:\n```bash\nVAR=TEST1 my_foo\nVAR=TEST2 my_bar\n\n# $TEST1 and $TEST2 are available here\n# no need to run\nTEST1=\"$TEST1\" TEST2=\"$TEST2\" foo_bar\n# just call\nfoo_bar\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folegstepura%2Fdocker-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folegstepura%2Fdocker-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folegstepura%2Fdocker-shell/lists"}