https://github.com/ramizpolic/concourse-dind
Docker in Docker Ubuntu container for Concourse CI
https://github.com/ramizpolic/concourse-dind
concourse dind
Last synced: 4 months ago
JSON representation
Docker in Docker Ubuntu container for Concourse CI
- Host: GitHub
- URL: https://github.com/ramizpolic/concourse-dind
- Owner: ramizpolic
- License: apache-2.0
- Created: 2023-04-25T15:47:36.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-18T12:33:10.000Z (almost 2 years ago)
- Last Synced: 2025-04-14T01:14:23.860Z (about 1 year ago)
- Topics: concourse, dind
- Language: Shell
- Homepage:
- Size: 25.4 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Concourse Docker-in-Docker
Docker in Docker Ubuntu container for Concourse CI. Optimized for use with [Concourse CI](http://concourse.ci/).
Images are published under `ghcr.io/ramizpolic/concourse-dind` which includes Docker, Docker Compose, and Docker Squash.
## Features
- Automatically starts docker.
- Uses **errexit**, **pipefail**, and **nounset**.
- Configures timeout (`DOCKERD_TIMEOUT`) on dockerd start to account for misconfiguration (docker log will be output).
- Accepts arbitrary dockerd arguments via optional `DOCKER_OPTS` environment variable.
- Passes through `--garden-mtu` from the parent Gardian container if `--mtu` is not specified in `DOCKER_OPTS`.
- Sets `--data-root /scratch/docker` to bypass the graph filesystem if `--data-root` is not specified in `DOCKER_OPTS`.
## Run & Build
The image is available on DockerHub, but if you would like to build locally, clone and run
```bash
docker run ghcr.io/ramizpolic/concourse-dind
```
## Example
Here is an example of a Concourse [job](http://concourse.ci/concepts.html) to run a several containers in a task, and then runs the integration test suite.
```yaml
jobs:
- name: integration
plan:
- get: code
params:
depth: 1
passed:
- unit-tests
trigger: true
- task: integration-tests
privileged: true
config:
platform: linux
image_resource:
type: docker-image
source:
repository: ghcr.io/ramizpolic/concourse-dind
inputs:
- name: code
run:
args:
- bash
- -ceux
- |
docker-compose -f code/example/integration.yml run tests
docker-compose -f code/example/integration.yml down
docker volume rm $(docker volume ls -q)
```