2018-12-05 12:03:04 +08:00
|
|
|
TARGETS := $(shell ls scripts | grep -vE 'clean|run|help|release*|build-moby|run-moby')
|
2015-07-23 18:53:01 +05:00
|
|
|
|
2016-05-06 10:12:09 -07:00
|
|
|
.dapper:
|
|
|
|
@echo Downloading dapper
|
2019-02-10 15:06:06 +08:00
|
|
|
@curl -sL https://releases.rancher.com/dapper/latest/dapper-`uname -s`-`uname -m|sed 's/v7l//'` > .dapper.tmp
|
2016-05-06 10:12:09 -07:00
|
|
|
@@chmod +x .dapper.tmp
|
|
|
|
@./.dapper.tmp -v
|
|
|
|
@mv .dapper.tmp .dapper
|
2015-07-23 18:53:01 +05:00
|
|
|
|
2016-05-06 10:12:09 -07:00
|
|
|
$(TARGETS): .dapper
|
|
|
|
./.dapper $@
|
2015-07-23 18:53:01 +05:00
|
|
|
|
2016-05-06 10:12:09 -07:00
|
|
|
trash: .dapper
|
|
|
|
./.dapper -m bind trash
|
2015-08-06 00:04:46 -07:00
|
|
|
|
2016-05-06 10:12:09 -07:00
|
|
|
trash-keep: .dapper
|
|
|
|
./.dapper -m bind trash -k
|
2015-07-23 18:53:01 +05:00
|
|
|
|
2016-05-06 10:12:09 -07:00
|
|
|
deps: trash
|
2015-07-23 18:53:01 +05:00
|
|
|
|
2016-10-05 09:47:07 +10:00
|
|
|
build/initrd/.id: .dapper
|
|
|
|
./.dapper prepare
|
2015-08-06 00:04:46 -07:00
|
|
|
|
2016-10-05 09:47:07 +10:00
|
|
|
run: build/initrd/.id .dapper
|
|
|
|
./.dapper -m bind build-target
|
2016-05-06 10:12:09 -07:00
|
|
|
./scripts/run
|
2015-07-23 18:53:01 +05:00
|
|
|
|
2017-05-03 15:40:30 +10:00
|
|
|
build-moby:
|
|
|
|
./scripts/build-moby
|
|
|
|
|
|
|
|
run-moby:
|
|
|
|
./scripts/run-moby
|
|
|
|
|
2016-10-05 09:47:07 +10:00
|
|
|
shell-bind: .dapper
|
|
|
|
./.dapper -m bind -s
|
2016-05-31 21:11:03 -07:00
|
|
|
|
2016-05-06 10:12:09 -07:00
|
|
|
clean:
|
|
|
|
@./scripts/clean
|
2016-03-31 15:35:45 -07:00
|
|
|
|
2018-11-19 11:04:21 +08:00
|
|
|
release: .dapper release-build
|
2017-03-28 16:04:49 +10:00
|
|
|
|
|
|
|
release-build:
|
2017-04-12 03:08:34 +00:00
|
|
|
mkdir -p dist
|
2017-04-12 02:00:06 +00:00
|
|
|
./.dapper release 2>&1 | tee dist/release.log
|
2017-03-28 16:04:49 +10:00
|
|
|
|
2018-12-14 22:36:07 +08:00
|
|
|
rpi64: .dapper
|
|
|
|
./scripts/release-rpi64
|
2017-03-15 08:14:52 +00:00
|
|
|
|
2018-05-12 17:18:30 +08:00
|
|
|
vmware: .dapper
|
|
|
|
mkdir -p dist
|
2019-05-10 16:33:46 +08:00
|
|
|
APPEND_SYSTEM_IMAGES="rancher/os-openvmtools:10.3.10-1" \
|
2018-12-05 12:03:04 +08:00
|
|
|
./.dapper release-vmware 2>&1 | tee dist/release.log
|
2018-03-19 02:45:11 +00:00
|
|
|
|
2018-11-15 15:44:17 +08:00
|
|
|
hyperv: .dapper
|
|
|
|
mkdir -p dist
|
2019-06-22 15:29:44 +08:00
|
|
|
APPEND_SYSTEM_IMAGES="rancher/os-hypervvmtools:v4.14.128-rancher-1" \
|
2018-12-05 12:03:04 +08:00
|
|
|
./.dapper release-hyperv 2>&1 | tee dist/release.log
|
2018-11-15 15:44:17 +08:00
|
|
|
|
2019-05-17 10:31:55 +08:00
|
|
|
azurebase: .dapper
|
2018-12-14 15:39:41 +08:00
|
|
|
mkdir -p dist
|
|
|
|
AZURE_SERVICE="true" \
|
2019-06-22 15:29:44 +08:00
|
|
|
APPEND_SYSTEM_IMAGES="rancher/os-hypervvmtools:v4.14.128-rancher-1 rancher/os-waagent:v2.2.34-1" \
|
2019-05-17 10:31:55 +08:00
|
|
|
./.dapper release-azurebase 2>&1 | tee dist/release.log
|
2018-12-14 15:39:41 +08:00
|
|
|
|
2018-12-07 14:54:49 +08:00
|
|
|
4glte: .dapper
|
|
|
|
mkdir -p dist
|
|
|
|
APPEND_SYSTEM_IMAGES="rancher/os-modemmanager:v1.6.4-1" \
|
|
|
|
./.dapper release-4glte 2>&1 | tee dist/release.log
|
|
|
|
|
2019-01-22 02:00:55 +00:00
|
|
|
proxmoxve: .dapper
|
|
|
|
mkdir -p dist
|
|
|
|
PROXMOXVE_SERVICE="true" \
|
|
|
|
APPEND_SYSTEM_IMAGES="rancher/os-qemuguestagent:v2.8.1-2" \
|
|
|
|
./.dapper release-proxmoxve 2>&1 | tee dist/release.log
|
|
|
|
|
2019-03-21 13:48:37 +00:00
|
|
|
pingan: .dapper
|
|
|
|
mkdir -p dist
|
2019-05-29 12:00:08 +08:00
|
|
|
APPEND_SYSTEM_IMAGES="cnrancher/os-pingan-amc:v0.0.6-1" \
|
2019-03-21 13:48:37 +00:00
|
|
|
./.dapper release-pingan 2>&1 | tee dist/release.log
|
|
|
|
|
2016-05-22 23:11:26 -07:00
|
|
|
help:
|
|
|
|
@./scripts/help
|
|
|
|
|
|
|
|
.DEFAULT_GOAL := default
|
2016-01-15 18:18:30 +05:00
|
|
|
|
2016-05-06 10:12:09 -07:00
|
|
|
.PHONY: $(TARGETS)
|