Skip to content

Commit

Permalink
NO-JIRA: Expose MySQL for local development (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrescrz authored Sep 11, 2024
1 parent 7361c9d commit 63ebd8b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build_and_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ set -e
OPIK_BACKEND="opik-backend"
OPIK_FRONTEND="opik-frontend"
OPIK_CLICKHOUSE="clickhouse-opik-clickhouse"
OPIK_MYSQL="opik-mysql"
OPIK_FRONTEND_PORT=5173
OPIK_BACKEND_PORT=8080
OPIK_OPENAPI_PORT=3003
OPIK_CLICKHOUSE_PORT=8123
OPIK_MYSQL_PORT=3306
DOCKER_REGISTRY_LOCAL="local"
BUILD=true
FE_BUILD=true
Expand Down Expand Up @@ -169,4 +171,9 @@ echo "### Port-forward Clickhouse to local host"
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 "### Port-forward MySQL to local host"
# remove the previous port-forward
ps -ef | grep "svc/${OPIK_MYSQL} ${OPIK_MYSQL_PORT}" | grep -v grep | awk '{print $2}' | xargs kill || true
kubectl port-forward svc/${OPIK_MYSQL} ${OPIK_MYSQL_PORT} &

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

0 comments on commit 63ebd8b

Please sign in to comment.