mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 17:26:28 +00:00
Remove Makefile targets that build moby.yml
Its trivial to just do `bin/moby build moby` etc. Just leaving test targets, which should really move out of root later. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
8d0bc4c3c6
commit
6dc0ee4748
34
Makefile
34
Makefile
@ -1,5 +1,5 @@
|
||||
.PHONY: default all
|
||||
default: bin/moby moby-initrd.img
|
||||
default: bin/moby
|
||||
all: default
|
||||
|
||||
VERSION="0.0" # dummy for now
|
||||
@ -27,27 +27,13 @@ bin/infrakit-instance-hyperkit: $(INFRAKIT_DEPS) | bin
|
||||
tar cf - vendor -C src/cmd/infrakit-instance-hyperkit . | docker run --rm --net=none --log-driver=none -i $(CROSS) $(GO_COMPILE) --package github.com/docker/moby -o $@ | tar xf -
|
||||
touch $@
|
||||
|
||||
moby-initrd.img: bin/moby moby.yml
|
||||
bin/moby build moby.yml
|
||||
|
||||
moby-bzImage: moby-initrd.img
|
||||
|
||||
test-initrd.img: bin/moby test/test.yml
|
||||
bin/moby build test/test.yml
|
||||
|
||||
test-bzImage: test-initrd.img
|
||||
|
||||
# interactive versions need to use volume mounts
|
||||
.PHONY: qemu qemu-iso qemu-efi test-qemu-efi
|
||||
qemu: moby-initrd.img moby-bzImage moby-cmdline
|
||||
./scripts/qemu.sh moby-initrd.img moby-bzImage moby-cmdline
|
||||
|
||||
qemu-iso: alpine/mobylinux-bios.iso
|
||||
./scripts/qemu.sh $^
|
||||
|
||||
qemu-efi: moby-efi.iso
|
||||
./scripts/qemu.sh $^
|
||||
|
||||
.PHONY: test-qemu-efi
|
||||
test-qemu-efi: test-efi.iso
|
||||
./scripts/qemu.sh $^ 2>&1 | tee test-efi.log
|
||||
$(call check_test_log, test-efi.log)
|
||||
@ -55,10 +41,6 @@ test-qemu-efi: test-efi.iso
|
||||
bin:
|
||||
mkdir -p $@
|
||||
|
||||
.PHONY: hyperkit
|
||||
hyperkit: bin/moby moby-initrd.img moby-bzImage moby.yml
|
||||
bin/moby run moby
|
||||
|
||||
define check_test_log
|
||||
@cat $1 |grep -q 'Moby test suite PASSED'
|
||||
endef
|
||||
@ -74,18 +56,6 @@ test: test-initrd.img test-bzImage test-cmdline
|
||||
tar cf - $^ | ./scripts/qemu.sh 2>&1 | tee test.log
|
||||
$(call check_test_log, test.log)
|
||||
|
||||
.PHONY: ebpf
|
||||
EBPF_TAG=ebpf/ebpf.tag
|
||||
EBPF_IMAGE=mobylinux/ebpf:$(MEDIA_PREFIX)$(TAG)
|
||||
ebpf: alpine/initrd.img kernel/x86_64/vmlinuz64
|
||||
ifeq ($(STATUS),)
|
||||
[ -f $(EBPF_TAG) ]
|
||||
docker tag $(shell cat $(EBPF_TAG)) $(EBPF_IMAGE)
|
||||
docker push $(EBPF_IMAGE)
|
||||
else
|
||||
$(error "git not clean")
|
||||
endif
|
||||
|
||||
.PHONY: ci ci-tag ci-pr
|
||||
ci:
|
||||
$(MAKE) clean
|
||||
|
@ -17,12 +17,14 @@ Moby, a toolkit for building custom minimal, immutable Linux distributions.
|
||||
|
||||
### Build the `moby` tool
|
||||
|
||||
Simple build instructions: use `make` to build.
|
||||
This will build the Moby customisation tool and an example Moby initrd image from the `moby.yml` file.
|
||||
Simple build instructions: use `make` to build. This will build the Moby customisation tool.
|
||||
|
||||
If you already have a Go build environment and installed the source in your `GOPATH`
|
||||
you can do `go install github.com/docker/moby/src/cmd/moby` to install the `moby` tool
|
||||
instead, and then use `moby build moby.yml` to build the example configuration.
|
||||
instead
|
||||
|
||||
Once you have built the tool, use `bin/moby build moby.yml` to build the example configuration,
|
||||
and `bin/moby run moby` to run locally. Use `halt` to terminate on the console.
|
||||
|
||||
Build requirements:
|
||||
- GNU `make`
|
||||
|
Loading…
Reference in New Issue
Block a user