Commit Graph

8355 Commits

Author SHA1 Message Date
Avi Deitcher
6217565c89 add go vet and go lint
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2022-10-11 10:16:03 +03:00
Avi Deitcher
45e299ce91 Merge pull request #3848 from dgageot/remove-more-dead-code-pkg
Remove dead or redundant code (packages)
2022-10-10 20:55:02 +03:00
Avi Deitcher
93896eb201 Merge pull request #3843 from dgageot/remove-more-dead-code
Remove dead or redundant code (src/cmd/linuxkit)
2022-10-10 20:52:47 +03:00
Avi Deitcher
3df26af9ed Merge pull request #3846 from dgageot/nil-empty-slides-pkg
Prefer nil empty slices (packages)
2022-10-10 20:52:21 +03:00
David Gageot
39807bb0bd Remove dead or redundant code
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-09 15:33:42 +02:00
David Gageot
810c3e788f Prefer nil empty slices
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-09 15:02:23 +02:00
David Gageot
ac62571f00 Remove dead or redundant code
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-09 15:00:36 +02:00
Avi Deitcher
ebb5ded10b Merge pull request #3840 from dgageot/release-notes-workflow
Auto generate Release Notes
2022-10-09 15:55:31 +03:00
Avi Deitcher
fe560c9440 Merge pull request #3838 from dgageot/fix-workflow-name
Fix workflow's name
2022-10-09 15:54:13 +03:00
Avi Deitcher
a3f3f5630b Merge pull request #3842 from dgageot/remove-ioutil
Remove 99% of deprecated ioutil usage (src/cmd/linuxkit)
2022-10-09 15:53:57 +03:00
Avi Deitcher
221cbf2d11 Merge pull request #3844 from dgageot/nil-empty-slides
Prefer nil empty slices (src/cmd/linuxkit)
2022-10-09 15:52:43 +03:00
Avi Deitcher
b1dda052db Merge pull request #3847 from dgageot/remove-ioutil-pkg
Remove 99% of deprecated ioutil usage (packages)
2022-10-09 15:52:27 +03:00
David Gageot
d4e132021a Remove 99% of deprecated ioutil usage
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-09 13:10:38 +02:00
David Gageot
17b92c7f5a Prefer nil empty slices
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-09 13:02:23 +02:00
David Gageot
7687de2d20 Remove 99% of deprecated ioutil usage
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-09 10:27:49 +02:00
Avi Deitcher
8ef4fa3483 Merge pull request #3845 from dgageot/fix-comments
Fix comments
2022-10-09 10:26:17 +03:00
David Gageot
998ad7eea1 Fix comments
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-08 22:41:20 +02:00
David Gageot
f2d70722c4 Generate Release Notes
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-08 22:07:17 +02:00
David Gageot
4bc274154a Fix workflow's name
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-08 21:01:29 +02:00
Avi Deitcher
1d0f49e785 Merge pull request #3837 from dgageot/remove-dead-code
Remove dead code
2022-10-08 21:17:43 +03:00
Avi Deitcher
e25cc72531 Merge pull request #3835 from dgageot/release-workflow
Add an automated release workflow
v0.8.1
2022-10-08 21:13:53 +03:00
David Gageot
d7ec2209b1 Remove dead code
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-07 18:46:38 +02:00
Avi Deitcher
07adfa2bb8 Merge pull request #3831 from dgageot/support-docker-over-ssh
Support remote docker over ssh
2022-10-07 14:43:35 +03:00
Avi Deitcher
93c3fdcfb7 Merge pull request #3834 from dgageot/test-darwin-arm64
Add a GHA target for darwin/arm64
2022-10-07 14:01:40 +03:00
David Gageot
c75bada86b Add release workflow
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-07 13:00:46 +02:00
David Gageot
95d4b34b83 Add a GHA target for darwin/arm64
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-07 10:29:17 +02:00
Avi Deitcher
0f6ed01f2b Merge pull request #3832 from dgageot/faster-gzip
Use faster gzip library
2022-10-06 16:25:38 +03:00
David Gageot
eda59aa5ab Feedback
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-06 14:00:00 +02:00
David Gageot
c977b1b306 Use faster gzip library
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-06 13:08:56 +02:00
Rolf Neugebauer
0a223ec205 Merge pull request #3829 from jf/update_platform-aws_docs
docs/platform-aws.md: add crucial note about ENA for `linuxkit push aws`
2022-10-06 09:35:25 +01:00
David Gageot
780c28dba7 Memoize docker client to avoid consuming a new ssh connection each time
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-03 15:22:21 +02:00
David Gageot
ea863184ce Support connecting to docker over ssh
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-03 14:25:09 +02:00
David Gageot
4df610741d Don't use deprecated api
Signed-off-by: David Gageot <david.gageot@docker.com>
2022-10-03 14:10:15 +02:00
Jeffrey 'jf' Lim
3950e55e00 Fix examples/platform-aws.yml: add dhcpcd service to keep instance reachable after lease
Signed-off-by: Jeffrey 'jf' Lim <jf@users.noreply.github.com>
2022-10-02 17:09:16 +08:00
Jeffrey 'jf' Lim
5f1ae239bb docs/platform-aws.md: add crucial note about ENA for linuxkit push aws
Signed-off-by: Jeffrey 'jf' Lim <jf@users.noreply.github.com>
2022-09-28 21:40:13 +08:00
Rolf Neugebauer
d589bd18f1 Merge pull request #3828 from deitch/set-cache-via-env-var
allow setting cache dir via env var
2022-09-24 14:05:32 +01:00
Avi Deitcher
cec33f0c84 allow setting cache dir via env var
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2022-09-23 13:27:14 +03:00
Avi Deitcher
e532e73108 Merge pull request #3825 from giggsoff/fix-dep
Fix github.com/docker/go-units import
2022-09-13 16:51:24 +03:00
Petr Fedchenkov
227b02a8bd Fix github.com/docker/go-units import
Signed-off-by: Petr Fedchenkov <giggsoff@gmail.com>
2022-09-13 14:52:32 +03:00
Avi Deitcher
5f3856c94c Merge pull request #3823 from giggsoff/clean_builder_cache
Builder disk usage and clean
2022-09-13 14:47:09 +03:00
Petr Fedchenkov
45a5c97931 Builder disk usage and clean
We use dedicated docker container as builder and we are able to clean
data inside only by re-creating of it. Let's add disk usage and clean
commands for builder.

