Edgar Lee
7c81e16b8a
Fix duplicate source maps and fix issue preventing multiple locations per source map
...
Signed-off-by: Edgar Lee <edgarl@netflix.com>
2020-05-20 18:48:20 -07:00
Edgar Lee
59fa9fc9a0
Allow multiple source locations to be added as a constraint
...
Signed-off-by: Edgar Lee <edgarl@netflix.com>
2020-05-20 16:48:44 -07:00
Edgar Lee
7a90a36b46
Support multiple source maps and locations for source-level stacktraces
...
Signed-off-by: Edgar Lee <edgarl@netflix.com>
2020-05-20 16:17:35 -07:00
Tonis Tiigi
6dee7ee0fc
dockerfile: add source mapping tests
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-05-19 17:22:21 -07:00
Tonis Tiigi
e536302180
dockerfile: keep mapping on #syntax error
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-05-18 15:50:08 -07:00
Tonis Tiigi
6073e6cff3
llb: enable source tracking
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-05-18 15:50:03 -07:00
Tonis Tiigi
1f9599aba3
llb: move source mapping to llb metadata
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-05-18 15:49:41 -07:00
Jörg Franke
5f23bdf9d0
Expand chown value of ADD command
...
Signed-off-by: Jörg Franke <359489+NewJorg@users.noreply.github.com>
2020-05-02 19:37:23 +02:00
Tonis Tiigi
90288ab716
errdefs: update to new packages
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-04-24 11:25:44 -07:00
Tonis Tiigi
4b2636acca
dockerfile: add more source information to errors
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-04-21 23:46:17 -07:00
Tonis Tiigi
abbda4e941
errdefs: attach source to an error
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-04-21 23:46:17 -07:00
Tonis Tiigi
cce301badd
solver: attach causing vertex in an error
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-04-21 23:46:17 -07:00
Tonis Tiigi
ae3b75d56d
errdefs: report component version in stack
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-04-21 23:46:17 -07:00
Tonis Tiigi
bb484dcce3
dockerfile: remove IsUnknownInstruction
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-04-21 10:44:24 -07:00
Tonis Tiigi
e2835e55ad
dockerfile: store error location in instructions parser
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-04-19 20:56:31 -07:00
Tonis Tiigi
ea7a9146a2
dockerfile: include parser error location
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-04-19 15:54:58 -07:00
Tonis Tiigi
37b8832d00
upgrade errors checks to Is()
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-04-18 22:53:38 -07:00
Tonis Tiigi
c157d8a3ef
dockerfile: remove mix of testing frameworks
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-04-14 22:05:41 -07:00
Tonis Tiigi
f2307db707
dockerfile: nicer subtest cases in parser tests
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-04-14 22:05:41 -07:00
Tonis Tiigi
7c0493de8d
dockerfile: fix parsing multiple directives
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-04-14 22:04:53 -07:00
Sam Whited
c62983bbde
all: run integration tests against dockerd
...
Signed-off-by: Sam Whited <sam@samwhited.com>
2020-04-08 23:27:17 -07:00
Tonis Tiigi
1a9d366b49
llb: asyncronous llb graph generation support
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-04-03 14:55:10 -07:00
Andrea Luzzardi
e7150dcfef
dockerfile: forward FrontendInputs to the gateway
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2020-03-26 17:38:12 -07:00
Pratik Raj
2910de68b1
optimization debian package manager tweaks
...
By default, Ubuntu or Debian based "apt" or "apt-get" system installs recommended but not suggested packages .
By passing "--no-install-recommends" option, the user lets apt-get know not to consider recommended packages as a dependency to install.
This results in smaller downloads and installation of packages .
Refer to blog at [Ubuntu Blog](https://ubuntu.com/blog/we-reduced-our-docker-images-by-60-with-no-install-recommends ) .
Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
2020-03-11 15:27:54 +05:30
Tonis Tiigi
a60ecfa4ae
vendor: restore dependency versions
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-02-24 17:31:01 -08:00
Edgar Lee
7e0f923181
Implement CapFrontendInput to pass llb.States to frontends
...
Signed-off-by: Edgar Lee <edgarl@netflix.com>
2020-02-24 14:38:01 -08:00
Tibor Vass
adde225dcb
Merge pull request #1180 from Code0x58/expand-expansion
...
Expand shell variable expansion - add mandatory variables
2020-02-20 17:26:06 -08:00
Tonis Tiigi
8f52339933
dockerfile: add test for whitelisted devices
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-01-30 18:43:04 -08:00
Edgar Lee
c83e8bf2a9
Add gateway apicap for CapReferenceOutput and move reference llb.Output to method ToOutput()
...
Signed-off-by: Edgar Lee <edgarl@netflix.com>
2020-01-23 11:36:30 -08:00
Edgar Lee
0a76749067
Add platform defop test, force renames in copy tests, and move forwarded solve test to dockerfile package
...
Signed-off-by: Edgar Lee <edgarl@netflix.com>
2020-01-23 11:02:40 -08:00
Edgar Lee
2edb431a0f
Allow previous solve results to be used in new solves
...
Signed-off-by: Edgar Lee <edgarl@netflix.com>
2020-01-23 11:02:40 -08:00
Tonis Tiigi
393f388ed3
dockerfile: clear onbuild rules after triggering
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-01-13 17:09:28 -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
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
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
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
Tonis Tiigi
fef0996045
dockerfile: skip cni tests on rootless
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-09-05 16:49:48 -07:00
Tõnis Tiigi
0639e6fbc0
Merge pull request #1141 from Metaswitch/run-network-mode
...
Implement support for RUN --network=none|default|host
2019-09-05 16:38:23 -07:00
Andy Caldwell
17769771d4
Rename tests to be called tests
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com>
2019-08-30 16:44:28 +01:00
Andy Caldwell
d637340066
Fix up guard and add extra negative test
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com>
2019-08-29 18:29:47 +01:00
Tibor Vass
bd8f49ed58
dockerfile: add TestCopySocket test + vendor needed continuity fix
...
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-08-27 20:53:37 +00:00
Andy Caldwell
808ad65222
Add guard for CNI tests
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com>
2019-08-27 14:43:22 +01:00
Andy Caldwell
b939973129
Remove note about entitlement on dockerd
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com>
2019-08-21 22:03:01 +01:00
Andy Caldwell
113e3133cd
Don't set network/security mode on stable dockerfile
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com>
2019-08-21 13:08:22 +01:00
Michael Crosby
9290c15ffc
Pin containerd runtime to v1
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-08-20 17:03:04 -07:00
Andy Caldwell
2ccafc16b7
Update documentation
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com>
2019-08-20 19:23:07 +01:00
Andy Caldwell
cc1b7b56c7
Add test that global network is applied if otherwise unspecified
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com>
2019-08-20 14:57:31 +01:00
Andy Caldwell
588c07f9b4
Set RunOptions rather than modifying solve state
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com>
2019-08-18 21:45:47 +01:00
Andy Caldwell
5ea3a003f7
Implement support for RUN --network=none|default|host
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com>
2019-08-17 01:44:46 +01:00
Tõnis Tiigi
48f4a9b00e
Merge pull request #1132 from tonistiigi/keep-git
...
git: updates for keep git dir
2019-08-14 14:10:52 -07:00