-
Notifications
You must be signed in to change notification settings - Fork 0
newrelic preparation for inference-orchestrator. #161
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
+147
−14
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
af8e0b9
newrelic preparation for inference-orchestrator.
rostilos 3879f88
feat: Comment out JAVA_OPTS and related port mapping in pipeline-agen…
rostilos 6581b1b
feat: Add copying of pip-installed executables from builder stage to …
rostilos 936ee9f
feat: Remove Dockerfile for New Relic from inference-orchestrator
rostilos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule frontend
updated
2 files
| +5 −0 | src/api_service/analysis/analysisService.ts | |
| +73 −2 | src/pages/Account/Project/IssueDetails.tsx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| ### IntelliJ IDEA ### | ||
| .idea | ||
| *.iws | ||
| *.iml | ||
| *.ipr | ||
|
|
||
| target/ | ||
| !.mvn/wrapper/maven-wrapper.jar | ||
| !**/src/main/**/target/ | ||
| !**/src/test/**/target/ | ||
|
|
||
| .env | ||
| server.log | ||
| *.jar | ||
|
|
||
| logs/** | ||
| **/__pycache__/ | ||
| newrelic.ini |
File renamed without changes.
90 changes: 90 additions & 0 deletions
90
python-ecosystem/inference-orchestrator/src/Dockerfile.observable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| FROM python:3.11-slim-bullseye AS builder | ||
|
|
||
| # Set work directory | ||
| WORKDIR /app | ||
|
|
||
| # --- Builder Stage 1: Install Dependencies --- | ||
| COPY requirements.txt . | ||
|
|
||
| # Install build dependencies required by some Python packages | ||
| RUN apt-get update && \ | ||
| apt-get install -y --no-install-recommends \ | ||
| gcc \ | ||
| libc-dev \ | ||
| && apt-get clean && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Install Python dependencies | ||
| RUN pip install --no-cache-dir -r requirements.txt | ||
|
|
||
|
|
||
| # --- Builder Stage 2: Copy and Install Application Modules --- | ||
| # Copy application source code and the JAR | ||
| COPY main.py . | ||
| COPY api ./api/ | ||
| COPY server ./server/ | ||
| COPY model ./model/ | ||
| COPY service ./service/ | ||
| COPY utils ./utils/ | ||
| COPY llm ./llm/ | ||
| # Copy the JAR files (required by the Python service) | ||
| COPY codecrow-vcs-mcp-1.0.jar ./codecrow-vcs-mcp-1.0.jar | ||
| # Platform MCP JAR - if it exists (optional) | ||
| COPY codecrow-platform-mcp-1.0.jar* ./ | ||
|
|
||
| # --- Production Stage --- | ||
| FROM python:3.11-slim-bullseye | ||
|
|
||
| # CRITICAL FIX: Pull a slim JRE from eclipse-temurin instead of using apt-get | ||
| # This saves ~150-200MB compared to installing openjdk-17-jre-headless via apt | ||
| COPY --from=eclipse-temurin:17-jre /opt/java/openjdk /opt/java/openjdk | ||
| ENV JAVA_HOME=/opt/java/openjdk | ||
| ENV PATH="${JAVA_HOME}/bin:${PATH}" | ||
|
|
||
| RUN apt-get update && \ | ||
| apt-get install -y --no-install-recommends \ | ||
| curl && \ | ||
| apt-get clean && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Create non-root user and set permissions | ||
| RUN groupadd -r appuser && useradd -r -g appuser appuser | ||
| RUN mkdir -p /app && chown -R appuser:appuser /app | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| # Copy installed dependencies directly from the builder stage | ||
| COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages | ||
| # Copy pip-installed executables (newrelic-admin, uvicorn, etc.) | ||
| COPY --from=builder /usr/local/bin/ /usr/local/bin/ | ||
|
|
||
| # Copy application code from the builder stage | ||
| COPY --chown=appuser:appuser --from=builder /app/main.py ./ | ||
| COPY --chown=appuser:appuser --from=builder /app/api ./api/ | ||
| COPY --chown=appuser:appuser --from=builder /app/server ./server/ | ||
| COPY --chown=appuser:appuser --from=builder /app/model ./model/ | ||
| COPY --chown=appuser:appuser --from=builder /app/service ./service/ | ||
| COPY --chown=appuser:appuser --from=builder /app/utils ./utils/ | ||
| COPY --chown=appuser:appuser --from=builder /app/llm ./llm/ | ||
| # Copy the JAR files | ||
| COPY --chown=appuser:appuser --from=builder /app/codecrow-vcs-mcp-1.0.jar ./codecrow-vcs-mcp-1.0.jar | ||
| # Copy Platform MCP JAR if present | ||
| COPY --chown=appuser:appuser --from=builder /app/codecrow-platform-mcp-1.0.jar* ./ | ||
|
|
||
| # Set PYTHONPATH environment variable to include the current working directory. | ||
| ENV PYTHONPATH=/app | ||
|
|
||
| # ── New Relic observability ────────────────────────────────────────────────── | ||
| # The newrelic package is already installed via requirements.txt. | ||
| # Config file (newrelic.ini) is mounted at runtime via docker-compose volume. | ||
| ENV NEW_RELIC_CONFIG_FILE=/app/newrelic.ini | ||
| ENV NEW_RELIC_LOG_FILE_NAME=STDOUT | ||
|
|
||
| # Switch to non-root user | ||
| USER appuser | ||
|
|
||
| # Expose port (default for FastAPI/Uvicorn) | ||
| EXPOSE 8000 | ||
|
|
||
| # Run via newrelic-admin for APM instrumentation | ||
| CMD ["newrelic-admin", "run-program", "python", "main.py"] | ||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,3 +10,4 @@ langchain-anthropic>=1.0.0,<2.0.0 | |
| langchain-google-genai>=4.0.0 | ||
| mcp-use | ||
| redis>=5.0.0 | ||
| newrelic==11.5.0 | ||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.