Discussion:
Install additional packages in CoreOS SDK
Adam Jenkins
2018-08-15 21:49:30 UTC
Permalink
I have been able to create a chroot using the CoreOS SDK and create my own
image, but I'm not sure how to actually install additional dependencies.
Any help would be greatly appreciated.
David Michael
2018-08-15 21:54:23 UTC
Permalink
Post by Adam Jenkins
I have been able to create a chroot using the CoreOS SDK and create my own
image, but I'm not sure how to actually install additional dependencies.
Any help would be greatly appreciated.
If you're using the build_image script to create a regular production
image, you can add additional runtime dependencies to
src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1.ebuild
. For correctness, also rename the symlink in that directory to
increment the revision number.

Thanks.

David
Adam Jenkins
2018-08-15 23:01:13 UTC
Permalink
Thanks David. Do you know how I might go about adding files to the image?
Post by David Michael
Post by Adam Jenkins
I have been able to create a chroot using the CoreOS SDK and create my
own
Post by Adam Jenkins
image, but I'm not sure how to actually install additional dependencies.
Any help would be greatly appreciated.
If you're using the build_image script to create a regular production
image, you can add additional runtime dependencies to
src/third_party/coreos-overlay/coreos-base/coreos/coreos-0.0.1.ebuild
. For correctness, also rename the symlink in that directory to
increment the revision number.
Thanks.
David
David Michael
2018-08-16 00:15:26 UTC
Permalink
Post by Adam Jenkins
Thanks David. Do you know how I might go about adding files to the image?
You could either package them and add the package to
coreos-base/coreos, or edit the scripts to write them.

If your goal is just to add miscellaneous files, you might want to
also read about provisioning to determine if you really need to create
a custom image.

https://coreos.com/os/docs/latest/clc-examples.html#storage-and-files

Thanks.

David
Adam Jenkins
2018-08-16 17:47:48 UTC
Permalink
I guess a little more detail about what I'm trying to do would help. My
goal is to create a CoreOS image that will be able to act as a worker node
in an AWS EKS kubernetes cluster. I can create the configuration files
easy enough with ignition, but I need to have kubelet, heptio
authenticator, CNI plugins, and the AWS CLI already installed. I've been
following this
guide: https://medium.com/getamis/customize-aws-eks-worker-node-ami-d7b3d203051.
Post by Adam Jenkins
Post by Adam Jenkins
Thanks David. Do you know how I might go about adding files to the
image?
You could either package them and add the package to
coreos-base/coreos, or edit the scripts to write them.
If your goal is just to add miscellaneous files, you might want to
also read about provisioning to determine if you really need to create
a custom image.
https://coreos.com/os/docs/latest/clc-examples.html#storage-and-files
Thanks.
David
Loading...