@prover-coder-ai/docker-git 1.0.28 → 1.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -37,6 +37,25 @@ pnpm run docker-git clone https://github.com/agiens/crm/issues/123 --force-env
37
37
  pnpm run docker-git clone https://github.com/agiens/crm/tree/vova-fork --force --mcp-playwright
38
38
  ```
39
39
 
40
+ ## API Docker (separate runtime)
41
+
42
+ HTTP API (`packages/api`) has a dedicated Docker image and compose file:
43
+
44
+ ```bash
45
+ docker compose -f docker-compose.api.yml up -d --build
46
+ curl -s http://127.0.0.1:3334/health
47
+ ```
48
+
49
+ By default API port `3334` is published to host (`127.0.0.1:3334`).
50
+
51
+ Useful env overrides:
52
+ - `DOCKER_GIT_API_BIND_HOST` (default: `127.0.0.1`)
53
+ - `DOCKER_GIT_API_PORT` (default: `3334`)
54
+ - `DOCKER_GIT_PROJECTS_ROOT_HOST` (host path, default: `/home/dev/.docker-git`)
55
+ - `DOCKER_GIT_PROJECTS_ROOT` (container path, default: `/home/dev/.docker-git`)
56
+
57
+ Detailed federation subscription workflow and JSON examples are documented in `packages/api/README.md`.
58
+
40
59
  ## Parallel Issues / PRs
41
60
 
42
61
  When you clone GitHub issue or PR URLs, docker-git creates isolated project paths and container names:
@@ -3806,7 +3806,7 @@ const renderDockerfileWorkspace = (config) => `# Workspace path (supports root-l
3806
3806
  RUN mkdir -p ${config.targetDir} && chown -R 1000:1000 /home/${config.sshUser} && if [ "${config.targetDir}" != "/" ]; then chown -R 1000:1000 "${config.targetDir}"; fi
3807
3807
 
3808
3808
  COPY entrypoint.sh /entrypoint.sh
3809
- RUN chmod +x /entrypoint.sh
3809
+ RUN sed -i 's/\r$//' /entrypoint.sh && chmod +x /entrypoint.sh
3810
3810
 
3811
3811
  EXPOSE 22
3812
3812
  ENTRYPOINT ["/entrypoint.sh"]`;