Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/electrocucaracha/vind
Docker image with Vagrant and Libvirt. Useful as a base image for integration tests in Concourse CI.
https://github.com/electrocucaracha/vind
ci concourse concourse-ci integration-testing libvirt vagrant
Last synced: 20 days ago
JSON representation
Docker image with Vagrant and Libvirt. Useful as a base image for integration tests in Concourse CI.
- Host: GitHub
- URL: https://github.com/electrocucaracha/vind
- Owner: electrocucaracha
- Created: 2020-12-18T00:26:04.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-01T02:09:49.000Z (almost 4 years ago)
- Last Synced: 2024-11-05T16:12:35.323Z (2 months ago)
- Topics: ci, concourse, concourse-ci, integration-testing, libvirt, vagrant
- Language: Shell
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vind (Vagrant-in-Docker)
[![Docker](https://images.microbadger.com/badges/image/electrocucaracha/vind.svg)](http://microbadger.com/images/electrocucaracha/vind)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![GitHub Super-Linter](https://github.com/electrocucaracha/vind/workflows/Lint%20Code%20Base/badge.svg)](https://github.com/marketplace/actions/super-linter)## Usage
Use this ```Dockerfile``` to build a base image for your integration
tests in [Concourse CI](http://concourse.ci/) or [Tekton CI/CD](https://tekton.dev/)Here is an example of a Concourse
[job](https://concourse-ci.org/jobs.html) that uses
`electrocucaracha/vind` image. This approach has some limitations and
require special configuration in the worker node, for more information
check this [link](https://github.com/concourse/concourse/issues/2784)```yaml
- 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_libvirtdsudo -E vagrant up
```Here is an example of a Tekton
[pipeline](https://tekton.dev/docs/pipelines/pipelines/) that uses
`electrocucaracha/vind` image.```yaml
tasks:
- name: vagrant-up
image: electrocucaracha/vind
workingDir: /workspace/src/
script: |
source /libvirtd-lib.sh
start_libvirtdsudo -E vagrant up
securityContext:
privileged: true
capabilities:
add:
- NET_ADMIN
resources:
inputs:
- name: repo
resource: src
```