mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-25 21:19:05 +00:00
Replace moby build with linuxkit build throughout
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
@@ -67,7 +67,7 @@ To generate the kernel image called `clear-containers-bzImage`, enter the
|
||||
following command:
|
||||
|
||||
```
|
||||
./bin/moby build ./projects/clear-containers/clear-containers.yml
|
||||
./bin/linuxkit build ./projects/clear-containers/clear-containers.yml
|
||||
```
|
||||
|
||||
3. Test kernel
|
||||
|
@@ -26,7 +26,7 @@ qemu-lite: docker_image $(KERNEL_FILE) $(CMDLINE_FILE)
|
||||
bash
|
||||
|
||||
$(KERNEL_FILE):
|
||||
$(MKFILE_DIR)/../../../bin/moby build $(MKFILE_DIR)/../clear-containers.yml
|
||||
$(MKFILE_DIR)/../../../bin/linuxkit build $(MKFILE_DIR)/../clear-containers.yml
|
||||
|
||||
push: docker_image
|
||||
docker push clearcontainers/$(IMAGE)
|
||||
|
@@ -22,11 +22,11 @@ push: tag
|
||||
|
||||
dynamic:
|
||||
mkdir -p dist
|
||||
moby build -name compose-dynamic -dir dist/ compose-dynamic.yml
|
||||
linuxkit build -name compose-dynamic -dir dist/ compose-dynamic.yml
|
||||
|
||||
static: cache-images
|
||||
mkdir -p dist
|
||||
moby build -name compose-static -dir dist/ compose-static.yml
|
||||
linuxkit build -name compose-static -dir dist/ compose-static.yml
|
||||
|
||||
run-dynamic:
|
||||
linuxkit run dist/compose-dynamic
|
||||
|
@@ -85,7 +85,7 @@ docker run --rm -ti etcd.local etcdctl member list
|
||||
docker run --rm -ti etcd.local etcdctl cluster-health
|
||||
```
|
||||
|
||||
You can perform rolling updates, by for example, switching the kernel version in `etcd.yml`, build a new moby, e.g., `moby build -name etcd-4.10 etcd`, update `infrakit.json`, and then commit the new configuration to InfraKit: `infrakit group commit infrakit.json`.
|
||||
You can perform rolling updates, by for example, switching the kernel version in `etcd.yml`, build a new moby, e.g., `linuxkit build -name etcd-4.10 etcd`, update `infrakit.json`, and then commit the new configuration to InfraKit: `infrakit group commit infrakit.json`.
|
||||
|
||||
|
||||
## Infrakit GCP setup
|
||||
|
@@ -3,7 +3,7 @@ run: ima-namespace-kernel
|
||||
../../bin/linuxkit run ima-namespace
|
||||
|
||||
ima-namespace-kernel: ima-namespace.yml
|
||||
../../bin/moby build -format kernel+initrd ima-namespace
|
||||
../../bin/linuxkit build -format kernel+initrd ima-namespace
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
|
@@ -50,7 +50,7 @@ the hardware support is available.
|
||||
development directions.
|
||||
|
||||
- We are also packaging up the Alpine `dhcpcd` with the same configuration conventions
|
||||
as the MirageSDK replacement, so that they can swapped in a `moby build` with a single
|
||||
as the MirageSDK replacement, so that they can swapped in a `linuxkit build` with a single
|
||||
line change in the YAML file.
|
||||
|
||||
- We will engage external reviewers on the security architecture once we have the first
|
||||
@@ -63,6 +63,6 @@ the hardware support is available.
|
||||
# Getting Started
|
||||
|
||||
```
|
||||
../../bin/moby build examples/mirage-dhcp.yml`
|
||||
../../bin/linuxkit build examples/mirage-dhcp.yml`
|
||||
../../bin/linuxkit run mirage-dhcp
|
||||
```
|
||||
|
Reference in New Issue
Block a user