Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NO-JIRA] Port forward Clickhouse to localhost #159

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions build_and_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ set -e

OPIK_BACKEND="opik-backend"
OPIK_FRONTEND="opik-frontend"
OPIK_CLICKHOUSE="clickhouse-opik-clickhouse"
OPIK_FRONTEND_PORT=5173
OPIK_BACKEND_PORT=8080
OPIK_OPENAPI_PORT=3003
OPIK_CLICKHOUSE_PORT=8123
DOCKER_REGISTRY_LOCAL="local"
BUILD=true
FE_BUILD=true
Expand Down Expand Up @@ -163,4 +165,9 @@ echo "### Port-forward Open API to local host"
ps -ef | grep "svc/${OPIK_BACKEND} ${OPIK_OPENAPI_PORT}" | grep -v grep | awk '{print $2}' | xargs kill || true
kubectl port-forward svc/${OPIK_BACKEND} ${OPIK_OPENAPI_PORT} &

echo "### Port-forward Clickhouse to local host"
# remove the previous port-forward
ps -ef | grep "svc/${OPIK_CLICKHOUSE} ${OPIK_CLICKHOUSE_PORT}" | grep -v grep | awk '{print $2}' | xargs kill || true
kubectl port-forward svc/${OPIK_CLICKHOUSE} ${OPIK_CLICKHOUSE_PORT} &

echo "Now you can open your browser and connect http://localhost:${OPIK_FRONTEND_PORT}"