-
Install go and dep
-
Install all the package dependencies with
dep ensure
inside project directory -
go test ./... && go build ./cmd/pixicoreAPI && ./pixicoreAPI
-
docker build -t pixicoreapi .
-
docker run -d -p 3000:3000 pixicoreapi
-
Change the IP address for each server in the
servers-config.yaml
file -
You can run
curl -i http://localhost:3000/v1/install/SERVER_MAC_ADDRESS
this will collect info and install coreOS for the server -
You can run
curl -i http://localhost:3000/v1/all/
this will collect info and install coreOS for each server
- Used by pixicore to get PXE config and boot each server (each server have a IP address assigned).
- get information (cores,ram,etc) from the server using her macAddress as ID and install coresOS.
- get information (cores,ram,etc) from each the server using her macAddress as ID and install coresOS for each one.
- show information about all the registred servers