Skip to content

Commit

Permalink
optimize ci and doc
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhoublue committed Jul 31, 2023
1 parent d6a947a commit 47d477e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,10 @@ install_kwok:
.PHONY: run_nettool_server
run_nettool_server: load_nettool_image
echo "delete nettool server container"
-@ { docker rm --name $(NETTOOLS_SERVER_A) }
-@ { docker rm --name $(NETTOOLS_SERVER_B) }
-@ docker stop $(NETTOOLS_SERVER_A) &>/dev/null
-@ docker rm $(NETTOOLS_SERVER_A) &>/dev/null
-@ docker stop $(NETTOOLS_SERVER_B) &>/dev/null
-@ docker rm $(NETTOOLS_SERVER_B) &>/dev/null
echo "run nettool server container"
{ docker run -itd --name $(NETTOOLS_SERVER_A) --network kind $(NETTOOLS_IMAGE) $(NETTOOLS_SERVER_BIN) -protocol $(MOD) -tcpPort $(TCP_PORT) --udpPort $(UDP_PORT) -webPort $(WEB_PORT) & } || { echo "failed to run nettools server a"; exit 1; }; \
{ docker run -itd --name $(NETTOOLS_SERVER_B) --network kind $(NETTOOLS_IMAGE) $(NETTOOLS_SERVER_BIN) -protocol $(MOD) -tcpPort $(TCP_PORT) --udpPort $(UDP_PORT) -webPort $(WEB_PORT) & } || { echo "failed to run nettools server b"; exit 1; }; \
Expand Down

0 comments on commit 47d477e

Please sign in to comment.