runc-examples
compiling-containers
runc-examples | compiling-containers | |
---|---|---|
1 | 3 | |
1 | 14 | |
- | - | |
10.0 | 0.0 | |
over 5 years ago | over 3 years ago | |
Shell | Go | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
runc-examples
-
BuildKit in depth: Docker's build engine explained
EDIT: Looks like I don't need to `unshare` by hand but runc actually does this already:
https://github.com/psanford/runc-examples/blob/master/rootle...
compiling-containers
-
BuildKit in depth: Docker's build engine explained
A cool thing about Buildkits LLB is that you can write your own front end to BuildKit. At Earthly, this is sort of a starter task for everyone who joins the team.
My frontend was based on intercal and I don't recommend anyone use it[1].
Buildkit functions a bit like a compiler. I wrote an article once about how it all works. [2]
[1]: https://github.com/adamgordonbell/compiling-containers/tree/...
[2]: https://www.docker.com/blog/compiling-containers-dockerfiles...
-
`COPY –chmod` reduced the size of my container image by 35%
Earthly is great (disclosure: work on it)
But also checkout out IckFiles, an Intercal frontend for moby buildkit:
https://github.com/adamgordonbell/compiling-containers/tree/...
-
Compiling Containers - Dockerfiles, LLVM and BuildKit
Hi, I wrote this, thank you for submitting it. I was trying to teach a bit about compilers and container images at the same time and share some working code examples. The code samples are here and here.
What are some alternatives?
dumb-init - A minimal init system for Linux containers
ko - Build and deploy Go applications
Lean and Mean Docker containers - Slim(toolkit): Don't change anything in your container image and minify it by up to 30x (and for compiled languages even more) making it secure too! (free and open source)
Packer - Packer is a tool for creating identical machine images for multiple platforms from a single source configuration.
dive - A tool for exploring each layer in a docker image
image-spec - OCI Image Format