## Summary - Move devpi Dockerfile from argocd/manifests to containers/devpi/ - Add containers for: transmission, teslamate, miniflux, kiwix-serve, kubectl - Update all k8s deployments to use local images (registry.ops.eblu.me/blumeops/*) - All containers use v1.0.0 tag for initial release ## Containers Added | Container | Source | Notes | |-----------|--------|-------| | devpi | python:3.12-slim | Existing, moved to containers/ | | kubectl | alpine + download | For zim-watcher CronJob | | miniflux | Go build from source | v2.2.16 | | kiwix-serve | Download pre-built binary | v3.8.1 | | transmission | alpine + apk install | Simpler than linuxserver image | | teslamate | Elixir build from source | v2.2.0 | ## Deployment and Testing - [ ] Build and tag devpi-v1.0.0 - [ ] Build and tag kubectl-v1.0.0 - [ ] Build and tag miniflux-v1.0.0 - [ ] Build and tag kiwix-serve-v1.0.0 - [ ] Build and tag transmission-v1.0.0 - [ ] Build and tag teslamate-v1.0.0 - [ ] Sync ArgoCD apps and verify services 🤖 Generated with [Claude Code](https://claude.com/claude-code) Reviewed-on: https://forge.ops.eblu.me/eblume/blumeops/pulls/61
23 lines
650 B
Bash
23 lines
650 B
Bash
#!/usr/bin/env dash
|
|
set -e
|
|
|
|
: "${DATABASE_HOST:="127.0.0.1"}"
|
|
: "${DATABASE_PORT:=5432}"
|
|
: "${ULIMIT_MAX_NOFILE:=65536}"
|
|
|
|
# prevent memory bloat in some misconfigured versions of Docker/containerd
|
|
# where the nofiles limit is very large. 0 means don't set it.
|
|
if test "${ULIMIT_MAX_NOFILE}" != 0 && test "$(ulimit -n)" -gt "${ULIMIT_MAX_NOFILE}"; then
|
|
ulimit -n "${ULIMIT_MAX_NOFILE}"
|
|
fi
|
|
|
|
# wait until Postgres is ready
|
|
while ! nc -z "${DATABASE_HOST}" "${DATABASE_PORT}" 2>/dev/null; do
|
|
echo waiting for postgres at "${DATABASE_HOST}":"${DATABASE_PORT}"
|
|
sleep 1s
|
|
done
|
|
|
|
# apply migrations
|
|
bin/teslamate eval "TeslaMate.Release.migrate"
|
|
|
|
exec "$@"
|