{"id":13847059,"url":"https://github.com/meAmidos/dcind","last_synced_at":"2025-07-12T08:31:14.849Z","repository":{"id":37733353,"uuid":"67625937","full_name":"meAmidos/dcind","owner":"meAmidos","description":"Docker image with Docker Compose. Useful as a base image for integration tests in Concourse CI.","archived":false,"fork":false,"pushed_at":"2024-06-26T00:46:23.000Z","size":35,"stargazers_count":142,"open_issues_count":6,"forks_count":104,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-21T21:42:28.319Z","etag":null,"topics":["alpine","ci","concourse","concourse-ci","dcind","dind","docker","docker-compose","integration-testing"],"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/meAmidos.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":"2016-09-07T16:46:24.000Z","updated_at":"2024-09-08T07:49:04.000Z","dependencies_parsed_at":"2024-11-21T21:42:06.294Z","dependency_job_id":null,"html_url":"https://github.com/meAmidos/dcind","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/meAmidos/dcind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meAmidos%2Fdcind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meAmidos%2Fdcind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meAmidos%2Fdcind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meAmidos%2Fdcind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meAmidos","download_url":"https://codeload.github.com/meAmidos/dcind/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meAmidos%2Fdcind/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264962123,"owners_count":23689740,"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":["alpine","ci","concourse","concourse-ci","dcind","dind","docker","docker-compose","integration-testing"],"created_at":"2024-08-04T18:00:53.398Z","updated_at":"2025-07-12T08:31:14.837Z","avatar_url":"https://github.com/meAmidos.png","language":"Shell","readme":"# dcind (Docker-Compose-in-Docker)\n\n[![](https://images.microbadger.com/badges/image/amidos/dcind.svg)](http://microbadger.com/images/amidos/dcind \"Get your own image badge on microbadger.com\")\n\n\n### Versioning\n\nThis repository and corresponding images on Docker Hub follow the semantic versioning [rules](https://semver.org/). It is advised to not rely on the `latest` tag when using `amidos/dcind` image in your CI pipelines. Consider using a specific version, like `amidos/dcind:1`.\n\n### Usage\n\nUse this ```Dockerfile``` to build a base image for your integration tests in [Concourse CI](http://concourse.ci/). Alternatively, you can use a ready-to-use image from the Docker Hub: [amidos/dcind](https://hub.docker.com/r/amidos/dcind/). The image is Alpine based.\n\nHere is an example of a Concourse [job](https://concourse-ci.org/jobs.html) that uses ```amidos/dcind``` image to run a bunch of containers in a task, and then runs the integration test suite. You can find a full version of this example in the [```example```](example) directory.\n\nNote that `docker-lib.sh` has bash dependencies, so it is important to use `bash` in your task.\n\n```yaml\n  - name: integration\n    plan:\n      - aggregate:\n        - get: code\n          params: {depth: 1}\n          passed: [unit-tests]\n          trigger: true\n        - get: redis\n          params: {save: true}\n        - get: busybox\n          params: {save: true}\n      - task: Run integration tests\n        privileged: true\n        config:\n          platform: linux\n          image_resource:\n            type: docker-image\n            source:\n              repository: amidos/dcind\n          inputs:\n            - name: code\n            - name: redis\n            - name: busybox\n          run:\n            path: bash\n            args:\n              - -exc\n              - |\n                source /docker-lib.sh\n                start_docker\n\n                # Strictly speaking, preloading of Docker images is not required.\n                # However, you might want to do this for a couple of reasons:\n                # - If the image comes from a private repository, it is much easier to let Concourse pull it,\n                #   and then pass it through to the task.\n                # - When the image is passed to the task, Concourse can often get the image from its cache.\n                docker load -i redis/image\n                docker tag \"$(cat redis/image-id)\" \"$(cat redis/repository):$(cat redis/tag)\"\n\n                docker load -i busybox/image\n                docker tag \"$(cat busybox/image-id)\" \"$(cat busybox/repository):$(cat busybox/tag)\"\n\n                # This is just to visually check in the log that images have been loaded successfully\n                docker images\n\n                # Run the container with tests and its dependencies.\n                docker-compose -f code/example/integration.yml run tests\n\n                # Cleanup.\n                # Not sure if this is required.\n                # It's quite possible that Concourse is smart enough to clean up the Docker mess itself.\n                docker volume rm $(docker volume ls -q)\n\n```\n\n[i17]: https://github.com/meAmidos/dcind/issues/17\n","funding_links":[],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FmeAmidos%2Fdcind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FmeAmidos%2Fdcind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FmeAmidos%2Fdcind/lists"}