Commit 3dfcec2
Change behavior to optionally require Unikernel env variables (#95)
This PR adds an optional `require-ukc-vars` argument to
`shared/ensure-common-build-run-vars.sh` to only require Unikernel envs
when `require-ukc-vars` is present. This enables `./build-docker.sh` to
work without specifying `UKC_TOKEN` and `UKC_METRO`.
# Checklist
- [x] Related issue: #94
- [x] Changes proposed: Adds an optional `require-ukc-vars`
- [ ] @mentions of the person or team responsible for reviewing proposed
changes.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Introduce optional `require-ukc-vars` to conditionally enforce
`UKC_TOKEN`/`UKC_METRO`, and update Chromium headful/headless build/run
scripts to use it.
>
> - **Shared**:
> - `shared/ensure-common-build-run-vars.sh`: Add optional
`require-ukc-vars` argument to conditionally require
`UKC_TOKEN`/`UKC_METRO`; update usage/help text.
> - **Chromium Images**:
> - `images/chromium-headful/*` and `images/chromium-headless/*`: Update
`build-unikernel.sh` and `run-unikernel.sh` to source
`ensure-common-build-run-vars.sh` with `require-ukc-vars`.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
5c19f78. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Pieter Ouwerkerk <[email protected]>
Co-authored-by: Pieter Ouwerkerk <[email protected]>1 parent 1d2d45e commit 3dfcec2
File tree
5 files changed
+22
-14
lines changed- images
- chromium-headful
- chromium-headless
5 files changed
+22
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
22 | 34 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 35 | | |
0 commit comments