{"id":20977287,"url":"https://github.com/2degrees/docker-dev","last_synced_at":"2025-05-14T14:32:07.150Z","repository":{"id":57423256,"uuid":"51913410","full_name":"2degrees/docker-dev","owner":"2degrees","description":"Development tools for Docker","archived":false,"fork":false,"pushed_at":"2017-08-18T11:36:35.000Z","size":53,"stargazers_count":20,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-15T00:53:58.008Z","etag":null,"topics":["bash","docker","docker-compose"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2degrees.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-17T10:10:29.000Z","updated_at":"2022-04-18T13:53:29.000Z","dependencies_parsed_at":"2022-09-06T07:12:12.192Z","dependency_job_id":null,"html_url":"https://github.com/2degrees/docker-dev","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2degrees%2Fdocker-dev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2degrees%2Fdocker-dev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2degrees%2Fdocker-dev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2degrees%2Fdocker-dev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2degrees","download_url":"https://codeload.github.com/2degrees/docker-dev/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225297832,"owners_count":17452010,"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","docker-compose"],"created_at":"2024-11-19T04:58:09.298Z","updated_at":"2024-11-19T04:58:09.869Z","avatar_url":"https://github.com/2degrees.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-dev: Utilities to use Docker in development environments\n\n`docker-dev` optimises Docker and Docker Compose for use on a developer's\ncomputer, making some common tasks easier than they would be otherwise.\n\nOnce you've cloned or downloaded this project, you can enable it by adding\nthe following line to `~/.bashrc`:\n\n```bash\nsource /path-to-dockerdev/dockerdevrc\n```\n\n## Commands\n\nThe following Bash scripts are included:\n\n### docker-dev\n\n`docker-dev` wraps some Docker Compose subcommands in order to pass extra\narguments. It's not opinionated about the structure of your Docker Compose\nfile, and you can switch between `docker-dev` and `docker-compose`.\n\n`docker-dev` supports autocompletion in a Bash session.\n\n#### `docker-dev build [EXTRA_ARGS...]`\n\nWraps `docker-compose build`, and also:\n\n- Avoids leaving intermediate containers behind.\n- Pulls the latest version of any parent Docker images.\n- If an executable file called `.dockerdev-prebuild` exists in the current\n  working directory, it'll be run before running `docker-compose build` (unless\n  the executable fails).\n\n#### `docker-dev run [EXTRA_ARGS...]`\n\nWraps `docker-compose run` to prevent leaving containers behind once the\ncommand ends.\n\n#### `docker-dev up [EXTRA_ARGS...]`\n\nWraps `docker-compose up` and prevents leaving containers behind once the\ncommand ends and to exit once any of the services explicitly called exits.\n\n#### `docker-dev up2 [SERVICES...]`\n\n**Experimental:** This subcommand is expected to replace `docker-dev up`\neventually, and it will be changed or simply removed in future releases.\n\nThis subcommand wraps `docker-dev up` and works around limitations in Docker\nCompose when the services you want to run depend on other services -- namely:\n\n- Logs from dependent services are output in the foreground.\n- Terminating the `docker-dev` process also terminates dependent services.\n- Likewise, when a dependent service terminates, all the other services and\n  the parent process are terminated.\n\n#### `docker-dev down`\n\nRuns `docker-compose down` so that all the resources in the project are removed.\n\n## docker-clean\n\nThis command will remove **all** your Docker resources (e.g., containers,\nvolumes), except for images created in the past week.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2degrees%2Fdocker-dev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2degrees%2Fdocker-dev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2degrees%2Fdocker-dev/lists"}