-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[25.1] Fix Docker build issues for k8s_ci container #21593
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: release_25.1
Are you sure you want to change the base?
Conversation
Makes Galaxy's lib/ modules (galaxy, galaxy_ext, tool_shed, etc.) importable without requiring the full Galaxy startup.
The pattern `node_modules` only matches at the root level in .dockerignore (unlike .gitignore). Use `**/node_modules` to exclude client/node_modules and avoid copying 22GB to the build context.
The ansible role passes requirement lines directly to pip as CLI arguments. Newer pip versions reject inline comments like `# type: webdav`. Strip these before running the playbook.
| COPY . $SERVER_DIR/ | ||
|
|
||
| # Strip inline comments from conditional-requirements.txt (ansible role passes lines directly to pip) | ||
| RUN sed -i 's/[[:space:]]*# type:.*$//' $SERVER_DIR/lib/galaxy/dependencies/conditional-requirements.txt |
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.
I'd imagine this would also be an issue for ansible-galaxy ?
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.
|
|
||
| ENV PATH="$SERVER_DIR/.venv/bin:${PATH}" | ||
| ENV GALAXY_CONFIG_CONDA_AUTO_INIT=False | ||
| ENV PYTHONPATH="$SERVER_DIR/lib/" |
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.
Does that not mess with the tool execution environment ? it may be fine but may also be a gotcha later on
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.
Would love a sanity check from other deployments of the container -- this fixed problems I had but I can maintain it as a patch if need be.
# type:comments from conditional-requirements.txt before ansible runs (newer pip rejects them as CLI args)How to test the changes?
(Select all options that apply)
License