Skip to main content

Install and run Infrahub Exporter

This guide walks you through installing and running the Infrahub Exporter on your system.

Installation

Choose one of the following methods to install Infrahub Exporter.

Using poetry

  1. Clone the repository
git clone https://github.com/opsmill/infrahub-exporter.git
cd infrahub-exporter
  1. Install dependencies
poetry install
  1. Configure your exporter

See the Configuration guide

  1. Run the exporter
poetry run python -m infrahub_exporter --config path/to/config.yml
  1. Clone the repository
git clone https://github.com/opsmill/infrahub-exporter.git
cd infrahub-exporter
  1. Build the Docker image
cd development
docker build . -t infrahub-exporter
  1. Configure your exporter

See the Configuration guide

  1. Run the container
docker run \
-v "path/to/config.yml:/app/config.yml" \
-p 8001:8001 \
infrahub-exporter