forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created a degenerate virt-handler binary to aid in creating a docker container and DaemonSet file. Change-Id: I5dc14c924c6f1bcdce2b8ef29c0fd9d177b6634a Signed-off-by: Stu Gott <[email protected]>
- Loading branch information
Showing
5 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM centos:7 | ||
|
||
COPY virt-handler /virt-handler | ||
|
||
ENTRYPOINT [ "/virt-handler" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
= virt-handler = | ||
|
||
This process is currently a placeholder | ||
|
||
== Running virt-handler == | ||
|
||
Virt-handler can be started through docker with | ||
|
||
``` | ||
docker run \ | ||
--rm \ | ||
--volume=/var/run/libvirt/libvirt-sock:/var/run/libvirt/libvirt-sock:Z \ | ||
--detach=false \ | ||
kubevirt/virt-handler:latest | ||
``` | ||
|
||
On bare metal run | ||
|
||
``` | ||
./virt-handler | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"time" | ||
) | ||
|
||
func main() { | ||
for { | ||
fmt.Println("Sleeping") | ||
// Sleep for one minute | ||
time.Sleep(60000 * time.Millisecond) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash | ||
|
||
binaries="cmd/virt-controller cmd/virt-launcher" | ||
binaries="cmd/virt-controller cmd/virt-launcher cmd/virt-handler" | ||
docker_prefix=kubevirt | ||
docker_tag=latest | ||
manifest_templates="`ls contrib/manifest/*.in`" |