Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4e76327

Browse files
committedApr 30, 2024·
Don't expand RUN heredocs ourselves, let the shell do it
When handling RUN instructions that use heredoc syntax, don't bother interpolating environment variables and argument values, and let the command that's running handle it. Signed-off-by: Nalin Dahyabhai <[email protected]>
1 parent 5e46f9c commit 4e76327

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+707
-340
lines changed
 

‎docker/types.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ type HealthConfig struct {
6060
Test []string `json:",omitempty"`
6161

6262
// Zero means to inherit. Durations are expressed as integer nanoseconds.
63-
Interval time.Duration `json:",omitempty"` // Interval is the time to wait between checks.
64-
Timeout time.Duration `json:",omitempty"` // Timeout is the time to wait before considering the check to have hung.
65-
StartPeriod time.Duration `json:",omitempty"` // Time to wait after the container starts before running the first check.
63+
Interval time.Duration `json:",omitempty"` // Interval is the time to wait between checks.
64+
Timeout time.Duration `json:",omitempty"` // Timeout is the time to wait before considering the check to have hung.
65+
StartPeriod time.Duration `json:",omitempty"` // Time to wait after the container starts before running the first check.
66+
StartInterval time.Duration `json:",omitempty"` // Time to wait between checks during the StartPeriod.
6667

6768
// Retries is the number of consecutive failures needed to consider a container as unhealthy.
6869
// Zero means inherit.

‎go.mod

+12-8
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ require (
2727
github.com/containers/storage v1.53.1-0.20240411065836-1fd0dc1d20e5
2828
github.com/cyphar/filepath-securejoin v0.2.4
2929
github.com/docker/distribution v2.8.3+incompatible
30-
github.com/docker/docker v25.0.5+incompatible
30+
github.com/docker/docker v26.1.0+incompatible
3131
github.com/docker/go-units v0.5.0
32-
github.com/fsouza/go-dockerclient v1.10.1
32+
github.com/fsouza/go-dockerclient v1.11.0
3333
github.com/hashicorp/go-multierror v1.1.1
3434
github.com/mattn/go-shellwords v1.0.12
3535
github.com/moby/buildkit v0.12.5
@@ -41,7 +41,7 @@ require (
4141
github.com/opencontainers/runtime-spec v1.2.0
4242
github.com/opencontainers/runtime-tools v0.9.1-0.20230914150019-408c51e934dc
4343
github.com/opencontainers/selinux v1.11.0
44-
github.com/openshift/imagebuilder v1.2.6
44+
github.com/openshift/imagebuilder v1.2.9
4545
github.com/seccomp/libseccomp-golang v0.10.0
4646
github.com/sirupsen/logrus v1.9.3
4747
github.com/spf13/cobra v1.8.0
@@ -79,12 +79,13 @@ require (
7979
github.com/containers/libtrust v0.0.0-20230121012942-c1716e8a8d01 // indirect
8080
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
8181
github.com/cyberphone/json-canonicalization v0.0.0-20231217050601-ba74d44ecf5f // indirect
82-
github.com/davecgh/go-spew v1.1.1 // indirect
82+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
8383
github.com/disiqueira/gotree/v3 v3.0.2 // indirect
8484
github.com/distribution/reference v0.5.0 // indirect
8585
github.com/docker/docker-credential-helpers v0.8.1 // indirect
8686
github.com/docker/go-connections v0.5.0 // indirect
8787
github.com/felixge/httpsnoop v1.0.4 // indirect
88+
github.com/frankban/quicktest v1.14.4 // indirect
8889
github.com/fsnotify/fsnotify v1.7.0 // indirect
8990
github.com/go-jose/go-jose/v3 v3.0.3 // indirect
9091
github.com/go-logr/logr v1.4.1 // indirect
@@ -103,11 +104,11 @@ require (
103104
github.com/godbus/dbus/v5 v5.1.0 // indirect
104105
github.com/gogo/protobuf v1.3.2 // indirect
105106
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
106-
github.com/golang/protobuf v1.5.3 // indirect
107+
github.com/golang/protobuf v1.5.4 // indirect
107108
github.com/google/go-cmp v0.6.0 // indirect
108109
github.com/google/go-containerregistry v0.19.0 // indirect
109110
github.com/google/go-intervals v0.0.2 // indirect
110-
github.com/google/pprof v0.0.0-20230323073829-e72429f035bd // indirect
111+
github.com/google/pprof v0.0.0-20230406165453-00490a63f317 // indirect
111112
github.com/google/uuid v1.6.0 // indirect
112113
github.com/gorilla/mux v1.8.1 // indirect
113114
github.com/hashicorp/errwrap v1.1.0 // indirect
@@ -125,6 +126,7 @@ require (
125126
github.com/miekg/pkcs11 v1.1.1 // indirect
126127
github.com/mistifyio/go-zfs/v3 v3.0.1 // indirect
127128
github.com/mitchellh/mapstructure v1.5.0 // indirect
129+
github.com/moby/docker-image-spec v1.3.1 // indirect
128130
github.com/moby/patternmatcher v0.6.0 // indirect
129131
github.com/moby/sys/mountinfo v0.7.1 // indirect
130132
github.com/moby/sys/sequential v0.5.0 // indirect
@@ -136,7 +138,7 @@ require (
136138
github.com/oklog/ulid v1.3.1 // indirect
137139
github.com/ostreedev/ostree-go v0.0.0-20210805093236-719684c64e4f // indirect
138140
github.com/pkg/errors v0.9.1 // indirect
139-
github.com/pmezard/go-difflib v1.0.0 // indirect
141+
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
140142
github.com/proglottis/gpgme v0.1.3 // indirect
141143
github.com/rivo/uniseg v0.4.4 // indirect
142144
github.com/secure-systems-lab/go-securesystemslib v0.8.0 // indirect
@@ -155,13 +157,15 @@ require (
155157
go.mongodb.org/mongo-driver v1.14.0 // indirect
156158
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352 // indirect
157159
go.opencensus.io v0.24.0 // indirect
158-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.45.0 // indirect
160+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1 // indirect
159161
go.opentelemetry.io/otel v1.22.0 // indirect
160162
go.opentelemetry.io/otel/metric v1.22.0 // indirect
163+
go.opentelemetry.io/otel/sdk v1.21.0 // indirect
161164
go.opentelemetry.io/otel/trace v1.22.0 // indirect
162165
golang.org/x/mod v0.16.0 // indirect
163166
golang.org/x/net v0.23.0 // indirect
164167
golang.org/x/text v0.14.0 // indirect
168+
golang.org/x/time v0.5.0 // indirect
165169
golang.org/x/tools v0.19.0 // indirect
166170
google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 // indirect
167171
google.golang.org/grpc v1.62.0 // indirect

0 commit comments

Comments
 (0)
Please sign in to comment.