2024-10-11 13:55:13 -05:00
|
|
|
VERSION = $(shell git describe --tags)
|
|
|
|
|
|
|
|
# create the go.mod and go.sum if this is a brand new repo
|
|
|
|
# REDOMOD = $(shell if [ -e go.mod ]; then echo go.mod; else echo no go mod; fi)
|
|
|
|
REDOMOD = $(shell if [ -e go.sum ]; then echo go.sum exists; else GO111MODULE= go mod init; GO111MODULE= go mod tidy; fi)
|
|
|
|
|
|
|
|
all:
|
|
|
|
GO111MODULE=off go build -v -ldflags "-X main.Version=${VERSION} -X gui.GUIVERSION=${VERSION}"
|
|
|
|
./virtigo --version
|
2024-10-23 20:17:33 -05:00
|
|
|
./virtigo --help
|
2024-10-11 13:55:13 -05:00
|
|
|
|
2024-10-23 02:56:55 -05:00
|
|
|
xml-add:
|
2024-10-24 21:39:07 -05:00
|
|
|
./virtigo --libvirt *.xml
|
2024-10-23 02:56:55 -05:00
|
|
|
|
2024-10-16 20:43:01 -05:00
|
|
|
start-all-droplets:
|
|
|
|
curl --silent http://localhost:8080/start?start=git.wit.org
|
|
|
|
curl --silent http://localhost:8080/start?start=go.wit.com
|
2024-10-15 11:02:34 -05:00
|
|
|
curl --silent http://localhost:8080/start?start=rdate.wit.com
|
2024-10-16 21:10:08 -05:00
|
|
|
curl --silent http://localhost:8080/start?start=uptime.wit.com
|
|
|
|
curl --silent http://localhost:8080/start?start=www.wit.com
|
|
|
|
curl --silent http://localhost:8080/start?start=ping.wit.com
|
|
|
|
curl --silent http://localhost:8080/start?start=wekan.wit.com
|
|
|
|
curl --silent http://localhost:8080/start?start=caddy.wit.org
|
|
|
|
curl --silent http://localhost:8080/start?start=immich.wit.org
|
|
|
|
curl --silent http://localhost:8080/start?start=bernacchi
|
2024-10-15 11:02:34 -05:00
|
|
|
@#curl --silent http://localhost:8080/start?start=jcarr
|
2024-10-13 03:49:54 -05:00
|
|
|
@# ./virtigo --start jcarr
|
2024-10-13 02:23:30 -05:00
|
|
|
|
2024-10-13 03:04:46 -05:00
|
|
|
curl-uptime:
|
|
|
|
curl --silent http://localhost:8080/uptime
|
|
|
|
|
|
|
|
curl-droplets:
|
|
|
|
curl --silent http://localhost:8080/droplets
|
|
|
|
|
2024-10-23 00:48:35 -05:00
|
|
|
curl-writeconfig:
|
|
|
|
curl --silent http://localhost:8080/writeconfig
|
|
|
|
|
2024-10-11 13:55:13 -05:00
|
|
|
# this is for release builds using the go.mod files
|
|
|
|
release-build:
|
|
|
|
@echo ${REDOMOD}
|
|
|
|
go build -v -ldflags "-X main.Version=${VERSION} -X gui.GUIVERSION=${VERSION}"
|
|
|
|
|
|
|
|
# autofixes your import headers in your golang files
|
|
|
|
goimports:
|
|
|
|
goimports -w *.go
|
|
|
|
|
|
|
|
# remake the go.mod and go.sum files
|
|
|
|
redomod:
|
|
|
|
rm -f go.*
|
|
|
|
GO111MODULE= go mod init
|
|
|
|
GO111MODULE= go mod tidy
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f go.*
|
|
|
|
rm -f virtigo*
|
|
|
|
|
|
|
|
# git clone the sources and all the golang dependancies into ~/go/src
|
|
|
|
# if you don't have go-clone, you can get it from http://go.wit.com/
|
|
|
|
git-clone:
|
|
|
|
go-clone --recursive --go-src --no-work go.wit.com/apps/go-clone
|
|
|
|
go-clone --recursive --go-src --no-work go.wit.com/apps/virtigo
|
2024-10-12 00:17:26 -05:00
|
|
|
go-clone --recursive --go-src --no-work go.wit.com/apps/gowebd
|
2024-10-11 13:55:13 -05:00
|
|
|
go-clone --recursive --go-src --no-work go.wit.com/lib/daemons/virtigod
|