Skip to content

Commit 11e0519

Browse files
committed
chore: adding the compilation mode explanation to the docs
Signed-off-by: entlein <einentlein@gmail.com>
1 parent c846a4d commit 11e0519

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

DEVELOPMENT.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,23 @@ Once you make changes to the source code, or switch to another source code versi
132132
Ensure that you have commented in the bazelcache-directory into the bazel config (see Step 2).
133133
134134
135+
Review the compilation-mode suits your purposes:
136+
```
137+
cat skaffold/skaffold_vizier.yaml
138+
# Note: You will want to stick with a sysroot based build (-p x86_64_sysroot or -p aarch64_sysroot),
139+
# but you may want to change the --complication_mode setting based on your needs.
140+
# opt builds remove assert/debug checks, while dbg builds work with debuggers (gdb).
141+
# See the bazel docs for more details https://bazel.build/docs/user-manual#compilation-mode
142+
- name: x86_64_sysroot
143+
patches:
144+
- op: add
145+
path: /build/artifacts/context=./bazel/args
146+
value:
147+
- --config=x86_64_sysroot
148+
- --compilation_mode=dbg
149+
# - --compilation_mode=opt
150+
```
151+
135152
Optional: you can make permanent your <default-repo> in the skaffold config:
136153
```sh
137154
skaffold config set default-repo <myregistry>
@@ -146,7 +163,7 @@ skaffold run -f skaffold/skaffold_vizier.yaml -p x86_64_sysroot --default-repo=<
146163

147164

148165

149-
#### 7) Skaffold deploy your changes
166+
#### 7) Golden Image
150167

151168
Once all the above is working and the first cache has been built, bake an image of your VM for safekeeping.
152169

0 commit comments

Comments
 (0)