@@ -56,15 +56,15 @@ This prevents confusion from old test runs and makes it easier to identify curre
5656Build and start the Docker container in detached mode:
5757
5858``` bash
59- docker- compose up -d --build --wait
59+ docker compose up -d --build --wait
6060```
6161
6262### Step 4: Start Server in RECORD Mode
6363
6464Start the application server in RECORD mode to capture network traffic:
6565
6666``` bash
67- docker- compose exec -e TUSK_DRIFT_MODE=RECORD app sh -c " npm run build && npm run dev"
67+ docker compose exec -e TUSK_DRIFT_MODE=RECORD app sh -c " npm run build && npm run dev"
6868```
6969
7070Wait a few seconds for the server to fully start (5-10 seconds recommended):
@@ -79,10 +79,10 @@ Use `curl` to make requests to the endpoints you want to test. You can hit one o
7979
8080``` bash
8181# Example: GET request
82- docker- compose exec app curl -s http://localhost:3000/test/fetch-get
82+ docker compose exec app curl -s http://localhost:3000/test/fetch-get
8383
8484# Example: POST request with JSON body
85- docker- compose exec app curl -s -X POST -H " Content-Type: application/json" \
85+ docker compose exec app curl -s -X POST -H " Content-Type: application/json" \
8686 -d ' {"title":"test","body":"test body"}' \
8787 http://localhost:3000/test/fetch-post
8888```
@@ -102,7 +102,7 @@ sleep 3
102102Stop the Node.js server process:
103103
104104``` bash
105- docker- compose exec app pkill -f " node" || true
105+ docker compose exec app pkill -f " node" || true
106106sleep 2
107107```
108108
@@ -111,7 +111,7 @@ sleep 2
111111Run the Tusk CLI to replay the recorded traces:
112112
113113``` bash
114- docker- compose exec -T app tusk run --print --output-format " json" --enable-service-logs
114+ docker compose exec -T app tusk run --print --output-format " json" --enable-service-logs
115115```
116116
117117** Flags explained:**
@@ -180,7 +180,7 @@ When you need to fix instrumentation code:
180180When you're done testing, clean up the Docker containers:
181181
182182``` bash
183- docker- compose down
183+ docker compose down
184184```
185185
186186## Important Notes
@@ -242,26 +242,26 @@ Use `run.sh` for full test runs, and use the manual steps above for iterative de
242242rm -rf .tusk/traces/* .tusk/logs/*
243243
244244# Start containers
245- docker- compose up -d --build
245+ docker compose up -d --build
246246
247247# Start server in RECORD mode
248- docker- compose exec -d -e TUSK_DRIFT_MODE=RECORD app sh -c "npm run build && npm run dev"
248+ docker compose exec -d -e TUSK_DRIFT_MODE=RECORD app sh -c "npm run build && npm run dev"
249249
250250# Stop server
251- docker- compose exec app pkill -f "node" || true
251+ docker compose exec app pkill -f "node" || true
252252
253253# Run tests
254- docker- compose exec -T app tusk run --print --output-format "json" --enable-service-logs
254+ docker compose exec -T app tusk run --print --output-format "json" --enable-service-logs
255255
256256# View logs
257- docker- compose exec app ls .tusk/logs
258- docker- compose exec app cat .tusk/logs/<log-file>
257+ docker compose exec app ls .tusk/logs
258+ docker compose exec app cat .tusk/logs/<log-file>
259259
260260# Rebuild SDK (from repo root)
261261npm run build
262262
263263# Clean up containers
264- docker- compose down
264+ docker compose down
265265
266266# Run full automated test
267267./run.sh
0 commit comments