Skip to content

Commit

Permalink
use localhost:port/timeplusd/ping instead localhost:port/ping (#785
Browse files Browse the repository at this point in the history
)

in the previous PR #713 
we introduced a new API also remove `localhost:port/ping` method, but we missed some changes in the script.

Co-authored-by: haohang <[email protected]>
  • Loading branch information
chhtimeplus and yokofly authored Jul 1, 2024
1 parent 8e5d292 commit 9c0c766
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/server/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ if [ -n "$(ls /docker-entrypoint-initdb.d/)" ] || [ -n "$PROTON_DB" ]; then
# check if proton is ready to accept connections
# will try to send ping proton via http_port (max 12 retries by default, with 1 sec timeout and 1 sec delay between retries)
tries=${PROTON_INIT_TIMEOUT:-12}
while ! wget --spider -T 1 -q "http://127.0.0.1:$HTTP_PORT/ping" 2>/dev/null; do
while ! wget --spider -T 1 -q "http://127.0.0.1:$HTTP_PORT/timeplusd/ping" 2>/dev/null; do
if [ "$tries" -le "0" ]; then
echo >&2 'Proton init process failed.'
exit 1
Expand Down
2 changes: 1 addition & 1 deletion examples/awesome-sensor-logger/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
proton:
image: ghcr.io/timeplus-io/proton:1.5.8-rc
image: ghcr.io/timeplus-io/proton:latest
pull_policy: always
ports:
- 3218:3218 #http port for JDBC driver, default streaming mode
Expand Down
2 changes: 1 addition & 1 deletion examples/coinbase/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.7'
name: coinbase
services:
proton:
image: ghcr.io/timeplus-io/proton:1.5.8-rc
image: ghcr.io/timeplus-io/proton:latest
pull_policy: always
ports:
- "3218:3218" # HTTP Streaming
Expand Down
2 changes: 1 addition & 1 deletion examples/hackernews/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:

proton:
image: ghcr.io/timeplus-io/proton:1.5.8-rc
image: ghcr.io/timeplus-io/proton:latest
pull_policy: always
ports:
- 8463:8463
Expand Down

0 comments on commit 9c0c766

Please sign in to comment.