forked from rancher/os
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·69 lines (50 loc) · 1.41 KB
/
Makefile
File metadata and controls
executable file
·69 lines (50 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
TARGETS := $(shell ls scripts | grep -vE 'clean|run|help|docs|release')
.dapper:
@echo Downloading dapper
@curl -sL https://releases.rancher.com/dapper/latest/dapper-`uname -s`-`uname -m|sed 's/v7l//'` > .dapper.tmp
@@chmod +x .dapper.tmp
@./.dapper.tmp -v
@mv .dapper.tmp .dapper
$(TARGETS): .dapper
./.dapper $@
trash: .dapper
./.dapper -m bind trash
trash-keep: .dapper
./.dapper -m bind trash -k
deps: trash
build/initrd/.id: .dapper
./.dapper prepare
run: build/initrd/.id .dapper
./.dapper -m bind build-target
./scripts/run
docs:
./scripts/docs
shell-bind: .dapper
./.dapper -m bind -s
clean:
@./scripts/clean
release: .dapper release-build openstack
release-build:
mkdir -p dist
./.dapper release 2>&1 | tee dist/release.log
itest:
mkdir -p dist
./.dapper integration-test 2>&1 | tee dist/itest.log
openstack:
cp dist/artifacts/rancheros.iso scripts/images/openstack/
cd scripts/images/openstack && ../../../.dapper
cp ./scripts/images/openstack/dist/*.img dist/
openstack-run:
qemu-system-x86_64 -curses \
-net nic -net user \
-m 2048M \
--hdc scripts/images/openstack/dist/rancheros-openstack.img
rpi: release
# scripts/images/raspberry-pi-hypriot/dist/rancheros-raspberry-pi.zip
cp dist/artifacts/rootfs_arm.tar.gz scripts/images/raspberry-pi-hypriot/
cd scripts/images/raspberry-pi-hypriot/ \
&& ../../../.dapper
help:
@./scripts/help
.DEFAULT_GOAL := default
.PHONY: $(TARGETS)