Akihiro Suda
d47b46cf2a
Merge pull request #2432 from crazy-max/gofmt
...
go fmt: add //go:build
2021-10-29 12:32:52 +09:00
CrazyMax
54b8ff2fc8
go fmt: add //go:build
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-10-28 13:26:43 +02:00
CrazyMax
c82ef274bf
cgroup-parent support
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-10-27 23:50:20 +02:00
CrazyMax
87e1fa7ecb
add size to tmpfs mounts
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-10-18 10:54:52 +02:00
CrazyMax
4e32ae5630
Add support for ulimit
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-10-08 11:50:09 +02:00
CrazyMax
6094339341
Add support for shm size
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-10-01 16:07:29 +02:00
CrazyMax
5fcc94454f
Generate and embed build sources
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-09-18 01:39:35 +02:00
Koichi Shiraishi
671ae38fb7
all: unify the specs-go package import alias to ocispecs
...
ocispecs means "O"pen "C"ontainer "I"nitiative image-spec/"specs"-go/v1
opencontainers /image-spec/specs-go/v1
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
2021-08-11 08:29:09 +09:00
Sebastiaan van Stijn
cea791d3fe
replace use of deprecated github.com/docker/docker/pkg/signal
...
This package was moved to a separate module in github.com/moby/sys/signal
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-02 12:19:45 +02:00
Tõnis Tiigi
9df59934cd
Merge pull request #2218 from tonistiigi/error-suggest
...
dockerfile: add suggestions to how to fix certain errors
2021-07-07 10:52:07 -07:00
Tonis Tiigi
259fba7d43
dockerfile: move run network to stable channel
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-06 15:25:29 -07:00
Tonis Tiigi
277517e2a3
add error suggest pkg
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-02 17:29:27 -07:00
Justin Chadwell
c99b558ec3
Improve progress and history messages for heredoc-related commands
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
2021-07-01 09:15:51 +01:00
Tonis Tiigi
111153eafb
dockerfile: ensure config resolve errors keep source location
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-16 22:16:16 -07:00
Justin Chadwell
e49dc642cf
Fix file modes with remote ADD commands
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
2021-06-14 18:52:13 +01:00
Justin Chadwell
de7fcce614
Integrate heredoc support into ADD/COPY and RUN
...
This modifies the command structures to support inline files, as well as
provides the logic to compile them down into appropriate LLB
definitions.
Signed-off-by: Justin Chadwell <me@jedevc.com>
2021-06-09 10:53:25 +01:00
Tõnis Tiigi
1465ce570b
Merge pull request #2089 from omermizr/feature/run-mount-variables
...
feat(run-mount): add support for variable expansion
2021-05-06 00:20:01 -07:00
Omer Mizrahi
aa467196bd
feat(run-mount): add support for variable expansion
...
Signed-off-by: Omer Mizrahi <ommizrah@microsoft.com>
2021-05-05 02:56:39 +03:00
Sebastiaan van Stijn
a743d4ba02
Add "ALL_PROXY" to list of default args / proxy env-vars
...
Relates to a82fff6377/docs/packages.md (proxies)
> (..) the first four of these are the standard built-in build-arg options
> available for `docker build`
> (..) The last, `all_proxy`, is a standard var used for socks proxying. Since
> it is not built into `docker build`, if you want to use it, you will need to
> add the following line to the dockerfile:
>
> ARG all_proxy
Given the we support all other commonly known proxy env-vars by default, it makes
sense to add this one as well.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-04-24 18:19:02 +02:00
岁丰
adca74632e
dockerfile build: return error when meet error in load config metadata
...
Signed-off-by: genglu <genglu.gl@antfin.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-11-16 17:16:02 -08:00
Tonis Tiigi
63856b6a36
dockerfile: set default shell based on OS
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-23 15:30:23 -07:00
Tonis Tiigi
ecf070a027
exec: use platform specific default path
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-23 15:30:23 -07:00
Lu Jingxiao
5e7ae230b2
Add hostname specifying for building
...
Fix : #1301
Signed-off-by: Lu Jingxiao <lujingxiao@huawei.com>
2020-10-14 14:45:36 +08:00
Tonis Tiigi
906e34510d
dockerfile: update run mounts to stable channel
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-04 22:22:08 -07:00
Tonis Tiigi
c810b8ed25
dockerfile: allow multiple values for ARG
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-09-22 11:56:51 -07:00
Tonis Tiigi
c8190b1518
lint: enable golint
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-07-19 09:28:24 -07:00
Chenbin
b7fd382230
add chmod in COPY and ADD command
...
Signed-off-by: Chenbin <chen.bin11@zte.com.cn>
2020-06-10 21:37:46 +08: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
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
1a9d366b49
llb: asyncronous llb graph generation support
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-04-03 14:55:10 -07: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
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
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
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
Akihiro Suda
2b2bdac1b8
Merge pull request #1125 from tonistiigi/relative-ignore
...
dockerfile: ignore relative source paths for compatibility
2019-08-10 13:54:37 +09:00
Tonis Tiigi
f3960acce1
dockerfile: ignore relative source paths for compatibility
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-09 10:46:35 -07:00
Tonis Tiigi
872bf0b8c8
dockerfile: add cap for detecting correct nooutput support
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-08 22:07:34 -07:00
Tonis Tiigi
6371e4a31f
dockerfile: fix default cache IDs
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-07-26 14:27:06 -07:00
Tibor Vass
4bba1b1f3d
dockerfile: build args in history should honor env overrides
...
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-07-23 01:26:56 +00:00
Tibor Vass
f4702ad490
dockerfile: move toEnvMap function to tests
...
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-07-23 01:26:56 +00:00
Tibor Vass
a7e52bf76d
dockerfile: fix handling of empty build-arg also used as env
...
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-07-23 01:26:56 +00:00
Andrey Smirnov
86e19b621e
Implement frontend support for RUN --security=insecure
...
Example:
RUN --security=insecure cat /proc/self/status | grep CapEff
#84 0.093 CapEff: 0000003fffffffff
Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-07-19 01:01:42 +03:00
Tonis Tiigi
0cd68f6491
dockerfile: do not add linked and cache paths to context sources
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-07-11 17:11:59 -07:00
Tonis Tiigi
aed5e98d92
dockerfile: allow uid/gid in cache mounts
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-05-22 11:20:15 -07:00