You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: git-launcher/README.md
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,7 +139,6 @@ no shell expansion in the parse step.
139
139
| --- | --- |
140
140
|`REPO_SUBDIR`| Relative directory inside the repo to `cd` into before running the entry point or `RUN_CMD`. Must not be absolute and must not contain `..`. |
141
141
|`ENTRYPOINT_SCRIPT`| Relative path (inside `REPO_SUBDIR` or repo root) to the bash entry script for default mode. Defaults to `entrypoint.sh`. Must not be absolute and must not contain `..`. Trust-bearing in default mode — like `REPO_SUBDIR`, it selects which script runs. |
142
-
|`CHILD_ENV_FILE`| Path to a separate env file. Each `KEY=VALUE` line is `export`ed into the environment seen by `entrypoint.sh` / `INSTALL_CMD` / `RUN_CMD`. The file is parsed line-by-line just like the main config (not sourced). |
143
142
|`RUN_CMD`|**Advanced.** Shell command to exec instead of the default `entrypoint.sh`. Use only when the workload repo cannot host its own entry script. |
144
143
|`INSTALL_CMD`|**Advanced.** Shell command to run before `RUN_CMD`. Only valid alongside `RUN_CMD`. |
145
144
@@ -155,10 +154,10 @@ In this mode the trust-bearing config in the launcher's config file is
155
154
`REPO_URL` + `COMMIT_SHA` (and `REPO_SUBDIR` if used, since it selects
156
155
which `entrypoint.sh` runs). `WORK_DIR` is local plumbing — it names
157
156
where on the in-TEE filesystem to keep the checkout — and is not
158
-
trust-bearing. `CHILD_ENV_FILE` (and any env it provides) can change the
159
-
script's runtime behavior but does not change the bytes that run; if the
160
-
deployment uses it, audit it the same way you audit any other runtime
161
-
configuration the deployment ships with.
157
+
trust-bearing. Normal process environment variables are inherited by the
158
+
workload. Use Docker Compose `environment:` for non-secret runtime config that
159
+
should be visible at launch, and use dstack encrypted secrets / KMS / mounted
160
+
secret files for secrets.
162
161
163
162
Because `entrypoint.sh`'s bytes are pinned by `COMMIT_SHA` and stored in
164
163
the workload repo, they are covered by source provenance of the pinned
@@ -234,10 +233,10 @@ the workload container. By default the SDK looks at `/var/run/dstack.sock`.
234
233
Mount it in every compose snippet below; the snippets already include the
235
234
mount.
236
235
237
-
If your workload talks to a non-default dstack endpoint, set
238
-
`DSTACK_LLM_ROUTER_DSTACK_ENDPOINT` (or whatever endpoint variable your
239
-
workload reads) via `CHILD_ENV_FILE` rather than baking it into the
240
-
launcher config — it is runtime configuration, not a trust-bearing field.
236
+
If your workload talks to a non-default dstack endpoint, set the endpoint
237
+
variable your workload reads through Docker Compose `environment:` rather than
238
+
baking it into the launcher config. It is runtime configuration, not part of
239
+
the Git pin.
241
240
242
241
### Local development (host bind-mount)
243
242
@@ -325,7 +324,7 @@ at specific commits, and asserts:
325
324
* Unknown keys are rejected.
326
325
* `REPO_SUBDIR` containing `..` is rejected.
327
326
* Pre-existing `WORK_DIR` whose `origin` differs from `REPO_URL` is rejected.
328
-
* `CHILD_ENV_FILE` values reach the child process.
327
+
* Normal process environment variables reach the workload.
329
328
* `INSTALL_CMD` runs before `RUN_CMD`.
330
329
* `--help` exits zero.
331
330
* The release workflow runs launcher tests before building the image and
0 commit comments