chainguard-dev / edu

Educational Resources for Software Supply Chain Security
https://edu.chainguard.dev
Other
74 stars 66 forks source link

[apko] Resource: Terraform Provider apko documentation #845

Open denhamparry opened 1 year ago

denhamparry commented 1 year ago

What topic are you requesting a resource about?

Proposed title: Getting Started with the apko Terraform provider

We are now using Terraform to build our Chainguard Images. Several people have asked for best practices for building aspects of their images (e.g., -dev variants of a custom image) provided within a submodule of the apko Terraform provider.

Being able to provide a walkthrough for this process would be beneficial to people building Chainguard Images, as well as educating best practices to the community.

Description:

Links:

ltagliaferri commented 1 year ago

Thinking to pick an example image to demonstrate how this works, with local testing then ttl.sh

denhamparry commented 1 year ago

As a recommendation, maybe we could use a "Hello Inky" application that is a simple web server that renders an index.html page. This image can be built and when run would render the page via a port and browser/curl. Ee can then also create the -dev variant that allows using ls, cat, and an editor to change the value within index.html.