@prover-coder-ai/docker-git 1.0.27 → 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 +19 -0
- package/dist/src/docker-git/main.js +6 -4
- package/dist/src/docker-git/main.js.map +1 -1
- package/package.json +6 -6
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"]`;
|
|
@@ -5031,9 +5031,11 @@ const ensureClaudeCliReady = (projectDir, containerName) => pipe(
|
|
|
5031
5031
|
claudeCliSelfHealScript
|
|
5032
5032
|
])
|
|
5033
5033
|
),
|
|
5034
|
-
Effect.flatMap(
|
|
5035
|
-
`Claude CLI self-heal
|
|
5036
|
-
|
|
5034
|
+
Effect.flatMap(
|
|
5035
|
+
(healExitCode) => healExitCode === 0 ? Effect.log(`Claude CLI self-heal completed in ${containerName}.`) : Effect.logWarning(
|
|
5036
|
+
`Claude CLI self-heal failed in ${containerName} (exit ${healExitCode}).`
|
|
5037
|
+
)
|
|
5038
|
+
),
|
|
5037
5039
|
Effect.asVoid
|
|
5038
5040
|
);
|
|
5039
5041
|
}),
|