Skip to content

Commit ac44334

Browse files
sjarmakclaude
andcommitted
docs: add workflow note to generate_sgonly_dockerfiles.py
Document the two-step workflow: generate_sgonly_dockerfiles.py creates Dockerfile structure, then inject_sg_repo_env.py adds repo env vars for prebuilt-image SDLC tasks. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c7c9101 commit ac44334

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/generate_sgonly_dockerfiles.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@
66
77
Also injects the verifier wrapper guard into test.sh for build-requiring tasks
88
and copies sgonly_verifier_wrapper.sh into tests/.
9+
10+
NOTE: This script injects SOURCEGRAPH_REPOS env vars for tasks that have
11+
explicit git clone commands in their Dockerfile (MCP-unique tasks). For SDLC
12+
tasks that use prebuilt images (FROM sweap-images, FROM ccb-linux-base, etc.),
13+
run inject_sg_repo_env.py afterward to add SOURCEGRAPH_REPO_NAME env vars
14+
based on task.toml repo fields and instance_to_mirror.json mappings.
15+
16+
Workflow:
17+
python3 scripts/generate_sgonly_dockerfiles.py # create/regenerate Dockerfiles
18+
python3 scripts/inject_sg_repo_env.py # add repo env vars for prebuilt-image tasks
919
"""
1020

1121
import json

0 commit comments

Comments
 (0)