Skip to content

Static Build with nix Package Manager #364

@hswong3i

Description

@hswong3i

Currently adhoc compile crun master from source code are blocked for following legacy OS:

Ideally this could be handled by using static build (see https://github.com/containers/crun/blob/master/contrib/static-builder-x86_64/README.md); BTW the logic of this method is also a bit chicken or the egg like:

  • In order to run the build we "need first to create the container image"
  • The container image should be created by podman
  • podman need a container runtime, e.g. runc or crun
  • As long as crun is not yet ready, we need to install runc + podman for "create the container image for build" (!?)
  • Once build completed, we uninstall runc (!!) and replace it with the newly crun static build (!?)

Besides download the provided static build archive from crun release page (https://github.com/containers/crun/releases), another workaround could be using "nix Package Manager" (https://nixos.org/nix/) for static build locally, e.g.

Shall we also go for a similar solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions