Commit Graph

2262 Commits (75ab2b1137aa17b8330fcb4591f39b34ba7f7310)

Author SHA1 Message Date
Tõnis Tiigi b1f83754d5
Merge pull request #1273 from thaJeztah/fix_invalid_stagename_error
frontend/dockerfile: show original stagename in error-message
2019-11-26 11:11:33 -08:00
Sebastiaan van Stijn 2105de3499
frontend/dockerfile: show original stagename in error-message
Before this change, the error message would show the invalid name in lowercase:

    docker build -<<'EOF'
    FROM busybox AS foo:$BAR
    EOF

    [+] Building 0.2s (2/2) FINISHED
    => [internal] load build definition from Dockerfile                                                                                                                                                                                                                                                                                                             0.0s
    => => transferring dockerfile: 67B                                                                                                                                                                                                                                                                                                                              0.0s
    => [internal] load .dockerignore                                                                                                                                                                                                                                                                                                                                0.1s
    => => transferring context: 2B                                                                                                                                                                                                                                                                                                                                  0.0s
    failed to solve with frontend dockerfile.v0: failed to create LLB definition: Dockerfile parse error line 1: invalid name for build stage: "foo:$bar", name can't start with a number or contain symbols

With this patch, the invalid stagename is shown as-is

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-11-26 13:50:40 +01:00
Tõnis Tiigi adfc3dd43f
Merge pull request #1270 from tlbdk/ssh2-support
Inherit extended agent so we get modern sign hashes
2019-11-22 12:54:07 -08:00
Akihiro Suda 7a601252fe
Merge pull request #1263 from ChaosGramer/master
Add readiness and liveness probe to the kubernetes examples
2019-11-22 09:41:22 -08:00
ChaosGramer fe7a49fa09
add readiness and liveness probe as example
Signed-off-by: Jan Vaehsen (Windows) <janvaehsen@trieforce.de>
2019-11-22 18:20:28 +01:00
Troels Liebe Bentsen 9c70fb9927 Disallow Extensions for now
Signed-off-by: Troels Liebe Bentsen <tlb@nversion.dk>
2019-11-21 21:57:04 +01:00
Troels Liebe Bentsen 4e7904f37e Inherit extended agent so we get modern sign hashes
Signed-off-by: Troels Liebe Bentsen <tlb@nversion.dk>
2019-11-20 00:15:51 +01:00
Edgar Lee b622a87c5d Change result type to array of refs
Signed-off-by: Edgar Lee <edgarl@netflix.com>
2019-11-19 14:00:32 -08:00
Tõnis Tiigi 5c9365b6f4
Merge pull request #1259 from AkihiroSuda/contributing-md-fix-link
CONTRIBUTING.md: fix broken link
2019-11-13 14:55:18 -08:00
Tibor Vass c4f5086b6a
Merge pull request #1256 from tonistiigi/fix-parent-release
cache: fix possible concurrent maps write on parent release
2019-11-12 18:08:40 -08:00
Tonis Tiigi 1955890445 cache: fix possible concurrent maps write on parent release
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-11-12 13:41:50 -08:00
Akihiro Suda f2c90ce0a0 CONTRIBUTING.md: fix broken link
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2019-11-13 04:39:27 +09:00
Tõnis Tiigi 2ceaa119e4
Merge pull request #1248 from tonistiigi/parent-diff
blobs: allow alternative compare-with-parent diff
2019-11-12 10:02:20 -08:00
Tõnis Tiigi e486c1193f
Merge pull request #1247 from tonistiigi/dangling-naming
exporter: add canonical and dangling image naming
2019-11-12 10:02:04 -08:00
Tõnis Tiigi 5afa48a5a6
Merge pull request #1255 from AkihiroSuda/statefulset-parallel
examples/kubernetes: use Parallel mode for StatefulSet
2019-11-12 08:54:55 -08:00
Tõnis Tiigi 1642b9ce91
Merge pull request #1253 from pchico83/okteto
Used by Okteto Cloud
2019-11-12 08:53:31 -08:00
Akihiro Suda 14d5f06ed2 examples/kubernetes: use Parallel mode for StatefulSet
Parallel mode releaxes the pod creation order constraint.

