Coder Social home page Coder Social logo

plugin-spaceone-member-inven-collector's Introduction

plugin-spaceone-inven-collector

소개

plugin-spaceone-inven-collector는 SpaceONE의 Inventory Collector Plugin으로서
SpaceONE팀의 멤버 정보를 수집하는 Collector입니다.
해당 플러그인은 새로운 플러그인 프레임워크로 제작 되었습니다.

환경 설정과 플러그인 서버 띄우기

현재 spaceone-inventory 패키지가 pre-release 상태이기 때문에, 다음의 순서로 패키지를 설정합니다.

  1. 가상 환경 설정
    venv 라이브러리를 활용해 가상 환경을 설정합니다.
python3 -m venv venv
source venv/bin/activate
  1. 패키지 설치
    생성한 가상 환경에 다음의 명령어로 패키지를 설치합니다.
pip3 install -r pkg/pip_requirements.txt
pip3 install --pre spaceone-inventory
  1. interpreter 설정
    Pycharm을 사용하는 경우, 해당 가상 환경을 interpreter로 설정합니다.
    img.png img.png img.png

위 순서로 진행한 후 RUN할 경우 Plugin Server가 실행됩니다.
img.png

Local 환경 테스트

Plugin Server를 실행한 후, 다음의 명령어로 메서드별 테스트를 진행합니다.



사용할 수 있는 API 메서드 확인

spacectl api-resources

  1. Collector.init
spacectl exec init inventory.Collector -f test/init.yml

  1. Collector.verify
spacectl exec verify inventory.Collector -f test/verify.yml

  1. Collector.collect
spacectl exec collect inventory.Collector -f test/collect.yml

참고 사항

  • spaceone-inventory 패키지는 pre-release 상태이기 때문에, pip install시 --pre 옵션을 추가해야 합니다.

plugin-spaceone-member-inven-collector's People

Contributors

stat-kwon avatar immin5 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.