Skip to content

jalilbengoufa/pixicoreAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pixicoreAPI

How to run the API

  • Install go and dep

  • Install all the package dependencies with dep ensure inside project directory

  • go test ./... && go build ./cmd/pixicoreAPI && ./pixicoreAPI

Using Docker

  • docker build -t pixicoreapi .

  • docker run -d -p 3000:3000 pixicoreapi

Usage

  • 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

API Endpoints

GET v1/boot/:macAddress

  • Used by pixicore to get PXE config and boot each server (each server have a IP address assigned).

GET v1/install/:macAddress

  • get information (cores,ram,etc) from the server using her macAddress as ID and install coresOS.

GEt v1/all

  • get information (cores,ram,etc) from each the server using her macAddress as ID and install coresOS for each one.

GEt v1/servers

  • show information about all the registred servers

TO DO

About

Client API for google pixicore pxe boot.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •