Files
WHOOSH/Dockerfile
Claude Code 56ea52b743 Implement initial scan logic and council formation for WHOOSH project kickoffs
- Replace incremental sync with full scan for new repositories
- Add initial_scan status to bypass Since parameter filtering
- Implement council formation detection for Design Brief issues
- Add version display to WHOOSH UI header for debugging
- Fix Docker token authentication with trailing newline removal
- Add comprehensive council orchestration with Docker Swarm integration
- Include BACKBEAT prototype integration for distributed timing
- Support council-specific agent roles and deployment strategies
- Transition repositories to active status after content discovery

Key architectural improvements:
- Full scan approach for new project detection vs incremental sync
- Council formation triggered by chorus-entrypoint labeled Design Briefs
- Proper token handling and authentication for Gitea API calls
- Support for both initial discovery and ongoing task monitoring

This enables autonomous project kickoff workflows where Design Brief issues
automatically trigger formation of specialized agent councils for new projects.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-12 09:49:36 +10:00

74 lines
2.2 KiB
Docker

FROM golang:1.22-alpine AS builder
# Install build dependencies
RUN apk add --no-cache git ca-certificates tzdata
# Set working directory
WORKDIR /app
# Copy BACKBEAT dependency first
COPY BACKBEAT-prototype ./BACKBEAT-prototype/
# Copy go mod files first for better caching
COPY go.mod go.sum ./
# Download and verify dependencies
RUN go mod download && go mod verify
# Copy source code
COPY . .
# Create modified group file with docker group for container access
# Use GID 998 to match the host system's docker group
RUN cp /etc/group /tmp/group && \
echo "docker:x:998:65534" >> /tmp/group
# Build with optimizations and version info
ARG VERSION=v0.1.0-mvp
ARG COMMIT_HASH
ARG BUILD_DATE
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
-mod=mod \
-ldflags="-w -s -X main.version=${VERSION} -X main.commitHash=${COMMIT_HASH} -X main.buildDate=${BUILD_DATE}" \
-a -installsuffix cgo \
-o whoosh ./cmd/whoosh
# Final stage - minimal security-focused image
FROM scratch
# Copy timezone data and certificates from builder
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
# Copy passwd and modified group file for non-root user with docker access
COPY --from=builder /etc/passwd /etc/passwd
COPY --from=builder /tmp/group /etc/group
# Create app directory structure
WORKDIR /app
# Copy application binary and migrations
COPY --from=builder --chown=65534:65534 /app/whoosh /app/whoosh
COPY --from=builder --chown=65534:65534 /app/migrations /app/migrations
# Use nobody user (UID 65534) with docker group access (GID 998)
# Docker group was added to /etc/group in builder stage
USER 65534:998
# Expose port
EXPOSE 8080
# Health check using the binary itself
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
CMD ["/app/whoosh", "--health-check"]
# Set metadata
LABEL maintainer="CHORUS Ecosystem" \
description="WHOOSH - Autonomous AI Development Teams" \
org.opencontainers.image.title="WHOOSH" \
org.opencontainers.image.description="Orchestration platform for autonomous AI development teams" \
org.opencontainers.image.vendor="CHORUS Services"
# Run the application
ENTRYPOINT ["/app/whoosh"]
CMD []