Signed-off-by: Petr Fedchenkov <giggsoff@gmail.com>
2022-09-13 13:33:46 +03:00
Avi Deitcher
3008215556 Merge pull request #3824 from giggsoff/fix-push
Fix bug: when request to build multiple arches, if one already found, it skips the others
2022-09-13 13:21:48 +03:00
Petr Fedchenkov
57148029cd Fix consistently building of multiple arch
We cannot build for another arch after building for one arch because of
setting skipBuild to true if one arch found. In other words "linuxkit
pkg build --platforms linux/riscv64,linux/amd64 ..." after "linuxkit pkg
 build --platforms linux/amd64 ..." will not build for linux/riscv64
 which is not expected.

In general when we check for available images and able to found part of
platforms we do not want to rebuild all of them. So this PR includes
platformsToBuild slice which we fill with platforms we want to build for
.

Signed-off-by: Petr Fedchenkov <giggsoff@gmail.com>
2022-09-13 11:58:23 +03:00
Avi Deitcher
86cc42bf79 Merge pull request #3822 from giggsoff/allow_build_without_cgo
Allow build for darwin without CGO
2022-09-12 14:49:01 +03:00
Petr Fedchenkov
a46e6af650 Allow build for darwin without CGO
It is not easy to use cross-platform build with CGO enabled so lets
allow build without cgo for darwin and use virtualization framework only
 if we built with CGO.

Signed-off-by: Petr Fedchenkov <giggsoff@gmail.com>
2022-09-12 11:41:37 +03:00
Avi Deitcher
ceaeac88b6 Merge pull request #3818 from deitch/optional-tag
add option to override tag name when exporting
2022-09-12 09:48:52 +03:00
Avi Deitcher
7c4e89b652 Merge pull request #3821 from giggsoff/do-not-calculate-broken-symlinks
Skip files in contentHash()
2022-09-08 20:58:13 +03:00
Petr Fedchenkov
49f8faffe0 Skip files in contentHash()
If we cannot open file for some reason it is better to skip it instead
of exit. Also we should skip symlinks and directories.

Signed-off-by: Petr Fedchenkov <giggsoff@gmail.com>
2022-09-08 17:34:21 +03:00
Avi Deitcher
9b636cbf25 Merge pull request #3820 from giggsoff/fix-riscv64-arch
Add all valid arches to ImageLoad
2022-09-08 14:16:03 +03:00
Petr Fedchenkov
3699177d1a Add all valid arches to ImageLoad
We should expand the list of supported arches to be able to build them if we want. Without this we will stuck on sending tarball during build for riscv64.

Signed-off-by: Petr Fedchenkov <giggsoff@gmail.com>
2022-09-08 12:14:49 +03:00