Sign inSign up

xcatdevops/xcat-apiserver

By xcatdevops

•Updated over 7 years ago

xcat-apiserver container for development.

Image
0

921

xcatdevops/xcat-apiserver repository overview

⁠How to use it

⁠On xCAT Management (or some node which can access the DB)
# git clone https://github.com/xcat2/xcat-inventory.git -b apiserver
# cd xcat-inventory
# docker run -it -v /etc/xcat:/etc/xcat -v `pwd`/xcat-inventory:/xcat-apiserver -p 5000:5000 xcatdevops/xcat-apiserver /bin/bash
# source /venv/bin/activate
# FLASK_DEBUG=1 python main.py
⁠On client
#curl http://<api-server-ip>:5000/ping
pong

#curl http://<api-server-ip>:5000/api/nodes
{
    "nodes": [
        {
            "status": "booted",
            "name": "c910f04x27v10",
            "groups": "all",
            "description": "the system X kvm node definition",
            "updated_time": "03-28-2019 23:01:35"
        }
    ]
}

Tag summary

Content type

Image

Digest

Size

156.9 MB

Last updated

over 7 years ago

docker pull xcatdevops/xcat-apiserver