Skip to content

Latest commit

 

History

History
111 lines (81 loc) · 2.49 KB

File metadata and controls

111 lines (81 loc) · 2.49 KB

Getting Started

Prerequisites

  • Docker 20.10+
  • A cloud provider account (AWS, Azure, GCP, etc.) for querying

Pull the image

# GitHub Container Registry (recommended)
docker pull ghcr.io/devops-ia/steampipe:v2.4.1

# Docker Hub
docker pull devopsiaci/steampipe:v2.4.1

Run as a query shell

Execute a one-off interactive SQL session:

docker run -it --rm \
  ghcr.io/devops-ia/steampipe:v2.4.1 \
  steampipe query

Run as a PostgreSQL service

Start Steampipe as a persistent background service accessible on port 9193:

docker run -d --name steampipe \
  -p 9193:9193 \
  ghcr.io/devops-ia/steampipe:v2.4.1 \
  steampipe service start --foreground --database-listen network

Verify it's running:

docker logs steampipe
# Look for: "Database is now running"

Install a plugin

Plugins are installed at runtime and stored in a volume for persistence:

# Create a named volume so plugins survive container restarts
docker volume create steampipe-data

docker run -d --name steampipe \
  -p 9193:9193 \
  -v steampipe-data:/home/steampipe/.steampipe \
  -e STEAMPIPE_DATABASE_PASSWORD=mypassword \
  ghcr.io/devops-ia/steampipe:v2.4.1 \
  steampipe service start --foreground --database-listen network

# Install the AWS plugin
docker exec steampipe steampipe plugin install aws

# List installed plugins
docker exec steampipe steampipe plugin list

Connect with a SQL client

Once the service is running, connect with any PostgreSQL-compatible client:

# psql
psql -h localhost -p 9193 -U steampipe -d steampipe

# DBeaver, TablePlus, DataGrip — use these connection settings:
# Host:     localhost
# Port:     9193
# Database: steampipe
# User:     steampipe
# Password: (see STEAMPIPE_DATABASE_PASSWORD or docker logs)

Run with Docker Compose

See examples/docker-compose.yml for a ready-to-use Compose setup.

cd examples
docker compose up -d
docker compose exec steampipe steampipe plugin install aws

Verify the query engine works

docker exec steampipe steampipe query "select 1 as test"
# Expected output:
# +------+
# | test |
# +------+
# | 1    |
# +------+

Next steps