Gitlab vCenter executor based on `govc`.
349
Gitlab vCenter executor based on govc.
This Docker image works as the usual GitLab runner, but added a vCenter executor working as custom executor.
The related scripts are located at /opt/vc/src .
Displays runners.custom session only.
[runners.custom]
prepare_exec = "/opt/vc/src/prepare.sh" # Path to a bash script to create VM.
run_exec = "/opt/vc/src/run.sh" # Path to a bash script to run script inside of VM over ssh.
cleanup_exec = "/opt/vc/src/cleanup.sh" # Path to a bash script to delete VM and disks.
/opt/vc/ssh/id_rsa The SSH private key used for SSHing into the worker VMs.ENV GOVC_USERNAME [email protected]
ENV GOVC_PASSWORD pass_here
ENV GOVC_URL vc.example.com
ENV VC_DATACENTER example
ENV VC_HOST esxi.example.com
ENV VC_RESOURCE_POOL runners
ENV VC_DATASTORE example-datastore1
ENV VC_NETWORK example-network
ENV VC_TEMPLATE runner-template-debian
ENV VC_CPUS 2
ENV VC_MEMS 4096
ENV VC_SSH_USER root
The VM base image should work same with the example given by (GitLab's Official libvirt executor)[https://docs.gitlab.com/runner/executors/custom_examples/libvirt.html]. You may make a same one refering to this.
Content type
Image
Digest
Size
301.8 MB
Last updated
about 6 years ago
docker pull nanahira/gitlab-runner-vcenter-executor