diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..ed50e27 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,9 @@ +# Force LF for all text files in this repo (Linux container target) +* text=auto eol=lf + +# Explicitly mark shell scripts and JS as LF +*.sh text eol=lf +*.js text eol=lf + +# Binary files +*.gz binary diff --git a/.gitignore b/.gitignore index 5fcf601..3b6468a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,9 @@ .env *.env.local +# Local dev overrides (niet committen, per ontwikkelaar) +docker-compose.override.yml + # Logs (lokaal testen) *.log *.log.gz diff --git a/Dockerfile b/Dockerfile index 36aa439..49bd7ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,16 +36,16 @@ RUN curl -fsSL https://claude.ai/install.sh | bash -s ${CLAUDE_CODE_VERSION} \ && claude --version # ----- scrum4me-mcp ------------------------------------------------------ -# Clone met submodules zodat vendor/scrum4me (Prisma-schema) meekomt. -# Pin via build-arg; default = main, in productie altijd op een commit-sha. +# Clone zonder submodules — de Prisma-schema zit al gecommit in het repo. +# De vendor/scrum4me submodule is alleen nodig om het schema te updaten, +# niet om te builden. Pin via build-arg; default = main. ARG MCP_GIT_REPO=https://github.com/madhura68/scrum4me-mcp.git ARG MCP_GIT_REF=main -RUN git clone --recurse-submodules --branch ${MCP_GIT_REF} --depth 1 \ +RUN git clone --branch ${MCP_GIT_REF} --depth 1 \ ${MCP_GIT_REPO} /opt/scrum4me-mcp \ && cd /opt/scrum4me-mcp \ && npm ci --omit=dev --omit=optional || npm install --omit=dev \ - && (npm run sync-schema || true) \ && npx prisma generate # ----- non-root user ----------------------------------------------------- @@ -68,7 +68,7 @@ COPY --chown=agent:agent mcp-config.json ./ RUN chmod +x ./bin/*.sh # ----- runtime config ---------------------------------------------------- -ENV PATH=/opt/agent/bin:/usr/local/bin:/usr/bin:/bin \ +ENV PATH=/opt/agent/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ HOME=/home/agent \ NPM_CONFIG_CACHE=/var/cache/npm \ PNPM_HOME=/var/cache/pnpm \ diff --git a/_lib.sh b/bin/_lib.sh similarity index 100% rename from _lib.sh rename to bin/_lib.sh diff --git a/check-tokens.sh b/bin/check-tokens.sh similarity index 100% rename from check-tokens.sh rename to bin/check-tokens.sh diff --git a/entrypoint.sh b/bin/entrypoint.sh similarity index 100% rename from entrypoint.sh rename to bin/entrypoint.sh diff --git a/health-server.js b/bin/health-server.js similarity index 100% rename from health-server.js rename to bin/health-server.js diff --git a/job-cleanup.sh b/bin/job-cleanup.sh similarity index 100% rename from job-cleanup.sh rename to bin/job-cleanup.sh diff --git a/job-prepare.sh b/bin/job-prepare.sh similarity index 100% rename from job-prepare.sh rename to bin/job-prepare.sh diff --git a/rotate-logs.sh b/bin/rotate-logs.sh similarity index 100% rename from rotate-logs.sh rename to bin/rotate-logs.sh diff --git a/run-agent.sh b/bin/run-agent.sh similarity index 100% rename from run-agent.sh rename to bin/run-agent.sh diff --git a/etc/.gitkeep b/etc/.gitkeep new file mode 100644 index 0000000..e69de29