forked from gardenlinux/gardenlinux
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
91 lines (63 loc) · 3.47 KB
/
Makefile
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
SNAPSHOT_DATE=`date -d 'today' '+%Y%m%d'`
IMAGE_BASENAME=garden-linux
VERSION=40
all: all_dev all_prod
all_prod: aws gcp azure openstack vmware kvm
all_dev: aws-dev gcp-dev azure-dev openstack-dev vmware-dev
AWS_IMAGE_NAME=$(IMAGE_BASENAME)-aws-$(VERSION)
aws:
./build.sh --features server,cloud,ghost,aws .build/aws bullseye $(SNAPSHOT_DATE)
aws-upload:
./bin/make-ec2-ami --bucket ami-debian-image-test --region eu-central-1 --image-name=$(AWS_IMAGE_NAME) .build/aws/$(SNAPSHOT_DATE)/amd64/bullseye/rootfs.raw
AWS_DEV_IMAGE_NAME=$(IMAGE_BASENAME)-dev-aws-$(VERSION)
aws-dev:
./build.sh --features server,cloud,ghost,aws,dev .build/aws-dev bullseye $(SNAPSHOT_DATE)
aws-dev-upload:
./bin/make-ec2-ami --bucket ami-debian-image-test --region eu-central-1 --image-name=$(AWS_DEV_IMAGE_NAME) .build/aws-dev/aws-dev.raw
AWS_CHOST_DEV_IMAGE_NAME=$(IMAGE_BASENAME)-chost-dev-aws-$(VERSION)
aws-chost-dev:
./build.sh --features server,cloud,chost,aws,dev .build/aws-chost-dev bullseye $(SNAPSHOT_DATE)
aws-chost-dev-upload:
./bin/make-ec2-ami --bucket ami-debian-image-test --region eu-central-1 --image-name=$(AWS_CHOST_DEV_IMAGE_NAME) .build/aws-chost-dev/$(SNAPSHOT_DATE)/amd64/bullseye/rootfs.raw
GCP_IMAGE_NAME=$(IMAGE_BASENAME)-gcp-$(VERSION)
gcp:
./build.sh --features server,cloud,ghost,gcp .build/gcp bullseye $(SNAPSHOT_DATE)
gcp-upload:
./bin/make-gcp-ami --bucket garden-linux-test --image-name $(GCP_IMAGE_NAME) --raw-image-path .build/gcp/$(SNAPSHOT_DATE)/amd64/bullseye/rootfs-gcpimage.tar.gz
GCP_DEV_IMAGE_NAME=$(IMAGE_BASENAME)-dev-gcp-$(VERSION)
gcp-dev:
./build.sh --features server,cloud,ghost,gcp,dev .build/gcp-dev bullseye $(SNAPSHOT_DATE)
gcp-dev-upload:
./bin/make-gcp-ami --bucket garden-linux-test --image-name $(GCP_DEV_IMAGE_NAME) --raw-image-path .build/gcp-dev/$(SNAPSHOT_DATE)/amd64/bullseye/rootfs-gcpimage.tar.gz
AZURE_IMAGE_NAME=$(IMAGE_BASENAME)-az-$(VERSION)
azure:
./build.sh --features server,cloud,ghost,azure .build/azure-dev bullseye $(SNAPSHOT_DATE)
azure-upload:
./bin/make-azure-ami --resource-group garden-linux --storage-account-name gardenlinux --image-path=.build/azure/$(AZURE_IMAGE_NAME).vhd --image-name=$(AZURE_IMAGE_NAME)
AZURE_DEV_IMAGE_NAME=$(IMAGE_BASENAME)-dev-az-$(VERSION)
azure-dev:
./build.sh --features server,cloud,ghost,azure,dev .build/azure-dev bullseye $(SNAPSHOT_DATE)
azure-dev-upload:
./bin/make-azure-ami --resource-group garden-linux --storage-account-name gardenlinux --image-path=.build/azure-dev/$(AZURE_DEV_IMAGE_NAME).vhd --image-name=$(AZURE_DEV_IMAGE_NAME)
OPENSTACK_IMAGE_NAME=$(IMAGE_BASENAME)-openstack-$(VERSION)
openstack:
./build.sh --features server,cloud,ghost,openstack .build/openstack-dev bullseye $(SNAPSHOT_DATE)
OPENSTACK_DEV_IMAGE_NAME=$(IMAGE_BASENAME)-openstack-dev-$(VERSION)
openstack-dev:
./build.sh --features server,cloud,ghost,openstack,dev .build/openstack-dev bullseye $(SNAPSHOT_DATE)
openstack-dev-upload:
./bin/upload-openstack .build/openstack-dev/$(OPENSTACK_DEV_IMAGE_NAME).vmdk $(OPENSTACK_DEV_IMAGE_NAME)
VMWARE_DEV_IMAGE_NAME=$(IMAGE_BASENAME)-vmware-dev-$(VERSION)
vmware-dev:
./build.sh --features server,cloud,ghost,vmware,dev .build/vmware-dev bullseye $(SNAPSHOT_DATE)
vmware:
./build.sh --features server,cloud,ghost,vmware .build/vmware bullseye $(SNAPSHOT_DATE)
cloud:
./build.sh --features server,cloud .build/cloud bullseye $(SNAPSHOT_DATE)
kvm:
./build.sh --features server,cloud,kvm,dev .build/kvm bullseye $(SNAPSHOT_DATE)
onmetal:
echo "TODO: implement"
exit 1
clean:
rm -rf .build