alpine-ec2-ami merge requestshttps://gitlab.alpinelinux.org/alpine/cloud/alpine-ec2-ami/-/merge_requests2021-12-26T23:21:30Zhttps://gitlab.alpinelinux.org/alpine/cloud/alpine-ec2-ami/-/merge_requests/118Add support for cloud-init2021-12-26T23:21:30ZMike Crutemike@crute.usAdd support for cloud-initThis pull request adds cloud-init support to the AMI. Upstream cloud-init still has some bugs with their default configuration that I need to patch, mostly around not locking the `alpine` user at init time. But this is a start. Currently...This pull request adds cloud-init support to the AMI. Upstream cloud-init still has some bugs with their default configuration that I need to patch, mostly around not locking the `alpine` user at init time. But this is a start. Currently you can build the image and it'll deploy the SSH keys correctly to the `alpine` user, it will also run the user-data. I haven't done any other quality checking.
There aren't any AMIs available yet, I've deleted the testing ones, but they can be produce by building the `ci-v3_13-x86_64` build from the `alpine` profile. This will generate an AMI with a `alpine-ci-test-ami-` prefix that is bootstrapped using cloud-init. All of the default builds still use `tiny-ec2-bootstrap`.
This change should be safe to merge as-is because it doesn't change the default behavior of the normal targets.https://gitlab.alpinelinux.org/alpine/cloud/alpine-ec2-ami/-/merge_requests/68Support ARM instance types2020-06-10T01:52:28ZMike Crutemike@crute.usSupport ARM instance typesThis depends on the `template-updates` in #67
The magic numbers for console speed, nvme timeout, and block offset all come from the Amazon Linux and Ubuntu AMIs.
We'll want to remove the `install_updated_aarch64_kernel` function o...This depends on the `template-updates` in #67
The magic numbers for console speed, nvme timeout, and block offset all come from the Amazon Linux and Ubuntu AMIs.
We'll want to remove the `install_updated_aarch64_kernel` function once the upstream virt kernel has the ena patches. This should be within the next day or so for edge and in the 3.12 release. I'll push some changes to this to integrate the test profile into the alpine one but wanted to get this out for review as soon as it was cleaned up.Mike Crutemike@crute.usMike Crutemike@crute.ushttps://gitlab.alpinelinux.org/alpine/cloud/alpine-ec2-ami/-/merge_requests/67Template updates2020-05-30T22:50:06ZMike Crutemike@crute.usTemplate updatesThere are a handful of pretty small changes here... this depends on the tooling changes in #66
* Remove the region and groups variables from packer. Those will be handled by the forthcoming release tool, not packer.
* Packer uses th...There are a handful of pretty small changes here... this depends on the tooling changes in #66
* Remove the region and groups variables from packer. Those will be handled by the forthcoming release tool, not packer.
* Packer uses the scripts from the scripts directory directly to save needing to copy them to the build root
* The default build region is always `us-west-2` (but can still be overridden if necessary) since the core developers are on the west-coast of the US
* Initfs features are now parametrized in the profiles
* The mdev nvme transform is inlined into the `setup-amis` script to eliminate that file and directory
* Removed some unused overrides in the templatesMike Crutemike@crute.usMike Crutemike@crute.ushttps://gitlab.alpinelinux.org/alpine/cloud/alpine-ec2-ami/-/merge_requests/49Introducing Build Profiles2019-05-28T02:59:56ZJake Buchholz GöktürkIntroducing Build ProfilesThis is a big update, directly related to issue #37 (build profiles), reorganizes `variables.yaml` into base, version, and arch core profiles, which are merged (and optionally tweaked) in build profiles. Foundations are also laid to pro...This is a big update, directly related to issue #37 (build profiles), reorganizes `variables.yaml` into base, version, and arch core profiles, which are merged (and optionally tweaked) in build profiles. Foundations are also laid to progress issues #28 (aarch64 AMIs), #22 (Setup CI), #20 (update generate/cleanup scripts), and #23 (retention policy).
Although there are still a couple of improvements I'm working on with regards to `setup-ami.sh` improvements, building AMIs from profiles is working...
```
make PROFILE=test # all build targets of the test profile
make PROFILE=test BUILD=test-edge-x86_64 # just one build target
```
...and I'm hoping to get some feedback with what's been done so far.Jake Buchholz GöktürkJake Buchholz Göktürkhttps://gitlab.alpinelinux.org/alpine/cloud/alpine-ec2-ami/-/merge_requests/29mdev configs for linking NVMe devs --> EBS devs2019-01-19T20:22:56ZJake Buchholz Göktürkmdev configs for linking NVMe devs --> EBS devsThis allows things (i.e. CloudStor & REX-Ray docker plugins) that expect /dev/sdX and /dev/xvdX devices on the instance to work with NVMe devices on newer instance types.
Also, a recent packer change (some time before 1.3.3) necessita...This allows things (i.e. CloudStor & REX-Ray docker plugins) that expect /dev/sdX and /dev/xvdX devices on the instance to work with NVMe devices on newer instance types.
Also, a recent packer change (some time before 1.3.3) necessitates the setting of the build region, if packer is run outside of AWS.
Also-also, bumping release to be in sync with the recently released alpine 3.8.2.https://gitlab.alpinelinux.org/alpine/cloud/alpine-ec2-ami/-/merge_requests/27packer region tweak2018-12-30T20:39:44ZJake Buchholz Göktürkpacker region tweakA recent packer change (some time before 1.3.3) necessitates the setting of the build region, if packer is run outside of AWS.
Also, bumping release to be in sync with the recently released alpine 3.8.2.A recent packer change (some time before 1.3.3) necessitates the setting of the build region, if packer is run outside of AWS.
Also, bumping release to be in sync with the recently released alpine 3.8.2.https://gitlab.alpinelinux.org/alpine/cloud/alpine-ec2-ami/-/merge_requests/25resync with upstream2018-12-03T03:32:37ZJake Buchholz Göktürkresync with upstreamhttps://gitlab.alpinelinux.org/alpine/cloud/alpine-ec2-ami/-/merge_requests/14make edge2018-09-05T18:11:30ZJake Buchholz Göktürkmake edge* Add the ability to 'make edge' to create an AMI based on the latest Alpine edge repository
* Force 'ami_revision' to be 'rYYYYMMDDHHSS'
* Add the ability to 'make edge' to create an AMI based on the latest Alpine edge repository
* Force 'ami_revision' to be 'rYYYYMMDDHHSS'
https://gitlab.alpinelinux.org/alpine/cloud/alpine-ec2-ami/-/merge_requests/10fix dead link in readme2018-08-19T20:19:31ZMike Crutemike@crute.usfix dead link in readme*Created by: waynenilsen*
*Created by: waynenilsen*
https://gitlab.alpinelinux.org/alpine/cloud/alpine-ec2-ami/-/merge_requests/15"make edge"2018-09-07T15:11:04ZJake Buchholz Göktürk"make edge"* Add the ability to 'make edge' to create an AMI based on the latest Alpine edge repository
* Force 'ami_revision' to be 'rYYYYMMDDHHSS'
* Add the ability to 'make edge' to create an AMI based on the latest Alpine edge repository
* Force 'ami_revision' to be 'rYYYYMMDDHHSS'
https://gitlab.alpinelinux.org/alpine/cloud/alpine-ec2-ami/-/merge_requests/9Add missing $target variables2018-08-19T20:19:36ZMike Crutemike@crute.usAdd missing $target variables*Created by: Exordian*
add missing `$target` variables to modify the alpine image instead of the builder image*Created by: Exordian*
add missing `$target` variables to modify the alpine image instead of the builder imagehttps://gitlab.alpinelinux.org/alpine/cloud/alpine-ec2-ami/-/merge_requests/8Add resize2fs dependencies for image automatic resizing2018-08-19T20:19:43ZMike Crutemike@crute.usAdd resize2fs dependencies for image automatic resizing*Created by: Exordian*
dependency of https://github.com/mcrute/tiny-ec2-bootstrap/blob/master/tiny-ec2-bootstrap#L56*Created by: Exordian*
dependency of https://github.com/mcrute/tiny-ec2-bootstrap/blob/master/tiny-ec2-bootstrap#L56https://gitlab.alpinelinux.org/alpine/cloud/alpine-ec2-ami/-/merge_requests/7Improve Configurability2018-08-19T14:36:36ZJake Buchholz GöktürkImprove Configurability* move config variables from `alpine-ami.yaml` to `variables.json-*`
+ `variables.json-default` - ready-for-action original default config
+ `variables.json-example` - original defaults with comments
* clean up tabs vs. spaces in ...* move config variables from `alpine-ami.yaml` to `variables.json-*`
+ `variables.json-default` - ready-for-action original default config
+ `variables.json-example` - original defaults with comments
* clean up tabs vs. spaces in `make_ami.sh`
* `make_ami.sh` handles custom kernel flavor, extra repos, and extra packages
* tweak `README.md` with regards to aws-ena-driver caveat