|
env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-s -w" -o pkg/runtimes/bin/exe.amd64 ./pkg/runtimes/shim |
|
env GOOS=linux GOARCH=arm CGO_ENABLED=0 go build -ldflags "-s -w" -o pkg/runtimes/bin/exe.arm ./pkg/runtimes/shim |
|
env GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags "-s -w" -o pkg/runtimes/bin/exe.arm64 ./pkg/runtimes/shim |
|
go: downloading github.com/moby/sys/mountinfo v0.6.2 |
|
go: downloading golang.org/x/sys v0.7.0 |
|
go: downloading github.com/mattn/go-colorable v0.1.12 |
|
go: downloading github.com/cenkalti/backoff/v4 v4.2.0 |
|
go: downloading golang.org/x/sys v0.7.0 |
|
go: downloading github.com/moby/sys/mountinfo v0.6.2 |
|
go: downloading go.uber.org/zap v1.19.1 |
|
go: downloading go.uber.org/zap v1.19.1 |
|
go: downloading golang.org/x/sys v0.7.0 |
|
go: downloading github.com/mattn/go-colorable v0.1.12 |
|
go: downloading github.com/cenkalti/backoff/v4 v4.2.0 |
|
go: downloading github.com/mattn/go-colorable v0.1.12 |
|
go: downloading github.com/containerd/containerd v1.7.0 |
|
go: downloading github.com/cenkalti/backoff/v4 v4.2.0 |
|
go: downloading github.com/containerd/containerd v1.7.0 |
|
go: downloading github.com/moby/sys/mountinfo v0.6.2 |
|
go: downloading go.uber.org/zap v1.19.1 |
|
go: downloading github.com/containerd/containerd v1.7.0 |
|
go: downloading github.com/mattn/go-isatty v0.0.18 |
|
go: downloading github.com/mattn/go-isatty v0.0.18 |
|
go: downloading github.com/mattn/go-isatty v0.0.18 |
|
go: downloading go.uber.org/atomic v1.7.0 |
|
go: downloading go.uber.org/multierr v1.6.0 |
|
go: downloading go.uber.org/multierr v1.6.0 |
|
go: downloading go.uber.org/atomic v1.7.0 |
|
go: downloading go.uber.org/multierr v1.6.0 |
|
go: downloading go.uber.org/atomic v1.7.0 |
|
go: downloading github.com/containerd/go-runc v1.0.1-0.20230316182144-f5d58d02d6c8 |
|
go: downloading github.com/containerd/go-runc v1.0.1-0.20230316182144-f5d58d02d6c8 |
|
go: downloading github.com/sirupsen/logrus v1.9.0 |
|
go: downloading github.com/containerd/console v1.0.3 |
|
go: downloading github.com/containerd/console v1.0.3 |
|
go: downloading github.com/opencontainers/runtime-spec v1.1.0-rc.1 |
|
go: downloading github.com/opencontainers/runtime-spec v1.1.0-rc.1 |
|
go: downloading github.com/sirupsen/logrus v1.9.0 |
|
go: downloading github.com/containerd/console v1.0.3 |
|
go: downloading github.com/sirupsen/logrus v1.9.0 |
|
go: downloading github.com/opencontainers/runtime-spec v1.1.0-rc.1 |
|
which upx # required for compressing shims |
|
/bin/upx |
|
upx pkg/runtimes/bin/exe.amd64 pkg/runtimes/bin/exe.arm pkg/runtimes/bin/exe.arm64 || true # swallow AlreadyPackedException :/ |
|
Ultimate Packer for eXecutables |
|
Copyright (C) 1996 - 2023 |
|
UPX 4.0.2 Markus Oberhumer, Laszlo Molnar & John Reiser Jan 30th 2023 |
|
|
|
File size Ratio Format Name |
|
-------------------- ------ ----------- ----------- |
|
3444736 -> 1480904 42.99% linux/amd64 exe.amd64 |
|
3342336 -> 1326452 39.69% linux/arm exe.arm |
|
3407872 -> 1375728 40.37% linux/arm64 exe.arm64 |
|
-------------------- ------ ----------- ----------- |
|
10194944 -> 4183084 41.03% [ 3 files ] |
|
|
|
Packed 3 files. |