https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#parallel-pod-management

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2019-11-12 19:24:52 +09:00
Pablo Chico de Guzman 7a9f5e7696 Used by Okteto Cloud
Signed-off-by: Pablo Chico de Guzman <pchico83@gmail.com>
2019-11-12 10:33:13 +01:00
Sam Whited 00bfbab039 all: bump the systemd dep to use Go Modules
Signed-off-by: Sam Whited <sam@samwhited.com>
2019-11-11 10:45:43 -05:00
Oliver Bristow 8a81a83222 Add IEEE 1003.1 mandatory variable interpolation syntax
See https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_02

Signed-off-by: Oliver Bristow <oliver.bristow@project-tracr.com>
2019-11-08 17:47:18 +00:00
Tõnis Tiigi 18f2c62285
Merge pull request #1244 from hinshun/doc-solver-types
Improve solver type godocs
2019-11-07 10:24:24 -08:00
Edgar Lee e8326b213b Fixup doc strings for solver types
Signed-off-by: Edgar Lee <edgarl@netflix.com>
2019-11-07 10:00:20 -08:00
Tibor Vass e8c26ec2a1
Merge pull request #1246 from tonistiigi/restore-ref-labels
exporter: keep blob refs on images
2019-11-06 18:56:23 -08:00
Tonis Tiigi 6c70bacf8e readme: document available options for image output
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-11-06 18:26:31 -08:00
Tonis Tiigi 565deba342 blobs: allow alternative compare-with-parent diff
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-11-06 17:34:42 -08:00
Tonis Tiigi 044271e0ad exporter: add canonical and dangling image naming
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-11-06 17:32:24 -08:00
Tonis Tiigi 01cfdcd8f2 exporter: keeps blob refs on images
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-11-06 17:30:21 -08:00
Edgar Lee 7846d924ff Improve solver type godocs
Signed-off-by: Edgar Lee <edgarl@netflix.com>
2019-11-06 14:45:26 -08:00
Tibor Vass 6bbf5e19c4
Merge pull request #1228 from tonistiigi/symlink-copy
dockerfile: fix copy symlinks on copied dir
2019-11-01 14:37:28 -07:00
Tõnis Tiigi 638df98898
Merge pull request #1238 from hinshun/docker-gen
Fix update generated files via docker buildkit
2019-11-01 11:13:41 -07:00
Edgar Lee bb0ed03111 Fix update generated files via docker buildkit
Signed-off-by: Edgar Lee <edgarl@netflix.com>
2019-11-01 10:37:00 -07:00
Tõnis Tiigi d8a369733f
Merge pull request #1239 from AkihiroSuda/doc-fix-local-cache
README.md: fix description about local cache
2019-11-01 09:56:23 -07:00
Akihiro Suda 6e090f5820 README.md: fix description about local cache
Fix #1234

This has been already implemented.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2019-11-01 15:09:00 +09:00
Akihiro Suda e759bd1294
Merge pull request #1231 from tonistiigi/userns-secret-mount
exec: fix mount options on userns remapping
2019-11-01 12:33:12 +09:00
Tõnis Tiigi fdd2f9b660
Merge pull request #1233 from hinshun/rm-wildcard
Implement file action remove for wildcards
2019-10-30 14:44:40 -07:00
Edgar Lee c122adacb5 Implement file action remove for wildcards
Signed-off-by: Edgar Lee <edgarl@netflix.com>
2019-10-30 14:25:00 -07:00
Tonis Tiigi 307bdc3c3d exec: fix mount options on userns remapping
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-10-29 14:20:40 -07:00
Tõnis Tiigi 50a406ae09
Merge pull request #1229 from AkihiroSuda/doc-cgroup2
docs for Fedora 31 users
2019-10-29 10:04:30 -07:00
Akihiro Suda 04ba0e64a2 docs for Fedora 31 users
BuildKit with crun works fine on cgroup2 system.
Tested both Rootful and Rootless on Fedora 31, with crun v0.10.2.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2019-10-29 15:02:38 +09:00
Tonis Tiigi 9654e5eeda dockerfile: fix copy symlinks on copied dir
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-10-28 22:10:05 -07:00
Tõnis Tiigi 4f4e030675
Merge pull request #1221 from tonistiigi/leases-follow-up
cache: follow-up updates to storage leases
2019-10-21 18:14:28 -07:00
Tonis Tiigi 1d867ebdb1 cache: follow-up updates to storage leases
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-10-21 17:19:44 -07:00
Tõnis Tiigi 02adc6b7fb
Merge pull request #1207 from thaJeztah/output_add_padding
frontend: add padding to align steps in stage
2019-10-21 14:13:24 -07:00
Sebastiaan van Stijn 59bf16c017
frontend: add padding to align steps in stage
This adds padding, so that the output of stages
that have 10 steps or more align better;

