Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gitlab-runner-vcenter-executor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
gitlab-runner-vcenter-executor
Commits
1eaa2819
Commit
1eaa2819
authored
Jul 08, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme
parent
f74255bf
Pipeline
#295
passed with stages
in 5 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
1 deletion
+35
-1
README.md
README.md
+35
-1
No files found.
README.md
View file @
1eaa2819
...
...
@@ -4,4 +4,38 @@ Gitlab vCenter executor based on `govc`.
## How to use
To be added..
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`
.
## Example config.toml file
Displays
`runners.custom`
session only.
```
ini
[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.
```
# Volumes
*
`/opt/vc/ssh/id_rsa`
The SSH private key used for SSHing into the worker VMs.
# Environment variables
```
Dockerfile
ENV GOVC_USERNAME administrator@example.com
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
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment