diff --git a/contrib/docker_packer/main.go b/contrib/docker_packer/main.go index 8c40ff99..8ffc8c3c 100644 --- a/contrib/docker_packer/main.go +++ b/contrib/docker_packer/main.go @@ -36,19 +36,16 @@ docker_packer str, err := base64.StdEncoding.WithPadding(base64.StdPadding).DecodeString(meta) if err != nil { log.Fatalf("could decode meta: %s, %v", meta, err) - os.Exit(1) } var tree map[string]string //nolint if err := json.Unmarshal([]byte(str), &tree); err != nil { log.Fatalf("could not unmarshal meta: %s", meta) - os.Exit(1) } workdir := "/tmp/fx" if err := packer.TreeToDir(tree, workdir); err != nil { log.Fatalf("could not restore to dir: %v", err) - os.Exit(1) } defer os.RemoveAll(workdir) @@ -56,17 +53,14 @@ docker_packer dockerClient, err := runtime.CreateClient(ctx) if err != nil { log.Fatalf("could not create a docker client: %v", err) - os.Exit(1) } if err := dockerClient.BuildImage(ctx, workdir, name); err != nil { log.Fatalf("could not build image: %s", err) - os.Exit(1) } nameWithTag := name + ":latest" if err := dockerClient.ImageTag(ctx, name, nameWithTag); err != nil { log.Fatalf("could tag image: %v", err) - os.Exit(1) } var imgInfo dockerTypes.ImageInspect if err := utils.RunWithRetry(func() error {