123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- TARGETS := $(shell ls scripts | grep -vE 'clean|run|help|release|build-moby|run-moby')
- .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
- build-moby:
- ./scripts/build-moby
- run-moby:
- ./scripts/run-moby
- shell-bind: .dapper
- ./.dapper -m bind -s
- clean:
- @./scripts/clean
- release: .dapper release-build qcows
- release-build:
- mkdir -p dist
- ./.dapper release 2>&1 | tee dist/release.log
- qcows:
- cp dist/artifacts/rancheros.iso scripts/images/openstack/
- cd scripts/images/openstack && \
- APPEND="console=tty1 console=ttyS0,115200n8 printk.devkmsg=on rancher.autologin=ttyS0 panic=10" \
- NAME=openstack ../../../.dapper
- cd scripts/images/openstack && \
- APPEND="console=tty1 printk.devkmsg=on notsc clocksource=kvm-clock rancher.network.interfaces.eth0.ipv4ll rancher.cloud_init.datasources=[digitalocean] rancher.autologin=tty1 rancher.autologin=ttyS0 panic=10 rancher.resize_device=/dev/vda" \
- NAME=digitalocean ../../../.dapper
- cp ./scripts/images/openstack/dist/*.img dist/artifacts/
- rpi64:
- # scripts/images/raspberry-pi-hypriot64/dist/rancheros-raspberry-pi.zip
- cp dist/artifacts/rootfs_arm64.tar.gz scripts/images/raspberry-pi-hypriot64/
- cd scripts/images/raspberry-pi-hypriot64/ \
- && ../../../.dapper
- vmware: .dapper
- mkdir -p dist
- ./.dapper vmware-release 2>&1 | tee dist/release.log
- help:
- @./scripts/help
- .DEFAULT_GOAL := default
- .PHONY: $(TARGETS)
|