-
Notifications
You must be signed in to change notification settings - Fork 128
Fix ignored file in devspace build #2663
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: main
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 |
|---|---|---|
|
|
@@ -9,3 +9,4 @@ | |
| !crates | ||
| !crates/ | ||
| !crates/** | ||
| !pxe/ipxe/local/embed.ipxe | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,3 +12,7 @@ | |
| !include | ||
| !include/ | ||
| !include/** | ||
| !pxe/ | ||
| !pxe/ipxe/ | ||
| !pxe/ipxe/local/ | ||
| !pxe/ipxe/local/embed.ipxe | ||
|
Comment on lines
+15
to
+18
Contributor
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. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Description: Cross-check pxe asset patterns across all three devspace dockerignore files
# Expected: Consistent un-ignore patterns or documented rationale for differences
echo "=== Dockerfile.api.dockerignore ==="
grep "^!" dev/deployment/devspace/Dockerfile.api.dockerignore | grep "pxe"
echo ""
echo "=== Dockerfile.bmc-proxy.dockerignore ==="
grep "^!" dev/deployment/devspace/Dockerfile.bmc-proxy.dockerignore | grep "pxe"
echo ""
echo "=== Dockerfile.machine-a-tron.dockerignore ==="
grep "^!" dev/deployment/devspace/Dockerfile.machine-a-tron.dockerignore | grep "pxe"Repository: NVIDIA/infra-controller Length of output: 397 Align dockerignore patterns across all three devspace build contexts. The three devspace Dockerfile build contexts employ substantively different patterns for including PXE assets:
This fragmentation across build contexts creates maintenance friction and makes it difficult to reason about whether each context correctly excludes/includes its required assets. Adopt a consistent pattern across all three files, or document in code comments why each diverges (e.g., if bmc-proxy has different asset requirements than the others). 🤖 Prompt for AI Agents |
||
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.
🧩 Analysis chain
🏁 Script executed:
Repository: NVIDIA/infra-controller
Length of output: 241
🏁 Script executed:
Repository: NVIDIA/infra-controller
Length of output: 238
🏁 Script executed:
Repository: NVIDIA/infra-controller
Length of output: 238
🏁 Script executed:
Repository: NVIDIA/infra-controller
Length of output: 238
🏁 Script executed:
Repository: NVIDIA/infra-controller
Length of output: 427
🏁 Script executed:
Repository: NVIDIA/infra-controller
Length of output: 95
🏁 Script executed:
Repository: NVIDIA/infra-controller
Length of output: 240
🏁 Script executed:
# Examine the referenced .dockerignore files cat dev/deployment/devspace/Dockerfile.api.dockerignore cat dev/deployment/devspace/Dockerfile.machine-a-tron.dockerignoreRepository: NVIDIA/infra-controller
Length of output: 543
🏁 Script executed:
# Show the full content of Dockerfile.bmc-proxy.dockerignore cat dev/deployment/devspace/Dockerfile.bmc-proxy.dockerignoreRepository: NVIDIA/infra-controller
Length of output: 213
Add hierarchical un-ignores for the nested
pxe/ipxe/local/embed.ipxefile in Dockerfile.bmc-proxy.dockerignore.The
.dockerignorefile ignores all files (**) at the top level, then attempts to un-ignore!pxe/ipxe/local/embed.ipxe. However, Docker's.dockerignoresemantics require parent directories to be explicitly un-ignored before a nested file can be accessed. The correspondingDockerfile.api.dockerignoreandDockerfile.machine-a-tron.dockerignorefiles correctly include the hierarchical un-ignores (!pxe/,!pxe/ipxe/,!pxe/ipxe/local/) that are absent from this file.Update
dev/deployment/devspace/Dockerfile.bmc-proxy.dockerignoreto include:This ensures consistency across all three Dockerfile-specific
.dockerignorefiles and guarantees the file is properly included in the Docker build context.🤖 Prompt for AI Agents