Skip to content

Latest commit

 

History

History
69 lines (51 loc) · 955 Bytes

File metadata and controls

69 lines (51 loc) · 955 Bytes

KWS Control

KWS Control

system requirements

  • Go >= 1.21
  • libvirt
  • Docker

run

1. dependencies

Ubuntu/Debian

sudo apt install libvirt-dev pkg-config

CentOS/RHEL

sudo yum install libvirt-devel pkgconfig

I use Arch BTW

sudo pacman -S libvirt qemu dnsmasq openbsd-netcat

3. Go mod download

go mod download

run

method1: build & run

make run

make build

./kws

make clean

method2: docker

docker build -t kws-control .

docker run -p 8081:8081 kws-control

tree

KWS_Control/
|── api/
│   |── server/     # HTTP API server
│   |── workercont/ # worker control
|── config/         # config
|── vm/             # VM management
|── util/           # utils
|── main.go         # main.go
|── Dockerfile      # dockerfile
|── Makefile        # biuld script
|── go.mod          # go module setting