AI-powered Docker assistant — detects your stack, generates Dockerfile & compose, debugs containers.
Project description
stackai-cli
AI-powered Docker assistant. No configuration needed.
stackai analyzes your project, generates an optimized Dockerfile and docker-compose, and debugs your containers using a local AI model — all in a single command.
Installation
pip install stackai-cli
stackai debugrequires Ollama running locally withollama pull llama3.
Commands
stackai init — Generate Docker files from your project
cd my-project
stackai init
🔍 Analyzing project...
✅ Stack detected: python / fastapi + postgres + redis
⚙️ Generating Docker files...
✅ Dockerfile created
✅ .dockerignore created
✅ docker-compose.yaml created
🚀 Ready! Run: docker compose up -d
stackai scan — Inspect detected stack without generating files
stackai scan
📦 Stack detected:
Language : python
Framework : fastapi
Port : 8000
Services : postgres, redis
Python ver. : 3.11
stackai debug — Analyze a failing container with AI
stackai debug my-container
📋 Latest logs:
─────────────────────────────────────────
Error: could not connect to postgres...
─────────────────────────────────────────
🤖 Running AI analysis...
💡 Analysis:
1. PROBLEM : The app cannot connect to PostgreSQL
2. CAUSE : The postgres container is not ready when the app starts
3. FIX : Add `depends_on: [postgres]` in your docker-compose.yaml
Supported Stacks
| Language | Detected Frameworks |
|---|---|
| Python | FastAPI, Flask, Django, generic |
| Node.js | Express, Next.js, Nuxt.js, React |
| Java | Spring Boot (Maven / Gradle) |
| Go | generic |
Auto-detected Services
postgres · redis · mongodb · mysql · elasticsearch
Requirements
- Python 3.10+
- Docker installed and running
- Ollama +
ollama pull llama3(only forstackai debug)
Contributing
Pull requests are welcome. For major changes, please open an issue first.
License
MIT © El Mehdi Boutahar
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stackai_cli-0.2.0.tar.gz.
File metadata
- Download URL: stackai_cli-0.2.0.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d886e62202a484fbd4d43c88fdaccd1d4ba7802630e70ae233df20b379a75dc5
|
|
| MD5 |
c99b1720d0312ab338d6cb0d30f6fb0f
|
|
| BLAKE2b-256 |
c6865301e5e2f0b0f43cbf8aa20a1d2d0ba2cfd97d6ebda8daf3198bf56f469a
|
Provenance
The following attestation bundles were made for stackai_cli-0.2.0.tar.gz:
Publisher:
publish.yml on MehdiB7/devai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stackai_cli-0.2.0.tar.gz -
Subject digest:
d886e62202a484fbd4d43c88fdaccd1d4ba7802630e70ae233df20b379a75dc5 - Sigstore transparency entry: 1702087602
- Sigstore integration time:
-
Permalink:
MehdiB7/devai@3eacce23e5babd44d3687b6574c2acff4ae657a3 -
Branch / Tag:
refs/tags/v0.2.0-release - Owner: https://github.com/MehdiB7
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3eacce23e5babd44d3687b6574c2acff4ae657a3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file stackai_cli-0.2.0-py3-none-any.whl.
File metadata
- Download URL: stackai_cli-0.2.0-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20b429a108928ca4c9c8883c1bba01268d552a99defde8a2295bcc55576b19ba
|
|
| MD5 |
90fc5ea303ac80b405cf01cb9de7e8cc
|
|
| BLAKE2b-256 |
dadb6706f2c7d428371fc00d8b1be6bcf71859079e56757bbb445ead010b7eac
|
Provenance
The following attestation bundles were made for stackai_cli-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on MehdiB7/devai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stackai_cli-0.2.0-py3-none-any.whl -
Subject digest:
20b429a108928ca4c9c8883c1bba01268d552a99defde8a2295bcc55576b19ba - Sigstore transparency entry: 1702087645
- Sigstore integration time:
-
Permalink:
MehdiB7/devai@3eacce23e5babd44d3687b6574c2acff4ae657a3 -
Branch / Tag:
refs/tags/v0.2.0-release - Owner: https://github.com/MehdiB7
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3eacce23e5babd44d3687b6574c2acff4ae657a3 -
Trigger Event:
push
-
Statement type: