All Projects → meAmidos → Dcind

meAmidos / Dcind

Licence: mit
Docker image with Docker Compose. Useful as a base image for integration tests in Concourse CI.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Dcind

Opendevops
CODO是一款为用户提供企业多混合云、一站式DevOps、自动化运维、完全开源的云管理平台、自动化运维平台
Stars: ✭ 2,990 (+2235.94%)
Mutual labels:  ci, docker-compose
Lnmp
💻 🐳 🐘 🐬 🐧 🚀 Start Docker LNMP(LEMP) In less than 2 minutes Powered by Docker Compose. 让 PHP 开发者快速(一键)搭建基于容器技术(Docker、Kubernetes)的开发、测试、生产(CI/CD by Drone)环境.
Stars: ✭ 341 (+166.41%)
Mutual labels:  ci, docker-compose
Infrabox
InfraBox is a cloud native continuous integration system
Stars: ✭ 249 (+94.53%)
Mutual labels:  ci, docker-compose
Javascript Testing Best Practices
📗🌐 🚢 Comprehensive and exhaustive JavaScript & Node.js testing best practices (August 2021)
Stars: ✭ 13,976 (+10818.75%)
Mutual labels:  ci, integration-testing
Docker4drupal
Docker-based Drupal stack
Stars: ✭ 1,045 (+716.41%)
Mutual labels:  alpine, docker-compose
Action Docker Layer Caching
🐳 Enable Docker layer caching in GitHub Actions
Stars: ✭ 160 (+25%)
Mutual labels:  ci, docker-compose
docker4ruby
Docker-based Ruby stack (works for Rails)
Stars: ✭ 27 (-78.91%)
Mutual labels:  docker-compose, alpine
Dockertest
Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work.
Stars: ✭ 2,254 (+1660.94%)
Mutual labels:  ci, integration-testing
Infrabox
Stars: ✭ 45 (-64.84%)
Mutual labels:  ci, docker-compose
Docker Serveo Server
https://serveo.net is an alternative for ngrok. taichunmin/serveo-server can let you host your own serveo. And taichunmin/serveo can let you secure URL to your localhost server through any NAT or firewall in Docker.
Stars: ✭ 44 (-65.62%)
Mutual labels:  alpine, docker-compose
Docker4php
Docker-based PHP stack
Stars: ✭ 210 (+64.06%)
Mutual labels:  alpine, docker-compose
Dockest
Docker + Jest integration testing for Node.js
Stars: ✭ 81 (-36.72%)
Mutual labels:  integration-testing, docker-compose
Docker4wordpress
Docker-based WordPress stack
Stars: ✭ 607 (+374.22%)
Mutual labels:  alpine, docker-compose
Dockerfiles
lots of dockerfiles, based on alpine
Stars: ✭ 69 (-46.09%)
Mutual labels:  alpine, docker-compose
Coyote
Environment, operations and runtime-meta testing tool.
Stars: ✭ 84 (-34.37%)
Mutual labels:  integration-testing, docker-compose
Dksnap
Docker Snapshots for Development and Test Data
Stars: ✭ 122 (-4.69%)
Mutual labels:  docker-compose
Taskcluster
CI for Engineers
Stars: ✭ 126 (-1.56%)
Mutual labels:  ci
Rspecq
Optimally distribute and run RSpec suites among parallel workers; for faster CI builds
Stars: ✭ 122 (-4.69%)
Mutual labels:  ci
Docker Rails Base
Optimized Docker base images for Rails applications
Stars: ✭ 120 (-6.25%)
Mutual labels:  alpine
Docker Compose
Container with Docker + Docker Compose - good for CI
Stars: ✭ 127 (-0.78%)
Mutual labels:  docker-compose

dcind (Docker-Compose-in-Docker)

Versioning

This repository and corresponding images on Docker Hub follow the semantic versioning rules. 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.

Usage

Use this Dockerfile to build a base image for your integration tests in Concourse CI. Alternatively, you can use a ready-to-use image from the Docker Hub: amidos/dcind. The image is Alpine based.

Here is an example of a Concourse job 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 directory.

Note that docker-lib.sh has bash dependencies, so it is important to use bash in your task.

  - name: integration
    plan:
      - aggregate:
        - get: code
          params: {depth: 1}
          passed: [unit-tests]
          trigger: true
        - get: redis
          params: {save: true}
        - get: busybox
          params: {save: true}
      - task: Run integration tests
        privileged: true
        config:
          platform: linux
          image_resource:
            type: docker-image
            source:
              repository: amidos/dcind
          inputs:
            - name: code
            - name: redis
            - name: busybox
          run:
            path: bash
            args:
              - -exc
              - |
                source /docker-lib.sh
                start_docker

                # Strictly speaking, preloading of Docker images is not required.
                # However, you might want to do this for a couple of reasons:
                # - If the image comes from a private repository, it is much easier to let Concourse pull it,
                #   and then pass it through to the task.
                # - When the image is passed to the task, Concourse can often get the image from its cache.
                docker load -i redis/image
                docker tag "$(cat redis/image-id)" "$(cat redis/repository):$(cat redis/tag)"

                docker load -i busybox/image
                docker tag "$(cat busybox/image-id)" "$(cat busybox/repository):$(cat busybox/tag)"

                # This is just to visually check in the log that images have been loaded successfully
                docker images

                # Run the container with tests and its dependencies.
                docker-compose -f code/example/integration.yml run tests

                # Cleanup.
                # Not sure if this is required.
                # It's quite possible that Concourse is smart enough to clean up the Docker mess itself.
                docker volume rm $(docker volume ls -q)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].