Commit Graph

531 Commits

Author SHA1 Message Date
Dave Tucker
6312d58032 Merge pull request #3659 from edvinerikson/fix-install
fix: make command
2021-05-26 14:27:52 +01:00
Dave Tucker
452910c625 Makefile: Don't encode bindir in the tar archive
Prior to this commit we go build -o bin/foo, archive it, and
expand the archive, leaving the resulting artifact in bin.

This doesn't allow us to easily change the bin directory, or
move parts of the makefile around to make things more modular.

This commit changes the behaviour to:
go build -o foo, archive it, expand to `bin`

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2021-05-26 11:18:41 +01:00
Avi Deitcher
4795c993ee Add support for cache export
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2021-05-26 13:13:37 +03:00
Roman Shaposhnik
378cfc0b3d Allowing linuxkit to recongnize linux/riscv64 arch
Signed-off-by: Roman Shaposhnik <rvs@zededa.com>
2021-05-19 12:34:07 -07:00
Avi Deitcher
f7ee51d931 add v1tarreader for images and use it for docker load
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2021-05-18 18:14:23 +03:00
Avi Deitcher
ebf570d045 refactor buildContext into a simple stdin reader
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2021-05-18 18:14:23 +03:00
Avi Deitcher
dd09b7d77a simplify nobuild/force/build logic
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2021-05-18 18:14:22 +03:00
Edvin Eriksson
f4c4ab1c8c fix: install linuxkit in top-level bin folder
Signed-off-by: Edvin Eriksson <edvin.erikson@leovegas.com>
2021-05-07 14:22:15 +02:00
Avi Deitcher
31ed260e4a Build or push multiple packages at once
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2021-05-05 16:52:27 -04:00
Dave Tucker
0320678133 build: Add --skip-platforms flag
This adds a --skip-platforms flag that can be used with
lkt pkg build to ignore any arch specified in build.yml

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2021-05-02 17:31:27 +01:00
Dave Tucker
54185c8a3f pkglib: Rename v1 to registry
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2021-05-02 17:30:59 +01:00
Dave Tucker
981fb7ff32 pkglib: Add missing comment to FullTag
Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2021-05-02 17:30:53 +01:00
Dave Tucker
907dc5394b pkglib: Don't error on platform mismatch
This prevents override of the platform by the user.
lkt pkg build --platform=linux/amd64 pkg/bpftrace should
attempt to build that package for that arch even though
it is not in the build.yml

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2021-05-02 12:28:43 +01:00
Avi Deitcher
58136486c6 Merge pull request #3646 from deitch/canonicalize-names
always use canonical names in the linuxkit cache
2021-04-30 16:55:48 +03:00
Avi Deitcher
9bb26e4c3a always use canonical names in the linuxkit cache
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2021-04-30 15:12:39 +03:00
Dave Tucker
93ada489f9 make: Fix for local builds outside of GOPATH
Go can be weird about tools having to run in a directory with
go.mod. This commit moves the linuxkit makefile to the same
directory as the code.

It also changes the semantics of the local-build target.
You can now use STATIC=0 for dynamic builds or PIE=1 to
use --buildmode=pie. The binaries we were producing in
local-static weren't actually static so I fixed that too

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2021-04-30 09:31:00 +01:00
Rolf Neugebauer
f37ae83839 Merge pull request #3638 from deitch/use-cache
handle image already in cache
2021-04-28 23:19:51 +01:00
Avi Deitcher
1fb7ff9af2 Update package tags
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2021-04-28 14:18:47 +03:00
Avi Deitcher
711720e0d5 Update use of test packages to latest
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2021-04-28 09:12:07 +03:00
Avi Deitcher
911a0de14c handle image already in cache
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2021-04-28 09:09:09 +03:00
Avi Deitcher
8576579f60 Update use of tools to latest
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2021-04-27 19:52:35 +03:00
Avi Deitcher
a82fff6377 Merge pull request #3612 from deitch/cross-build
cross build packages
2021-04-21 14:55:51 +03:00
Avi Deitcher
c8ef7d0eb0 cross build packages
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2021-04-21 13:03:26 +03:00
Avi Deitcher
74c7de7977 use correct manifest name when pushing
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2021-04-20 11:42:16 +03:00
Dave Tucker
561ce6f4be Remove Notary and Content Trust
This commit removes Notary and Content Trust.
Notary v1 is due to be replaced with Notary v2 soon.
There is no clean migration path from one to the other.
For now, this removes all signing from LinuxKit.
We will look to add this back once a new Notary alternative
becomes available.

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2021-03-30 14:51:11 +01:00
Avi Deitcher
9633d23d37 write to cache
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2021-02-12 16:18:21 +02:00
Avi Deitcher
f8f214110b switch to go modules
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2021-01-18 20:46:52 +02:00
Avi Deitcher
0b7502f130 pull and cache images locally without docker
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2020-12-30 18:27:02 +02:00
Avi Deitcher
a37c0f48e1 Replace copied code with manifest-tool library
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2020-12-18 08:25:08 +02:00
Avi Deitcher
4ceaf86416 fix lint issue
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2020-12-07 18:04:57 +02:00
Avi Deitcher
9fe09dbba8 bump manifest-list to latest
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2020-11-27 01:13:13 +02:00
Justin Cormack
3937cc6619 Update containerd vendor
This fixes arm64 mac

