Skip to content


Browse files Browse the repository at this point in the history
fix(stapel-to-buildah): working build of 'from' stage
Run build of stapel image with buildah with the following command:


Signed-off-by: Timofey Kirillov <>
  • Loading branch information
distorhead committed Mar 30, 2022
1 parent 6a023f5 commit 91527db
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkg/container_backend/buildah_backend.go
Expand Up @@ -73,11 +73,15 @@ func (runtime *BuildahBackend) BuildStapelStage(ctx context.Context, baseImage s

// TODO(stapel-to-buildah): use buildah.Change to set labels
fmt.Printf("Setting labels %v for build container %q\n", opts.Labels, containerID)
fmt.Printf("[DEBUG] Setting labels %v for build container %q\n", opts.Labels, containerID)

fmt.Printf("Committing container %q\n", containerID)
fmt.Printf("[DEBUG] Committing container %q\n", containerID)
imgID, err := runtime.buildah.Commit(ctx, containerID, buildah.CommitOpts{})
if err != nil {
return "", fmt.Errorf("unable to commit container %q: %s", containerID, err)

return "", fmt.Errorf("not implemented yet")
return imgID, nil

// GetImageInfo returns nil, nil if image not found.
Expand Down

0 comments on commit 91527db

Please sign in to comment.