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
export GOPATH=/opt/src/gocode # or whatever suites your needs
70
-
go get -u github.com/go-debos/debos/cmd/debos
71
+
export GOPATH=/opt/src/gocode # or whatever suits your needs
72
+
go install -v github.com/go-debos/debos/cmd/debos@latest
71
73
/opt/src/gocode/bin/debos --help
72
74
73
75
## Simple example
@@ -82,10 +84,10 @@ make a tarball.
82
84
83
85
actions:
84
86
- action: debootstrap
85
-
suite: "buster"
87
+
suite: bookworm
86
88
components:
87
89
- main
88
-
- non-free
90
+
- non-free-firmware
89
91
mirror: https://deb.debian.org/debian
90
92
variant: minbase
91
93
@@ -112,7 +114,8 @@ this:
112
114
113
115
## Other examples
114
116
115
-
This example builds a customized image for a Raspberry Pi 3.
117
+
Example recipes are collected in a separate repository:
118
+
116
119
https://github.com/go-debos/debos-recipes
117
120
118
121
## Environment variables
@@ -136,7 +139,7 @@ no_proxy defined, both will be propagated to fakemachine respecting the case.
136
139
The command line options --environ-var and -e can be used to specify,
137
140
overwrite, and unset environment variables for fakemachine with the syntax:
138
141
139
-
$ debos -e ENVIRONVAR:VALUE ...
142
+
$ debos -e ENVIRONVAR:VALUE ...
140
143
141
144
To unset an enviroment variable, or in other words, to prevent an environment
142
145
variable to be propagated to fakemachine, use the same syntax without a value.
@@ -162,6 +165,18 @@ Fakemachine can use different virtualisation backends to spawn the virtualmachin
162
165
for more information see the documentation under the [fakemachine repository](https://github.com/go-debos/fakemachine).
163
166
164
167
By default the backend will automatically be selected based on what is supported
165
-
on the host machine, but this can be overridden using the `--fakemachine-backend`
168
+
on the host machine, but this can be overridden using the `--fakemachine-backend` / `-b`
166
169
option. If no backends are supported, debos reverts to running the recipe on the
167
170
host without creating a fakemachine.
171
+
172
+
Performance of the backends is roughly as follows: `kvm` is faster than `uml` is faster than `qemu`.
173
+
Using `--disable-fakemachine` is slightly faster than `kvm`, but requires root permissions.
174
+
175
+
Numbers for running [pine-a64-plus/debian.yaml](https://github.com/go-debos/debos-recipes/blob/9a25b4be6c9136f4a27e542f39ab7e419fc852c9/pine-a64-plus/debian.yaml) on an Intel Pentium G4560T with SSD:
176
+
177
+
| Backend | Wall Time | Prerequisites |
178
+
| --- | --- | --- |
179
+
|`--disable-fakemachine`| 8 min | root permissions |
180
+
|`-b kvm`| 9 min | access to `/dev/kvm`|
181
+
|`-b uml`| 18 min | package `user-mode-linux` installed |
0 commit comments