-
Notifications
You must be signed in to change notification settings - Fork 859
Adding --local flag to opik.sh for local development mode #2767
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
Adding --local flag to opik.sh for local development mode #2767
Conversation
Python Backend Tests Results41 tests 39 ✅ 2m 54s ⏱️ Results for commit 25b4854. ♻️ This comment has been updated with latest results. |
Backend Tests Results4 368 tests 4 365 ✅ 20m 56s ⏱️ Results for commit 25b4854. ♻️ This comment has been updated with latest results. |
f26c57b
to
50f9047
Compare
50f9047
to
b3d19fe
Compare
7750812
to
1345a74
Compare
dcec4fb
to
76b934c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds local development functionality to the opik.sh
and opik.ps1
scripts, allowing developers to run frontend and backend services locally while using containerized dependencies. The implementation supports automatic configuration, database migrations, and provides a unified development environment setup.
Key changes include:
- Addition of
--local
flag for starting local development environment with containerized dependencies - Addition of
--migrate
flag for running database migrations in local mode - Comprehensive local development workflow including requirement checks, configuration management, and service orchestration
Reviewed Changes
Copilot reviewed 2 out of 6 changed files in this pull request and generated 7 comments.
File | Description |
---|---|
opik.sh | Adds local development functions, colored logging, and command-line flag handling for bash environments |
opik.ps1 | Implements equivalent local development functionality for PowerShell environments with Windows compatibility |
76b934c
to
5cfe491
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR has similar problems to its predecesor: #2753
Basically, it copies and pastes lots of logic, configuration etc. that it's already exits across the different scripts, docker files etc. This would become very hard to maintain.
I suggest again exploring the approach with docker groups as suggested in OPIK-1095. With that, you can accomplish what you want quite easily.
Closed due to inactivity. Reopen if needed. |
Supporting --local flag & --local --migrate which runs frontend & backend locally along side with the needed containers for local development
Screen.Recording.2025-07-18.at.14.13.14.mov