Skip to content

Commit 0766c0b

Browse files
authored
fix(doc): add more info for Docker test (#43)
1 parent d16e420 commit 0766c0b

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

tools/docker/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ INFO: Creating docker container
109109
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
110110
INFO: Copy goss files into container
111111
INFO: Starting docker container
112-
INFO: Container ID: e7e419dc
112+
INFO: Container ID: 080c92c3e40b575999df863d05eb0ef85899477b1188951fd4506697372d70c1
113113
INFO: Found goss_wait.yaml, waiting for it to pass before running tests
114114
INFO: Sleeping for 1.0
115115
INFO: Running Tests
@@ -123,6 +123,7 @@ INFO: Running Tests
123123
BUILD SUCCESSFUL in 47s
124124
2 actionable tasks: 2 executed
125125
```
126+
It will automatically remove the test container it starts. If, for any reason, this process is manually killed, you can find the container ID from the log message "Container ID: xxxxxx" and manually remove the test container using `docker rm -f xxxxxx`.
126127

127128
## Troubleshooting
128129

tools/docker/tests/dgoss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ setup_container(){
6060
esac
6161

6262
log_pid=$!
63-
info "Container ID: ${id:0:8}"
63+
info "Container ID: ${id}"
6464
}
6565

6666
get_file_from_docker() {

tools/trond/cmd/docker/test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ var testCmd = &cobra.Command{
2020
2121
1. Perform port checks
2222
2. Verify whether block synchronization is functioning normally
23+
3. Automatically remove the test container it starts. If, for any reason, this process is manually killed, you can find the container ID from the log message "Container ID: xxxxxx" and manually remove the test container using "docker rm -f xxxxxx".
2324
2425
It is used to test TRON Mainnet block synchronization within the docker container. It has a timeout limit of 1000 seconds and may encounter the error “ERROR: goss_wait.yaml never passed” due to network issues or timeouts. If this happens, please check your network status and try again.
2526
`),

tools/trond/docs/trond_docker_test.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ The test includes the following tasks:
1010

1111
1. Perform port checks
1212
2. Verify whether block synchronization is functioning normally
13+
3. Automatically remove the test container it starts. If, for any reason, this process is manually killed, you can find the container ID from the log message "Container ID: xxxxxx" and manually remove the test container using "docker rm -f xxxxxx".
1314

1415
It is used to test TRON Mainnet block synchronization within the docker container. It has a timeout limit of 1000 seconds and may encounter the error “ERROR: goss_wait.yaml never passed” due to network issues or timeouts. If this happens, please check your network status and try again.
1516

0 commit comments

Comments
 (0)