Before:

     => [dev 1/24] RUN groupadd -r docker                                        0.7s
     => [dev 2/24] RUN useradd --create-home --gid docker unprivilegeduser       1.0s
     => [dev 3/24] RUN ln -sfv /go/src/github.com/docker/docker/.bashrc ~/.bas   0.9s
     => [dev 4/24] RUN echo "source /usr/share/bash-completion/bash_completion"  1.0s
     => [dev 5/24] RUN ln -s /usr/local/completion/bash/docker /etc/bash_c       0.8s
     => [dev 6/24] RUN ldconfig                                                  1.6s
     => [dev 7/24] RUN --mount=type=cache,sharing=locked,id=moby-dev-aptlib,    44.8s
     => [dev 8/24] RUN pip3 install yamllint==1.16.0                             4.0s
     => [dev 9/24] COPY --from=swagger /build/swagger* /usr/local/bin/           0.2s
     => [dev 10/24] COPY --from=frozen-images /build/ /docker-frozen-images      2.0s
     => [dev 11/24] COPY --from=golangci_lint /build/ /usr/local/bin/            0.3s
     => [dev 12/24] COPY --from=gotestsum /build/ /usr/local/bin/                0.3s

After:

     => [dev  1/24] RUN groupadd -r docker                                       0.7s
     => [dev  2/24] RUN useradd --create-home --gid docker unprivilegeduser      1.0s
     => [dev  3/24] RUN ln -sfv /go/src/github.com/docker/docker/.bashrc ~/.bas  0.9s
     => [dev  4/24] RUN echo "source /usr/share/bash-completion/bash_completion" 1.0s
     => [dev  5/24] RUN ln -s /usr/local/completion/bash/docker /etc/bash_c      0.8s
     => [dev  6/24] RUN ldconfig                                                 1.6s
     => [dev  7/24] RUN --mount=type=cache,sharing=locked,id=moby-dev-aptlib,   44.8s
     => [dev  8/24] RUN pip3 install yamllint==1.16.0                            4.0s
     => [dev  9/24] COPY --from=swagger /build/swagger* /usr/local/bin/          0.2s
     => [dev 10/24] COPY --from=frozen-images /build/ /docker-frozen-images      2.0s
     => [dev 11/24] COPY --from=golangci_lint /build/ /usr/local/bin/            0.3s
     => [dev 12/24] COPY --from=gotestsum /build/ /usr/local/bin/                0.3s

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-10-21 22:29:26 +02:00
Tõnis Tiigi f4fccc249f
Merge pull request #1215 from AkihiroSuda/rename-dockerfiles
hack: rename Dockerfiles
2019-10-18 08:51:50 -07:00
Akihiro Suda 5938170b84 hack: rename Dockerfiles
Fix https://github.com/moby/buildkit/issues/1208

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2019-10-18 17:21:48 +09:00
Akihiro Suda a038b5d983
Merge pull request #1176 from tonistiigi/cache-refs
Update storage management from root labels to leases
2019-10-18 14:04:25 +09:00
Tonis Tiigi 339d4b2fef leaseutil: mark temporary leases with timestamps
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-10-16 10:35:50 -07:00
Tonis Tiigi 31a9aeea88 cache: add migration flow to new lease based format
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-10-16 10:35:49 -07:00
Tonis Tiigi d35d2c1c94 blobs: ensure lease is held on GetDiffPairs
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-10-16 10:35:48 -07:00