Sign inSign up

electrocucaracha/vind

By electrocucaracha

•Updated over 5 years ago

Docker image with Vagrant and Libvirt. Useful as a base image for integration tests in Concourse CI.

Image
0

2.4K

electrocucaracha/vind repository overview

⁠vind (Vagrant-in-Docker)

Docker License GitHub Super-Linter

⁠Usage

Use this Dockerfile to build a base image for your integration tests in Concourse CI⁠ or Tekton CI/CD⁠

Here is an example of a Concourse job⁠ that uses electrocucaracha/vind image. This approach has some limitations and require special configuration in the worker node, for more information check this link⁠

  - name: integration
    plan:
      - get: code
        params: {depth: 1}
        passed: [unit-tests]
        trigger: true
      - task: Run integration tests
        privileged: true
        config:
          platform: linux
          image_resource:
            type: docker-image
            source:
              repository: electrocucaracha/vind
          inputs:
            - name: code
          run:
            dir: src
            path: bash
            args:
              - -exc
              - |
                source /libvirtd-lib.sh
                start_libvirtd

                sudo -E vagrant up

Here is an example of a Tekton pipeline⁠ that uses electrocucaracha/vind image.

  tasks:
    - name: vagrant-up
      image: electrocucaracha/vind
      workingDir: /workspace/src/
      script: |
        source /libvirtd-lib.sh
        start_libvirtd

        sudo -E vagrant up
      securityContext:
        privileged: true
        capabilities:
          add:
            - NET_ADMIN
      resources:
        inputs:
          - name: repo
            resource: src

Tag summary

Content type

Image

Digest

Size

704.3 MB

Last updated

over 5 years ago

docker pull electrocucaracha/vind