File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -74,10 +74,20 @@ main() {
74
74
ws_port=${ws_endpoint##*: }
75
75
ws_port=${ws_port%/* }
76
76
77
+ port_args=(
78
+ -R " ${ws_port} :127.0.0.1:${ws_port} "
79
+ -L " ${port} :127.0.0.1:${port} "
80
+ )
81
+
82
+ # Also forward prometheus, pprof, and gitauth ports.
83
+ for p in 2114 6061 50515 50516; do
84
+ port_args+=(-L " ${p} :127.0.0.1:${p} " )
85
+ done
86
+
77
87
echo
78
88
echo " Starting SSH tunnel, run test via \" pnpm run playwright:test\" ..."
79
89
# shellcheck disable=SC2029 # This is intended to expand client-side.
80
- ssh -t -R " ${ws_port} :127.0.0.1: ${ws_port} " -L " ${port} :127.0.0.1: ${port }" coder." ${workspace} " " export CODER_E2E_PORT='${port} '; export CODER_E2E_WS_ENDPOINT='${ws_endpoint} '; [[ -d '${coder_repo} /site' ]] && cd '${coder_repo} /site'; exec \"\$ (grep \"\$ {USER}\" : /etc/passwd | cut -d: -f7)\" -i -l"
90
+ ssh -t " ${port_args[@] } " coder." ${workspace} " " export CODER_E2E_PORT='${port} '; export CODER_E2E_WS_ENDPOINT='${ws_endpoint} '; [[ -d '${coder_repo} /site' ]] && cd '${coder_repo} /site'; exec \"\$ (grep \"\$ {USER}\" : /etc/passwd | cut -d: -f7)\" -i -l"
81
91
}
82
92
83
93
main
You can’t perform that action at this time.
0 commit comments