Giter Site home page Giter Site logo

netbox-object-storage's Introduction

netbox-object-storage

Plugin quản lý về object storage

Installing

For netbox Install using service systemd

To install the plugin, first using pip and install netbox-object-storage:

/opt/netbox/venv/bin/activate
pip3 install netbox-object-storage

Next, enable the plugin in /opt/netbox/netbox/netbox/configuration.py, or if you have a /configuration/plugins.py file, the plugins.py file will take precedence.

PLUGINS = [
    'netbox_object_storage'
]

Migrate DB:

python3 /root/netbox/netbox/manage.py migrate

Then you may need to perform the final step of restarting the service to ensure that the changes take effect correctly:

sudo systemctl restart netbox

For netbox Install using docker

Step-1: Prepare

  • Clone netbox project
git clone -b release https://github.com/netbox-community/netbox-docker.git

cd netbox-docker
  • Create a few files these are (plugin_requirements.txt, Dockerfile-Plugins, docker-compose.override.yml)

Step-2: File plugin_requirements.txt using for declare plugin or pip requirement with the following content:

gunicorn
netbox-object-storage

Step-3: File Dockerfile-Plugins will enable to build a new image with the required plugins:

FROM netboxcommunity/netbox:latest

COPY ./plugin_requirements.txt /

RUN export DEBIAN_FRONTEND=noninteractive \
    && apt-get update -qq \
    && apt-get upgrade \
        --yes -qq --no-install-recommends \ 
    && apt-get install git -y

RUN /opt/netbox/venv/bin/pip install  --no-warn-script-location -r /plugin_requirements.txt

# These lines are only required if your plugin has its own static files.
COPY configuration/configuration.py /etc/netbox/config/configuration.py
RUN SECRET_KEY="dummy" /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input

Step-4: File docker-compose.override.yml to configuration overrides for existing services or entirely new services of netbox:

version: '3.4'
services:
  netbox:
    ports:
      - 8000:8080
    build:
      context: .
      dockerfile: Dockerfile-Plugins
    image: netbox:latest-plugins
  netbox-worker:
    image: netbox:latest-plugins
    build:
      context: .
      dockerfile: Dockerfile-Plugins
  netbox-housekeeping:
    image: netbox:latest-plugins
    build:
      context: .
      dockerfile: Dockerfile-Plugins

Step-5: Build and run docker-compose

docker-compose build --no-cache
docker-compose up -d

netbox-object-storage's People

Contributors

hungviet99 avatar congto 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.