Upgrade grafana-sidecar 1.28.0 → 2.6.0 + container.py port #332

Merged
eblume merged 4 commits from grafana-sidecar-2.6.0 into main 2026-04-13 07:57:14 -07:00
Showing only changes of commit d1b62a38d5 - Show all commits

Compact find command in grafana-sidecar container.py

Use sh -c with implicit string concatenation to keep the find command
readable as a single shell expression.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Erich Blume 2026-04-13 07:31:44 -07:00

View file

@ -34,35 +34,13 @@ async def build(src: dagger.Directory) -> dagger.Container:
.with_exec([".venv/bin/pip", "install", "--no-cache-dir", "."]) .with_exec([".venv/bin/pip", "install", "--no-cache-dir", "."])
.with_exec( .with_exec(
[ [
"find", "sh",
"/app/.venv", "-c",
"(", "find /app/.venv"
"-type", " \\( -type d -a -name test -o -name tests \\)"
"d", " -o \\( -type f -a -name '*.pyc' -o -name '*.pyo' \\)"
"-a", " -exec rm -rf {} +",
"-name", ]
"test",
"-o",
"-name",
"tests",
")",
"-o",
"(",
"-type",
"f",
"-a",
"-name",
"*.pyc",
"-o",
"-name",
"*.pyo",
")",
"-exec",
"rm",
"-rf",
"{}",
"+",
],
) )
) )