Skip to content

Commit 43261e9

Browse files
sjarmakclaude
andcommitted
feat: migrate all 110 baseline Dockerfiles to sg-benchmarks mirror clones
Replace upstream github.com git clone operations with --depth 1 clones from pinned sg-benchmarks mirror repos across all baseline Dockerfiles (14 base images + 96 task Dockerfiles). This eliminates git history negotiation and provides 2-10x faster clone phases for large repos. Created 16 new mirrors (98 total): 3 parent-commit mirrors for debug tasks, 1 fallback resolution (envoy v1.31.2), and 12 tag-based mirrors for MCP-unique tasks (grafana, loki, kubernetes, node, express, numpy, pandas, scikit-learn, scipy, prometheus, curl, kafka). Adds scripts/migrate_dockerfiles_to_mirrors.py for automated Dockerfile rewriting with dry-run mode and pattern detection for 10+ clone variants. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fdbd724 commit 43261e9

File tree

113 files changed

+1467
-516
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+1467
-516
lines changed

base_images/Dockerfile.camel-1006f047

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
99
python3-pip \
1010
&& rm -rf /var/lib/apt/lists/*
1111

12-
RUN git clone --filter=blob:none --no-checkout https://github.com/apache/camel.git . && \
13-
git checkout 1006f047cdaba93c67df94219af608b993debc5a && \
12+
RUN git clone --depth 1 https://github.com/sg-benchmarks/camel--1006f047.git . && \
1413
git config user.email "agent@example.com" && \
1514
git config user.name "Agent"

base_images/Dockerfile.curl-09e25b9d

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1111
bc \
1212
&& rm -rf /var/lib/apt/lists/*
1313

14-
RUN git clone --filter=blob:none --no-checkout https://github.com/curl/curl.git . && \
15-
git checkout 09e25b9d94f4106eac8ca3a43b221bdc66f405e4 && \
14+
RUN git clone --depth 1 https://github.com/sg-benchmarks/curl--09e25b9d.git . && \
1615
git config user.email "agent@example.com" && \
1716
git config user.name "Agent"

base_images/Dockerfile.django-674eda1c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
77
curl \
88
&& rm -rf /var/lib/apt/lists/*
99

10-
RUN git clone --filter=blob:none --no-checkout https://github.com/django/django.git . && \
11-
git checkout 674eda1c03a3187905f48afee0f15226aa62fdf3 && \
10+
RUN git clone --depth 1 https://github.com/sg-benchmarks/django--674eda1c.git . && \
1211
git config user.email "agent@example.com" && \
1312
git config user.name "Agent"
1413

base_images/Dockerfile.django-9e7cc2b6

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
77
curl \
88
&& rm -rf /var/lib/apt/lists/*
99

10-
RUN git clone --filter=blob:none --no-checkout https://github.com/django/django.git . && \
11-
git checkout 9e7cc2b628fe8fd3895986af9b7fc9525034c1b0 && \
10+
RUN git clone --depth 1 https://github.com/sg-benchmarks/django--9e7cc2b6.git . && \
1211
git config user.email "agent@example.com" && \
1312
git config user.name "Agent"
1413

base_images/Dockerfile.envoy-1d0ba73a

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
99
ripgrep \
1010
&& rm -rf /var/lib/apt/lists/*
1111

12-
RUN git clone --filter=blob:none --no-checkout https://github.com/envoyproxy/envoy.git . && \
13-
git checkout 1d0ba73ad200d28e86c0c23f76c55320f82a8fba && \
12+
RUN git clone --depth 1 https://github.com/sg-benchmarks/envoy--1d0ba73a.git . && \
1413
git config user.email "agent@example.com" && \
1514
git config user.name "Agent"

base_images/Dockerfile.envoy-d7809ba2

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1010
ripgrep \
1111
&& rm -rf /var/lib/apt/lists/*
1212

13-
RUN git clone --filter=blob:none --no-checkout https://github.com/envoyproxy/envoy.git . && \
14-
git checkout d7809ba2b07fd869d49bfb122b27f6a7977b4d94 && \
13+
RUN git clone --depth 1 https://github.com/sg-benchmarks/envoy--d7809ba2.git . && \
1514
git config user.email "agent@example.com" && \
1615
git config user.name "Agent"

base_images/Dockerfile.flink-0cc95fcc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
99
python3-pip \
1010
&& rm -rf /var/lib/apt/lists/*
1111

12-
RUN git clone --filter=blob:none --no-checkout https://github.com/apache/flink.git . && \
13-
git checkout 0cc95fcc145eddcfc87fc1b4ddf96ddd0f2ee15f && \
12+
RUN git clone --depth 1 https://github.com/sg-benchmarks/flink--0cc95fcc.git . && \
1413
git config user.email "agent@example.com" && \
1514
git config user.name "Agent"

base_images/Dockerfile.flipt-3d5a345f

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
77
curl \
88
&& rm -rf /var/lib/apt/lists/*
99

10-
RUN git clone --filter=blob:none --no-checkout https://github.com/flipt-io/flipt.git . && \
11-
git checkout 3d5a345f94c2adc8a0eaa102c189c08ad4c0f8e8 && \
10+
RUN git clone --depth 1 https://github.com/sg-benchmarks/flipt--3d5a345f.git . && \
1211
git config user.email "agent@example.com" && \
1312
git config user.name "Agent"
1413

base_images/Dockerfile.k8s-11602f08

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
99
python3-pip \
1010
&& rm -rf /var/lib/apt/lists/*
1111

12-
RUN git clone --filter=blob:none --no-checkout https://github.com/kubernetes/kubernetes.git . && \
13-
git checkout 11602f083ca275dcfd4341641ae7fe338b7f6f69 && \
12+
RUN git clone --depth 1 https://github.com/sg-benchmarks/kubernetes--11602f08.git . && \
1413
git config user.email "agent@example.com" && \
1514
git config user.name "Agent"

base_images/Dockerfile.k8s-8c9c67c0

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
99
python3-pip \
1010
&& rm -rf /var/lib/apt/lists/*
1111

12-
RUN git clone --filter=blob:none --no-checkout https://github.com/kubernetes/kubernetes.git . && \
13-
git checkout 8c9c67c000104450cfc5a5f48053a9a84b73cf93 && \
12+
RUN git clone --depth 1 https://github.com/sg-benchmarks/kubernetes--8c9c67c0.git . && \
1413
git config user.email "agent@example.com" && \
1514
git config user.name "Agent"

0 commit comments

Comments
 (0)