Add AI tools utility image
Build custom container images / build (map[build_args:PG_VERSION=18 POSTGIS_VERSION=3 VCHORD_VERSION=0.5.3 context:postgres name:postgres-custom tags:git.ajpanton.se/ajp_anton/postgres-custom:18 git.ajpanton.se/ajp_anton/postgres-custom:18-postgis3-vchord0.5.3 git.ajpanton.se/ajp_an… (push) Successful in 2m58s
Build custom container images / build (map[build_args:PHP_VERSION=8 context:php8-pgsql name:php8-pgsql tags:git.ajpanton.se/ajp_anton/php8-pgsql:8 git.ajpanton.se/ajp_anton/php8-pgsql:8-fpm-alpine git.ajpanton.se/ajp_anton/php8-pgsql:latest ]) (push) Successful in 40s
Build custom container images / build (map[build_args:PYTHON_VERSION=3 context:ai-tools-utils name:ai-tools-utils tags:git.ajpanton.se/ajp_anton/ai-tools-utils:3 git.ajpanton.se/ajp_anton/ai-tools-utils:latest ]) (push) Successful in 45s
Build custom container images / build (map[build_args:PYTHON_VERSION=3.13 context:ai-tools-utils name:ai-tools-utils-3.13 tags:git.ajpanton.se/ajp_anton/ai-tools-utils:3.13 ]) (push) Successful in 42s

This commit is contained in:
ajp_anton
2026-06-27 19:20:04 +00:00
parent 4b9a91ba7e
commit 4176949552
3 changed files with 49 additions and 0 deletions
+13
View File
@@ -45,6 +45,19 @@ jobs:
git.ajpanton.se/ajp_anton/php8-pgsql:latest
build_args: |
PHP_VERSION=8
- name: ai-tools-utils
context: ai-tools-utils
tags: |
git.ajpanton.se/ajp_anton/ai-tools-utils:3
git.ajpanton.se/ajp_anton/ai-tools-utils:latest
build_args: |
PYTHON_VERSION=3
- name: ai-tools-utils-3.13
context: ai-tools-utils
tags: |
git.ajpanton.se/ajp_anton/ai-tools-utils:3.13
build_args: |
PYTHON_VERSION=3.13
steps:
- name: Check out repository
+23
View File
@@ -12,6 +12,7 @@ a few commonly useful database/runtime extensions.
| --- | --- |
| `git.ajpanton.se/ajp_anton/postgres-custom:18` | PostgreSQL 18 with selected extension packages installed and `pg_cron`/VectorChord preloaded. |
| `git.ajpanton.se/ajp_anton/php8-pgsql:8` | PHP 8 FPM on Alpine with PostgreSQL client runtime support and the `pdo_pgsql` PHP extension enabled. |
| `git.ajpanton.se/ajp_anton/ai-tools-utils:3` | Python 3 utility image with ExifTool for AI/helper workflows. |
## Included Components
@@ -64,22 +65,44 @@ Compiled PHP extension:
The compiled extension and PHP config are copied from a build stage into the
final runtime image.
### `ai-tools-utils`
Base image:
- `python:3` for the `:3` and `:latest` tags.
- `python:3.13` for the `:3.13` tag.
- Minor and patch releases are picked up when each image is rebuilt.
Installed from Debian apt repositories:
- `ca-certificates`
- `exiftool`
Intended use:
- Run small helper scripts mounted at runtime, for example media metadata
extraction scripts used by local AI tools.
- Keep host systems clean by avoiding host-level package installs.
## Tags
Moving deployment tags:
- `git.ajpanton.se/ajp_anton/postgres-custom:18`
- `git.ajpanton.se/ajp_anton/php8-pgsql:8`
- `git.ajpanton.se/ajp_anton/ai-tools-utils:3`
Descriptive tags:
- `git.ajpanton.se/ajp_anton/postgres-custom:18-postgis3-vchord0.5.3`
- `git.ajpanton.se/ajp_anton/php8-pgsql:8-fpm-alpine`
- `git.ajpanton.se/ajp_anton/ai-tools-utils:3.13`
Convenience tags:
- `git.ajpanton.se/ajp_anton/postgres-custom:latest`
- `git.ajpanton.se/ajp_anton/php8-pgsql:latest`
- `git.ajpanton.se/ajp_anton/ai-tools-utils:latest`
Tags are mutable. The digest behind a tag may change after a rebuild even when
the tag name stays the same.
+13
View File
@@ -0,0 +1,13 @@
ARG PYTHON_VERSION=3
FROM python:${PYTHON_VERSION}
RUN set -eux; \
apt-get update; \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates \
exiftool; \
rm -rf /var/lib/apt/lists/*
WORKDIR /work
CMD ["python3", "--version"]