Signed-off-by: Justin Cormack <justin@specialbusservice.com>
2020-11-26 17:06:02 +00:00
Avi Deitcher
863e8c77b7 update sha hashes for pkg/init
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2020-10-21 11:13:52 +03:00
Avi Deitcher
279ee46f39 update hashes for pkg/init
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2020-10-19 20:54:16 +03:00
Avi Deitcher
eae1c2461a update hashes for containerd opts
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2020-10-19 14:49:40 +03:00
Karol Woźniak
9d2e7e9281 Make pkg build build the image
Signed-off-by: Karol Woźniak <wozniakk@gmail.com>
2020-07-24 22:34:11 +02:00
Avi Deitcher
00b9bb56a0 Merge pull request #3532 from deitch/split-push-sign
options to split image steps and manifest steps
2020-06-10 11:13:01 +03:00
Avi Deitcher
ea18be414e options to split image steps and manifest steps
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2020-05-24 16:23:46 +03:00
Justin Cormack
9d5a22d44a Merge pull request #3511 from deitch/append-binds
support merge yaml flags
2020-05-18 20:18:00 +01:00
Avi Deitcher
bcd36a4661 support merge yaml flags
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2020-05-18 17:41:36 +03:00
Rolf Neugebauer
0331aacfe2 Update package tags to v0.8
Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
2020-05-10 16:04:52 +01:00
Rolf Neugebauer
38b1ee8ff5 Merge pull request #3514 from Kdockerfiles/scw_update
Update, fix (and extend a bit) Scaleway support
2020-05-08 11:48:06 +01:00
Ilya Dmitrichenko
86fb6ba0aa pkg/init: Mount /sys/fs/bpf
NOTE: This will be a shared mount, due to root being turned into a
shared with `MC_REC` set: `mount("", "/", "", rec|shared, "")`.
For some reason setting `shared` when mounting `/sys/fs/bpf` doesn't
work at all, perhaps that's just a kernel feature.

Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
2020-05-06 11:06:54 +01:00
Karol Woźniak
d861987b79 scaleway: Fix bugs and add option for changing image size
* Fix using ams1 as zone
* Allow specifying image size (+ calculate default from ISO size)
* Fix mangling logs when asking for ssh passphrase
* Some minor code and docs cleanups

Signed-off-by: Karol Woźniak <wozniakk@gmail.com>
2020-05-01 01:15:24 +02:00
Karol Woźniak
c750f54cb0 Update scaleway-sdk-go to v1.0.0-beta.6
Signed-off-by: Karol Woźniak <wozniakk@gmail.com>
2020-05-01 01:15:24 +02:00
Rolf Neugebauer
6643090752 Update YAMLs to latest containerd/runc/init
Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
2020-04-26 23:52:57 +01:00
Avi Deitcher
afcb0f8abe use manifest-tool as library instead of cmd exec
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2020-04-26 14:09:12 +03:00
Avi Deitcher
fbe9b98d4d match go version in CI to version in go-compile
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2020-04-19 11:22:32 +03:00
Rolf Neugebauer
8278b7311d tool: Revert linuxkit/mkimage-gcp
Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
2020-04-17 22:45:30 +01:00
Rolf Neugebauer
ce89479b2d Update use of packages to the latest
Signed-off-by: Rolf Neugebauer <rn@rneugeba.io>
2020-04-17 10:36:03 +01:00