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: README.md
+24-4
Original file line number
Diff line number
Diff line change
@@ -2,18 +2,38 @@
2
2
3
3
This project aims to demonstrate how one can create minimal and immutable Kubernetes OS images with LinuxKit.
4
4
5
-
Make sure to `cd projects/kubernetes` first.
5
+
## Build requirements
6
6
7
-
Build OS images:
7
+
To build images you will need the [Moby tool](https://github.com/moby/tool), and to rebuild the individual packages you will need the [LinuxKit tool](https://github.com/linuxkit/linuxkit/tree/master/src/cmd/linuxkit)
8
+
9
+
If you already have `go` installed you can use `go get -u github.com/moby/tool/cmd/moby` to install the `moby` build tool, and `go get -u github.com/linuxkit/linuxkit/src/cmd/linuxkit` to install the `linuxkit` tool.
10
+
11
+
On MacOS there is a `brew tap` available. Detailed instructions are at [linuxkit/homebrew-linuxkit](https://github.com/linuxkit/homebrew-linuxkit), the short summary is
12
+
```
13
+
brew tap linuxkit/linuxkit
14
+
brew install --HEAD moby
15
+
brew install --HEAD linuxkit
16
+
```
17
+
18
+
Build requirements from source:
19
+
- GNU `make`
20
+
- Docker
21
+
- optionally `qemu`
22
+
23
+
## Building OS images
24
+
25
+
To build the default OS images:
8
26
```
9
-
make build-vm-images
27
+
make all
10
28
```
11
29
12
30
By default this will build images using Docker Engine for execution. To instead use cri-containerd use:
13
31
```
14
-
make build-vm-images KUBE_RUNTIME=cri-containerd
32
+
make all KUBE_RUNTIME=cri-containerd
15
33
```
16
34
35
+
## Booting and initialising OS images
36
+
17
37
Boot Kubernetes master OS image using `hyperkit` on macOS: or `qemu` on Linux:
0 commit comments