This project uses vagrant to create 2 VM's by default, both machines are provisioned and configured as a GitHub Runner at the global organization settings.
- The VM 1 is provisioned with Docker.
- The VM 2 is provisioned with Podman.
VM 1 uses a docker-compose.yml file that creates and exposes the following containers and ports:
sonarqube-service |
ports: 9000 image: sonarqube:alpine |
open |
jenkins-service |
ports: 8080, 8082 image: jenkins:2.60.3-alpine |
open |
nexus-service |
ports: 8081 image: sonatype/nexus3 |
open |
postgres-service |
ports: 5432 image: postgres:alpine |
not displayable |
portainer-service |
ports: 9443, 8000 image: portainer/portainer-ce:alpine |
open |
- Vagrant and VirtualBox installed
- Personal Github Token
- You need to create a local.yml file at the same level of the Vagrantfile
To avoid Timed out while waiting for the machine to boot
on windows OS we recommend to disable "Hyper V", "Windows hypervisor platform" and "Virtual machine platform" windows features.
Check for more information.
Environment Variable | Description |
---|---|
token |
For the runner provision you can use or create a personal token in your Github account . This token needs repo and admin:org permissions. |
---
token: <your_personal_token>
Environment Variable | Description |
---|---|
image |
Image of OS for the VM, currently using ubuntu/jammy 64 by default |
base-name |
Base template for the VM naem, currently name devops-runner-team-4 followed by the vm machine number |
amount |
Number of VM's to create, by default set to create 2 |
---
image: ubuntu/jammy64
vm:
base-name: devops-runner-team-4
amount: 2
Use the vagrant up
command in your terminal.