coreos / layering-examples

Apache License 2.0
111 stars 24 forks source link

Dockerfile: use rpm-ostree to install strace #1

Closed jmarrero closed 2 years ago

jmarrero commented 2 years ago

Use rpm-ostree to install strace. Depends on: https://github.com/coreos/rpm-ostree/pull/3280

cgwalters commented 2 years ago

In lieu of a better status tracker, reusing this merged PR:

We've combined other recent PRs:

And quay.io/cgwalters/fcos is now updated with all of those, so the code in this PR should work now. The build is running on quay: https://quay.io/repository/cgwalters/fcos-derivation-example/build/42a371e9-09d9-4ec0-b2b7-a9aa367fa4c7

But to state it simply: It should now work to rpm-ostree install <package> as part of a build process for a layered container image, and use that package when booting a system.

cgwalters commented 2 years ago

(That said, the more I think about this, the more I'd like to do https://github.com/coreos/rpm-ostree/issues/2326 - basically expose a subset of the treefile which is declarative, then the Dockerfile is just rpm-ostree rebuild - which would then also handle the cleaning)