summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rwxr-xr-xbuild5
-rw-r--r--control15
3 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8279f1d..ae8ee4b 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,11 @@ all: build
build:
GO111MODULE=off go build -v -ldflags "-X main.Version=${VERSION} -X gui.GUIVERSION=${VERSION}"
+# makes a .deb package
+debian:
+ rm -f ~/incoming/virtigo*deb
+ go-deb --no-gui --repo go.wit.com/apps/virtigo
+
xml-add:
./virtigo --libvirt ~/libvirt/*.xml --xml-ignore-disk=true
diff --git a/build b/build
new file mode 100755
index 0000000..1ab3886
--- /dev/null
+++ b/build
@@ -0,0 +1,5 @@
+#!/bin/bash -x
+
+# this is the systemd control file
+mkdir -p files/usr/bin/
+cp ../../lib/daemons/virtigod/virtigod files/usr/bin/
diff --git a/control b/control
new file mode 100644
index 0000000..cc3a129
--- /dev/null
+++ b/control
@@ -0,0 +1,15 @@
+Source: virtigo
+Build-Depends: golang
+Package: virtigo
+Maintainer: Jeff Carr <[email protected]>
+Architecture: amd64
+Recommends: virtigod
+Depends:
+URL: https://go.wit.com/apps/virtigo
+Description: control your virtual machines in your cluster
+ lets you start,stop, etc virtual machines
+ converts libvirt xml into protobuf definitions
+ communicates with hypervisors with protobuf's
+ uses virsh to start & stop
+ maintains unique mac address table
+ servers cluster status on :8080 for uptime checking like Kuma