Skip to content

feat: add Docker support for self-hosted deployment - #469

Closed
ajianaz wants to merge 2 commits into
developfrom
feat/docker-deploy
Closed

ajianaz wants to merge 2 commits into
developfrom
feat/docker-deploy

Conversation

@ajianaz

@ajianaz ajianaz commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

Docker image build + Woodpecker CI pipeline for deploying Cora to self-hosted infrastructure (Zot registry).

Changes

  • Dockerfile: Multi-stage build (rust:1.85-bookworm → debian:bookworm-slim), non-root user, ~15MB final image
  • .dockerignore: Exclude build artifacts, docs, tests, CI files from build context
  • .woodpecker.yml: Rust checks (check/fmt/clippy/test) on all pushes, Docker build & push to Zot on develop push + tags
  • docker-compose.yml: Local dev/deploy config with volume mounts for data persistence

Tagging strategy (auto_tag)

Trigger Tags
Push to develop :develop, :sha-xxxxxxx
Tag vX.Y.Z :vX.Y.Z, :latest

Required setup

  1. Woodpecker secrets: ZOT_USER, ZOT_PASS (same as Hompimpah)
  2. woodpeckerci/plugin-docker-buildx:5 in WOODPECKER_PLUGINS_PRIVILEGED

Cora review

Pre-commit cora review passed ✅ (fixed: libssl3 runtime dep, restart policy, non-root user)

ajianaz added 2 commits August 3, 2026 20:04
- Dockerfile: multi-stage build (rust:1.85-bookworm → debian:bookworm-slim)
  with libssl3 runtime dep, tree-sitter feature, ~15MB final image
- .dockerignore: exclude target, docs, vendored, tests, CI files
- .woodpecker.yml: CI pipeline with Rust checks (fmt/clippy/test) +
  Docker build & push to Zot registry (registry.azfirazka.com/cora)
  auto_tag: develop→:develop+:sha-xxx, tag→:vX.Y.Z+:latest
- docker-compose.yml: local dev/deploy config with volume mounts
@ajianaz

ajianaz commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator Author

Batal — salah repo. Yang diminta cora-api, bukan cora-code.

@ajianaz ajianaz closed this Aug 3, 2026
@ajianaz
ajianaz deleted the feat/docker-deploy branch August 3, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant