Skip to content

Commit 4b5c59b

Browse files
docs(java-dedup): document direct docker run replay
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
1 parent eef32f4 commit 4b5c59b

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

java-dedup/README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,22 @@ keploy dedup --path .
4747
During `keploy test`, Enterprise rewrites the Compose file and injects its own shared `/tmp` volume for the dedup control/data sockets. The base sample Compose file does not need a host `/tmp` bind mount.
4848
Re-run `docker compose build` whenever the jar, JaCoCo agent, or Dockerfile changes so replay uses the current image.
4949

50-
The CI pipeline also validates additional production-style Docker layouts for the same app, including exploded classpath, restricted runtime, and distroless packaging.
50+
## Run dedup with direct Docker
51+
52+
```bash
53+
docker compose build
54+
keploy test \
55+
-c "docker run --rm --name dedup-java -p 8080:8080 java-dedup:local" \
56+
--container-name "dedup-java" \
57+
--host "127.0.0.1" \
58+
--dedup --language java --delay 1 \
59+
--health-url "http://127.0.0.1:8080/healthz" \
60+
--health-poll-timeout 30s \
61+
--disableMockUpload --disableReportUpload
62+
63+
keploy dedup --path .
64+
```
65+
66+
During direct `docker run`, Enterprise injects the same shared `/tmp` volume into the app container. Do not pass your own `/tmp` mount in the app command.
67+
68+
The CI pipeline also validates additional production-style Docker layouts for the same app, including direct Docker run, exploded classpath, restricted runtime, and distroless packaging.

0 commit comments

Comments
 (0)