diff options
author | Sascha Grunert <sgrunert@suse.com> | 2020-03-20 10:55:23 +0100 |
---|---|---|
committer | Sascha Grunert <sgrunert@suse.com> | 2020-05-11 13:11:07 +0200 |
commit | c21258b70ed91ab5ff8b1d345123fed1011a49c9 (patch) | |
tree | d5f74fb3191ee33f8565f18971cf37426e57afa6 /libpod/info.go | |
parent | 18b273b72ba76d485eb1b4d5df48bff1685953ff (diff) | |
download | podman-c21258b70ed91ab5ff8b1d345123fed1011a49c9.tar.gz podman-c21258b70ed91ab5ff8b1d345123fed1011a49c9.tar.bz2 podman-c21258b70ed91ab5ff8b1d345123fed1011a49c9.zip |
Add podman static build
We’re now able to build a static podman binary based on a custom nix
derivation. This is integrated in cirrus as well, whereas a later target
would be to provide a self-contained static binary bundle which can be
installed on any Linux x64-bit system.
Fixes: https://github.com/containers/libpod/issues/1399
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
Diffstat (limited to 'libpod/info.go')
-rw-r--r-- | libpod/info.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/info.go b/libpod/info.go index 4007e0ce7..51208a2b1 100644 --- a/libpod/info.go +++ b/libpod/info.go @@ -14,6 +14,7 @@ import ( "github.com/containers/buildah" "github.com/containers/libpod/libpod/define" + "github.com/containers/libpod/libpod/linkmode" "github.com/containers/libpod/pkg/cgroups" registries2 "github.com/containers/libpod/pkg/registries" "github.com/containers/libpod/pkg/rootless" @@ -86,6 +87,7 @@ func (r *Runtime) hostInfo() (*define.HostInfo, error) { info := define.HostInfo{ Arch: runtime.GOARCH, BuildahVersion: buildah.Version, + Linkmode: linkmode.Linkmode(), CPUs: runtime.NumCPU(), Distribution: hostDistributionInfo, EventLogger: r.eventer.String(), |