forked from rancher-sandbox/rancher-desktop-opensuse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.docker
More file actions
31 lines (21 loc) · 929 Bytes
/
Makefile.docker
File metadata and controls
31 lines (21 loc) · 929 Bytes
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
# This Makefile is run inside the docker machine.
include root/build/versions.env
TYPE ?= qcow2
ARCH ?= $(shell uname -m)
/build/distro.${TYPE}:
GO_ARCH := $(ARCH:x86_64=amd64)
GO_ARCH := $(GO_ARCH:aarch64=arm64)
INPUTS += root/build/nerdctl-$(NERDCTL_VERSION).tgz
INPUTS += root/build/cri-dockerd-$(CRI_DOCKERD_VERSION).tgz
INPUTS += root/build/cri-dockerd-$(CRI_DOCKERD_VERSION).LICENSE
rancher-desktop-distro.%.qcow2: config.kiwi config.sh ${INPUTS}
kiwi --debug --profile=lima system build \
--description /description --target-dir /build
rancher-desktop-distro.%.tar.xz: config.kiwi config.sh ${INPUTS}
kiwi --debug --profile=wsl system build \
--description /description --target-dir /build
/build/distro.qcow2: /build/rancher-desktop-distro.$(ARCH)-0.100.0.qcow2
mv $< $@
/build/distro.tar.xz: /build/rancher-desktop-distro.$(ARCH)-0.100.0.tar.xz
mv $< $@
.DELETE_ON_ERROR: # Avoid half-downloaded files