diff options
author | tomalok <tomalok@gmail.com> | 2020-08-09 15:11:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-09 15:11:34 -0700 |
commit | d765bd4ab77fc3ef7c3d66d644016c5b07e8ddab (patch) | |
tree | 4d378da66f053e53d3ef2ea4d7b04a9f0136ce94 | |
parent | 001db8ef996079948f63636f44613736ef8d6f3d (diff) | |
download | alpine-ec2-ami-d765bd4ab77fc3ef7c3d66d644016c5b07e8ddab.tar.bz2 alpine-ec2-ami-d765bd4ab77fc3ef7c3d66d644016c5b07e8ddab.tar.xz alpine-ec2-ami-d765bd4ab77fc3ef7c3d66d644016c5b07e8ddab.zip |
Fix edge builds (#78)
alpine-mirrors package removed after 3.12
also add profile for 3.12
-rw-r--r-- | profiles/base/2 | 103 | ||||
l--------- | profiles/base/current | 2 | ||||
-rw-r--r-- | profiles/version/3.10 | 2 | ||||
-rw-r--r-- | profiles/version/3.11 | 2 | ||||
-rw-r--r-- | profiles/version/3.12 | 14 | ||||
-rw-r--r-- | profiles/version/3.9 | 2 | ||||
l--------- | profiles/version/current | 2 | ||||
-rw-r--r-- | profiles/version/edge | 3 |
8 files changed, 123 insertions, 7 deletions
diff --git a/profiles/base/2 b/profiles/base/2 new file mode 100644 index 0000000..ae58f06 --- /dev/null +++ b/profiles/base/2 | |||
@@ -0,0 +1,103 @@ | |||
1 | ### base vars, revision 1 | ||
2 | # vim: ts=2 et: | ||
3 | |||
4 | # Profile/Build | ||
5 | profile = null | ||
6 | profile_build = null | ||
7 | revision = "r0" | ||
8 | |||
9 | # Versioning | ||
10 | version = null | ||
11 | release = null | ||
12 | end_of_life = null | ||
13 | |||
14 | # Architecture | ||
15 | arch = null | ||
16 | build_arch = null | ||
17 | |||
18 | # Builder-instance | ||
19 | build_region = "us-west-2" | ||
20 | build_subnet = null | ||
21 | build_instance_type = "t3.nano" | ||
22 | build_public_ip = null | ||
23 | build_user = "ec2-user" | ||
24 | build_ami_name = "amzn2-ami-hvm-2.0.*-gp2" | ||
25 | build_ami_owner = "137112412989" | ||
26 | build_ami_latest = "true" | ||
27 | |||
28 | # AMI build/deploy | ||
29 | aws_profile = null # AWS profile to build AMI | ||
30 | aws_accounts = null # comma-separated AWS accounts allowed to launch AMI | ||
31 | ami_name_prefix = "alpine-ami-" | ||
32 | ami_name_suffix = "" | ||
33 | ami_desc_prefix = "Alpine Linux " | ||
34 | ami_desc_suffix = "" | ||
35 | ami_volume_size = "1" | ||
36 | ami_encrypt = "false" | ||
37 | ami_user = "alpine" # modification currently not supported | ||
38 | |||
39 | # NOTE: the following are python format strings, resolved in resolve-profile.py | ||
40 | ami_name = "{var.ami_name_prefix}{var.release}-{var.arch}-{var.revision}{var.ami_name_suffix}" | ||
41 | ami_desc = "{var.ami_desc_prefix}{var.release} {var.arch} {var.revision}{var.ami_desc_suffix}" | ||
42 | |||
43 | # AMI configuration | ||
44 | apk_tools = null | ||
45 | apk_tools_sha256 = null | ||
46 | alpine_keys = null | ||
47 | alpine_keys_sha256 = null | ||
48 | repos {} | ||
49 | pkgs { | ||
50 | linux-virt = true | ||
51 | chrony = true | ||
52 | nvme-cli = true | ||
53 | openssh = true | ||
54 | sudo = true | ||
55 | tiny-ec2-bootstrap = true | ||
56 | tzdata = true | ||
57 | } | ||
58 | svcs { | ||
59 | sysinit { | ||
60 | devfs = true | ||
61 | dmesg = true | ||
62 | hwdrivers = true | ||
63 | mdev = true | ||
64 | } | ||
65 | boot { | ||
66 | acpid = true | ||
67 | bootmisc = true | ||
68 | hostname = true | ||
69 | hwclock = true | ||
70 | modules = true | ||
71 | swap = true | ||
72 | sysctl = true | ||
73 | syslog = true | ||
74 | } | ||
75 | default { | ||
76 | chronyd = true | ||
77 | networking = true | ||
78 | sshd = true | ||
79 | tiny-ec2-bootstrap = true | ||
80 | } | ||
81 | shutdown { | ||
82 | killprocs = true | ||
83 | mount-ro = true | ||
84 | savecache = true | ||
85 | } | ||
86 | } | ||
87 | kernel_modules { | ||
88 | sd-mod = true | ||
89 | usb-storage = true | ||
90 | ext4 = true | ||
91 | nvme = true | ||
92 | ena = true | ||
93 | } | ||
94 | kernel_options { | ||
95 | "console=ttyS0,115200n8" = true | ||
96 | "nvme_core.io_timeout=4294967295" = true | ||
97 | } | ||
98 | # NOTE: nvme and ena are critical for i3, a1, m6g, and anything in the 5 series | ||
99 | # forward. Without them these instances will not boot. | ||
100 | initfs_features { | ||
101 | nvme = true | ||
102 | ena = true | ||
103 | } | ||
diff --git a/profiles/base/current b/profiles/base/current index 56a6051..d8263ee 120000 --- a/profiles/base/current +++ b/profiles/base/current | |||
@@ -1 +1 @@ | |||
1 \ No newline at end of file | 2 \ No newline at end of file | ||
diff --git a/profiles/version/3.10 b/profiles/version/3.10 index a83dff2..17a657f 100644 --- a/profiles/version/3.10 +++ b/profiles/version/3.10 | |||
@@ -2,7 +2,7 @@ | |||
2 | # vim: ts=2 et: | 2 | # vim: ts=2 et: |
3 | 3 | ||
4 | # start with base vars | 4 | # start with base vars |
5 | include required("../base/current") | 5 | include required("../base/1") |
6 | 6 | ||
7 | # set version-specific vars | 7 | # set version-specific vars |
8 | version = "3.10" | 8 | version = "3.10" |
diff --git a/profiles/version/3.11 b/profiles/version/3.11 index 4f0a55d..f46a210 100644 --- a/profiles/version/3.11 +++ b/profiles/version/3.11 | |||
@@ -2,7 +2,7 @@ | |||
2 | # vim: ts=2 et: | 2 | # vim: ts=2 et: |
3 | 3 | ||
4 | # start with base vars | 4 | # start with base vars |
5 | include required("../base/current") | 5 | include required("../base/1") |
6 | 6 | ||
7 | # set version-specific vars | 7 | # set version-specific vars |
8 | version = "3.11" | 8 | version = "3.11" |
diff --git a/profiles/version/3.12 b/profiles/version/3.12 new file mode 100644 index 0000000..c51bb39 --- /dev/null +++ b/profiles/version/3.12 | |||
@@ -0,0 +1,14 @@ | |||
1 | ### version 3.12 vars | ||
2 | # vim: ts=2 et: | ||
3 | |||
4 | # start with base vars | ||
5 | include required("../base/1") | ||
6 | |||
7 | # set version-specific vars | ||
8 | version = "3.12" | ||
9 | release = "3.12.0" | ||
10 | end_of_life = "2022-06-01" | ||
11 | repos { | ||
12 | "http://dl-cdn.alpinelinux.org/alpine/v3.12/main" = true | ||
13 | "http://dl-cdn.alpinelinux.org/alpine/v3.12/community" = true | ||
14 | } | ||
diff --git a/profiles/version/3.9 b/profiles/version/3.9 index 7f5a7e8..f129b58 100644 --- a/profiles/version/3.9 +++ b/profiles/version/3.9 | |||
@@ -2,7 +2,7 @@ | |||
2 | # vim: ts=2 et: | 2 | # vim: ts=2 et: |
3 | 3 | ||
4 | # start with base vars | 4 | # start with base vars |
5 | include required("../base/current") | 5 | include required("../base/1") |
6 | 6 | ||
7 | # set version-specific vars | 7 | # set version-specific vars |
8 | version = "3.9" | 8 | version = "3.9" |
diff --git a/profiles/version/current b/profiles/version/current index 902b2c9..fdcfcfd 120000 --- a/profiles/version/current +++ b/profiles/version/current | |||
@@ -1 +1 @@ | |||
3.11 \ No newline at end of file | 3.12 \ No newline at end of file | ||
diff --git a/profiles/version/edge b/profiles/version/edge index 07a04b0..07c583d 100644 --- a/profiles/version/edge +++ b/profiles/version/edge | |||
@@ -2,7 +2,7 @@ | |||
2 | # vim: ts=2 et: | 2 | # vim: ts=2 et: |
3 | 3 | ||
4 | # based on current | 4 | # based on current |
5 | include required("current") | 5 | include required("../base/current") |
6 | 6 | ||
7 | # add edge-specific tweaks... | 7 | # add edge-specific tweaks... |
8 | version = "edge" | 8 | version = "edge" |
@@ -10,7 +10,6 @@ release = "edge" | |||
10 | end_of_life = "@TOMORROW@" | 10 | end_of_life = "@TOMORROW@" |
11 | revision = "@NOW@" | 11 | revision = "@NOW@" |
12 | 12 | ||
13 | repos = null # remove all values from 'current' | ||
14 | repos { | 13 | repos { |
15 | "http://dl-cdn.alpinelinux.org/alpine/edge/main" = true | 14 | "http://dl-cdn.alpinelinux.org/alpine/edge/main" = true |
16 | "http://dl-cdn.alpinelinux.org/alpine/edge/community" = true | 15 | "http://dl-cdn.alpinelinux.org/alpine/edge/community" = true |