|
| 1 | +# AgentReady Container |
| 2 | + |
| 3 | +Size-optimized container (683 MB) for headless environments and CI/CD. |
| 4 | + |
| 5 | +## Quick Start |
| 6 | + |
| 7 | +```bash |
| 8 | +# Pull latest |
| 9 | +podman pull ghcr.io/ambient-code/agentready:latest |
| 10 | + |
| 11 | +# Create output directory |
| 12 | +mkdir -p ~/agentready-reports |
| 13 | + |
| 14 | +# Assess repository |
| 15 | +podman run --rm \ |
| 16 | + -v /path/to/repo:/repo:ro \ |
| 17 | + -v ~/agentready-reports:/reports \ |
| 18 | + ghcr.io/ambient-code/agentready:latest \ |
| 19 | + assess /repo --output-dir /reports |
| 20 | + |
| 21 | +# Open reports |
| 22 | +open ~/agentready-reports/report-latest.html |
| 23 | +``` |
| 24 | + |
| 25 | +## Usage |
| 26 | + |
| 27 | +### Assess AgentReady Itself |
| 28 | + |
| 29 | +```bash |
| 30 | +# Clone AgentReady |
| 31 | +git clone https://github.com/ambient-code/agentready /tmp/agentready |
| 32 | + |
| 33 | +# Create output directory |
| 34 | +mkdir -p ~/agentready-reports |
| 35 | + |
| 36 | +# Run assessment |
| 37 | +podman run --rm \ |
| 38 | + -v /tmp/agentready:/repo:ro \ |
| 39 | + -v ~/agentready-reports:/reports \ |
| 40 | + ghcr.io/ambient-code/agentready:latest \ |
| 41 | + assess /repo --output-dir /reports |
| 42 | + |
| 43 | +# Open reports |
| 44 | +open ~/agentready-reports/report-latest.html |
| 45 | +``` |
| 46 | + |
| 47 | +### Assess Your Repository |
| 48 | + |
| 49 | +```bash |
| 50 | +# Create output directory |
| 51 | +mkdir -p ./agentready-reports |
| 52 | + |
| 53 | +# Local repository |
| 54 | +podman run --rm \ |
| 55 | + -v $(pwd):/repo:ro \ |
| 56 | + -v $(pwd)/agentready-reports:/reports \ |
| 57 | + ghcr.io/ambient-code/agentready:latest \ |
| 58 | + assess /repo --output-dir /reports |
| 59 | + |
| 60 | +# With additional options |
| 61 | +podman run --rm \ |
| 62 | + -v $(pwd):/repo:ro \ |
| 63 | + -v $(pwd)/agentready-reports:/reports \ |
| 64 | + ghcr.io/ambient-code/agentready:latest \ |
| 65 | + assess /repo --output-dir /reports --verbose |
| 66 | + |
| 67 | +# Exclude specific assessors |
| 68 | +podman run --rm \ |
| 69 | + -v $(pwd):/repo:ro \ |
| 70 | + -v $(pwd)/agentready-reports:/reports \ |
| 71 | + ghcr.io/ambient-code/agentready:latest \ |
| 72 | + assess /repo --output-dir /reports -e type_annotations -e test_coverage |
| 73 | +``` |
| 74 | + |
| 75 | +### Save Output Files |
| 76 | + |
| 77 | +```bash |
| 78 | +# Mount writable output directory |
| 79 | +podman run --rm \ |
| 80 | + -v /path/to/repo:/repo:ro \ |
| 81 | + -v $(pwd)/reports:/reports \ |
| 82 | + ghcr.io/ambient-code/agentready:latest \ |
| 83 | + assess /repo --output-dir /reports |
| 84 | + |
| 85 | +# Reports saved: report-*.html, report-*.md, assessment-*.json |
| 86 | +``` |
| 87 | + |
| 88 | +## Available Tags |
| 89 | + |
| 90 | +- `latest` - Latest stable release |
| 91 | +- `2.13.0` - Specific version |
| 92 | +- `2.13` - Major.minor version |
| 93 | +- `2` - Major version |
| 94 | + |
| 95 | +```bash |
| 96 | +# Pin to specific version |
| 97 | +podman pull ghcr.io/ambient-code/agentready:2.13.0 |
| 98 | +``` |
| 99 | + |
| 100 | +## Multi-Architecture Support |
| 101 | + |
| 102 | +Supports both amd64 and arm64: |
| 103 | + |
| 104 | +```bash |
| 105 | +# Automatically pulls correct architecture |
| 106 | +podman pull ghcr.io/ambient-code/agentready:latest |
| 107 | +``` |
| 108 | + |
| 109 | +## Docker Compatibility |
| 110 | + |
| 111 | +Replace `podman` with `docker`: |
| 112 | + |
| 113 | +```bash |
| 114 | +docker pull ghcr.io/ambient-code/agentready:latest |
| 115 | +docker run --rm \ |
| 116 | + -v $(pwd):/repo:ro \ |
| 117 | + -v $(pwd)/agentready-reports:/reports \ |
| 118 | + ghcr.io/ambient-code/agentready:latest \ |
| 119 | + assess /repo --output-dir /reports |
| 120 | +``` |
| 121 | + |
| 122 | +## CI/CD Integration |
| 123 | + |
| 124 | +### GitHub Actions |
| 125 | + |
| 126 | +```yaml |
| 127 | +- name: Run AgentReady Assessment |
| 128 | + run: | |
| 129 | + mkdir -p reports |
| 130 | + docker pull ghcr.io/ambient-code/agentready:latest |
| 131 | + docker run --rm \ |
| 132 | + -v ${{ github.workspace }}:/repo:ro \ |
| 133 | + -v ${{ github.workspace }}/reports:/reports \ |
| 134 | + ghcr.io/ambient-code/agentready:latest \ |
| 135 | + assess /repo --output-dir /reports |
| 136 | +
|
| 137 | +- name: Upload reports |
| 138 | + uses: actions/upload-artifact@v4 |
| 139 | + with: |
| 140 | + name: agentready-reports |
| 141 | + path: reports/ |
| 142 | +``` |
| 143 | +
|
| 144 | +### GitLab CI |
| 145 | +
|
| 146 | +```yaml |
| 147 | +agentready: |
| 148 | + image: ghcr.io/ambient-code/agentready:latest |
| 149 | + script: |
| 150 | + - mkdir -p reports |
| 151 | + - agentready assess . --output-dir reports |
| 152 | + artifacts: |
| 153 | + paths: |
| 154 | + - reports/ |
| 155 | +``` |
| 156 | +
|
| 157 | +## Building Locally |
| 158 | +
|
| 159 | +```bash |
| 160 | +# Clone repository |
| 161 | +git clone https://github.com/ambient-code/agentready |
| 162 | +cd agentready |
| 163 | + |
| 164 | +# Build container |
| 165 | +podman build -t agentready:local -f Containerfile.scratch . |
| 166 | + |
| 167 | +# Test |
| 168 | +podman run --rm agentready:local --version |
| 169 | +``` |
| 170 | + |
| 171 | +## Technical Details |
| 172 | + |
| 173 | +- **Base**: python:3.12-slim |
| 174 | +- **Size**: 683 MB |
| 175 | +- **User**: UID 1001 (non-root) |
| 176 | +- **Source**: PyPI (always latest agentready release) |
| 177 | +- **Output**: stdout/stderr (no volume mounts required) |
| 178 | + |
| 179 | +## Troubleshooting |
| 180 | + |
| 181 | +### Reports not accessible on host |
| 182 | + |
| 183 | +Mount a writable output directory to save reports to your host filesystem: |
| 184 | + |
| 185 | +```bash |
| 186 | +mkdir -p ~/agentready-reports |
| 187 | +podman run --rm \ |
| 188 | + -v /repo:/repo:ro \ |
| 189 | + -v ~/agentready-reports:/reports \ |
| 190 | + ghcr.io/ambient-code/agentready:latest \ |
| 191 | + assess /repo --output-dir /reports |
| 192 | +``` |
| 193 | + |
| 194 | +Without the `-v ~/agentready-reports:/reports` mount, reports written to `/tmp` inside the container are destroyed when the container exits. |
| 195 | + |
| 196 | +### Permission denied on mounted volumes |
| 197 | + |
| 198 | +Add SELinux context (`:Z` flag) on SELinux systems: |
| 199 | + |
| 200 | +```bash |
| 201 | +podman run --rm \ |
| 202 | + -v $(pwd):/repo:ro,Z \ |
| 203 | + -v $(pwd)/agentready-reports:/reports,Z \ |
| 204 | + ghcr.io/ambient-code/agentready:latest \ |
| 205 | + assess /repo --output-dir /reports |
| 206 | +``` |
| 207 | + |
| 208 | +## Links |
| 209 | + |
| 210 | +- **Container Registry**: https://github.com/ambient-code/agentready/pkgs/container/agentready |
| 211 | +- **Source Code**: https://github.com/ambient-code/agentready |
| 212 | +- **PyPI Package**: https://pypi.org/project/agentready/ |
| 213 | +- **Documentation**: https://ambient-code.github.io/agentready/ |
0 commit comments