Skip to content

Commit e062365

Browse files
authored
Merge pull request containerd#4162 from ktock/buildg-v0.5
Bump up buildg to v0.5.2 and extend startup timeout
2 parents b8b59a9 + 5aaad80 commit e062365

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ARG CONTAINERD_FUSE_OVERLAYFS_VERSION=v2.1.2@BINARY
3838
# Extra deps: Init
3939
ARG TINI_VERSION=v0.19.0@BINARY
4040
# Extra deps: Debug
41-
ARG BUILDG_VERSION=v0.4.1@BINARY
41+
ARG BUILDG_VERSION=v0.5.2@BINARY
4242

4343
# Test deps
4444
# Currently, the Docker Official Images and the test deps are not pinned by the hash

Dockerfile.d/SHA256SUMS.d/buildg-v0.4.1

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
70371949ac56d118e55306091640e63537069a538a97c151eb7475c07cb5a8a4 buildg-v0.5.2-linux-amd64.tar.gz
2+
9c44a5f8ecc3035998a07e1c564338205700cf5287c723e8ccba1da2815168cc buildg-v0.5.2-linux-arm64.tar.gz

cmd/nerdctl/builder/builder.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"os"
2222
"os/exec"
2323
"strings"
24+
"time"
2425

2526
"github.com/docker/go-units"
2627
"github.com/spf13/cobra"
@@ -146,6 +147,7 @@ func debugCommand() *cobra.Command {
146147
cmd.Flags().String("image", "", "Image to use for debugging stage")
147148
cmd.Flags().StringArray("ssh", nil, "Allow forwarding SSH agent to the build. Format: default|<id>[=<socket>|<key>[,<key>]]")
148149
cmd.Flags().StringArray("secret", nil, "Expose secret value to the build. Format: id=secretname,src=filepath")
150+
helpers.AddDurationFlag(cmd, "buildg-startup-timeout", nil, 1*time.Minute, "", "Timeout for starting up buildg")
149151
return cmd
150152
}
151153

@@ -167,6 +169,12 @@ func debugAction(cmd *cobra.Command, args []string) error {
167169
buildgArgs = append([]string{"--debug"}, buildgArgs...)
168170
}
169171

172+
startupTimeout, err := cmd.Flags().GetDuration("buildg-startup-timeout")
173+
if err != nil {
174+
return err
175+
}
176+
buildgArgs = append(buildgArgs, "--startup-timeout="+startupTimeout.String())
177+
170178
if file, err := cmd.Flags().GetString("file"); err != nil {
171179
return err
172180
} else if file != "" {

0 commit comments

Comments
 (0)