-
Notifications
You must be signed in to change notification settings - Fork 386
Update docker-compose configs #789
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
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,16 +3,16 @@ FROM splunk/splunk:${SPLUNK_VERSION} | |
|
|
||
| USER root | ||
|
|
||
| # Copy splunk-mcp-server.tgz, we need to copy entire sdk since | ||
| # Copy splunk-mcp-server.tgz, we need to copy entire SDK since | ||
| # splunk-mcp-server.tgz might not exist and we don't want to fail in such case. | ||
| RUN mkdir /tmp/sdk | ||
| # TODO: Despite the comment, I don't get why we need to copy the entire SDK | ||
| COPY . /tmp/sdk | ||
| RUN /bin/bash -c 'if [ -f /tmp/sdk/splunk-mcp-server.tgz ]; then cp /tmp/sdk/splunk-mcp-server.tgz /splunk-mcp-server.tgz; fi' | ||
| RUN /bin/bash -c '[ -f /tmp/sdk/splunk-mcp-server.tgz ] && cp /tmp/sdk/splunk-mcp-server.tgz /splunk-mcp-server.tgz' | ||
| RUN rm -rf /tmp/sdk | ||
|
|
||
| RUN mkdir /tmp/sdk | ||
| COPY ./pyproject.toml /tmp/sdk/pyproject.toml | ||
| COPY ./uv.lock /tmp/sdk/uv.lock | ||
| COPY ./splunklib /tmp/sdk/splunklib | ||
|
|
||
| RUN mkdir /splunklib-deps | ||
|
|
@@ -24,8 +24,7 @@ USER splunk | |
|
|
||
| WORKDIR /tmp/sdk | ||
|
|
||
| RUN /opt/splunk/bin/python3.13 -m venv .venv | ||
| RUN /bin/bash -c "source .venv/bin/activate && LD_LIBRARY_PATH=/opt/splunk/lib python -m pip install '.[openai]' --target=/splunklib-deps" | ||
| RUN /bin/bash -c "LD_LIBRARY_PATH=/opt/splunk/lib /opt/splunk/bin/python3.13 -m pip install '.[openai]' --target=/splunklib-deps" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this change the fix of the CI? Why this happens? Python 3.13 was bundled already in previous version of splunk so i don't get the reason here.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (I think this change is fine, but just curious). |
||
|
|
||
| USER ${ANSIBLE_USER} | ||
| WORKDIR /opt/splunk | ||
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.
@mateusz834 pls help :oooo
Uh oh!
There was an error while loading. Please reload this page.
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.
Since you can't dynamically (present or not present) copy a file in Dockerfile. If it didn't exist then it would have failed.