dockerimg: explain docker image builds
Helps explain to new users what exactly is happening.
Hints to them about custom images.
Co-Authored-By: sketch <hello@sketch.dev>
Change-ID: s62e7d150498ad2dfk
diff --git a/dockerimg/dockerimg.go b/dockerimg/dockerimg.go
index 94ba815..abf3421 100644
--- a/dockerimg/dockerimg.go
+++ b/dockerimg/dockerimg.go
@@ -765,7 +765,18 @@
}
}
- // Build the layered image
+ // Explain a bit what's happening, to help orient and de-FUD new users.
+ fmt.Println()
+ fmt.Println("┌──────────────────────────────────────────────────┐")
+ fmt.Println("│ Building Docker image (one-time) │")
+ fmt.Println("│ │")
+ fmt.Println("│ • Built and run locally │")
+ fmt.Println("│ • Packages your git repo into isolated container │")
+ fmt.Println("│ • Custom images: https://sketch.dev/docs/docker │")
+ fmt.Println("│ • Rebuild: sketch -rebuild │")
+ fmt.Println("└──────────────────────────────────────────────────┘")
+ fmt.Println()
+
if err := buildLayeredImage(ctx, imgName, baseImage, gitRoot, verbose); err != nil {
return "", fmt.Errorf("failed to build layered image: %w", err)
}