cleanup
Some checks failed
particle-os CI / Test particle-os (push) Failing after 1s
particle-os CI / Integration Test (push) Has been skipped
particle-os CI / Security & Quality (push) Failing after 1s
Test particle-os Basic Functionality / test-basic (push) Failing after 1s
particle-os CI / Build and Release (push) Has been skipped
Some checks failed
particle-os CI / Test particle-os (push) Failing after 1s
particle-os CI / Integration Test (push) Has been skipped
particle-os CI / Security & Quality (push) Failing after 1s
Test particle-os Basic Functionality / test-basic (push) Failing after 1s
particle-os CI / Build and Release (push) Has been skipped
This commit is contained in:
parent
d782a8a4fb
commit
126ee1a849
76 changed files with 1683 additions and 470 deletions
|
|
@ -7,7 +7,7 @@ import (
|
|||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"particle-os/bib/internal/particle_os"
|
||||
builder "deb-bootc-image-builder/internal/builder"
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
|
@ -81,7 +81,7 @@ Examples:
|
|||
}
|
||||
|
||||
// Load recipe
|
||||
recipe, err := particle_os.LoadRecipe(recipePath)
|
||||
recipe, err := builder.LoadRecipe(recipePath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to load recipe: %w", err)
|
||||
}
|
||||
|
|
@ -108,13 +108,13 @@ Examples:
|
|||
logLevel = logrus.InfoLevel
|
||||
}
|
||||
|
||||
builder := particle_os.NewBuilder(recipe, workDir, logLevel)
|
||||
imageBuilder := builder.NewBuilder(recipe, workDir, logLevel)
|
||||
|
||||
// Build image
|
||||
if !quiet {
|
||||
fmt.Println("\n🚀 Starting build...")
|
||||
}
|
||||
result, err := builder.Build()
|
||||
result, err := imageBuilder.Build()
|
||||
if err != nil {
|
||||
return fmt.Errorf("build failed: %w", err)
|
||||
}
|
||||
|
|
@ -169,7 +169,7 @@ Examples:
|
|||
|
||||
// Cleanup if requested
|
||||
if clean {
|
||||
if err := builder.Cleanup(); err != nil {
|
||||
if err := imageBuilder.Cleanup(); err != nil {
|
||||
if !quiet {
|
||||
fmt.Printf("⚠️ Warning: cleanup failed: %v\n", err)
|
||||
}
|
||||
|
|
@ -220,7 +220,7 @@ with their basic information.`,
|
|||
}
|
||||
|
||||
recipePath := filepath.Join(recipesDir, entry.Name())
|
||||
recipe, err := particle_os.LoadRecipe(recipePath)
|
||||
recipe, err := builder.LoadRecipe(recipePath)
|
||||
if err != nil {
|
||||
fmt.Printf("❌ %s: Failed to load (%v)\n", entry.Name(), err)
|
||||
continue
|
||||
|
|
@ -268,7 +268,7 @@ This command checks the recipe file for:
|
|||
fmt.Printf("🔍 Validating recipe: %s\n\n", recipePath)
|
||||
|
||||
// Load recipe
|
||||
recipe, err := particle_os.LoadRecipe(recipePath)
|
||||
recipe, err := builder.LoadRecipe(recipePath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("❌ Recipe loading failed: %w", err)
|
||||
}
|
||||
|
|
@ -342,7 +342,7 @@ This command inspects a container image and displays:
|
|||
fmt.Printf("🔍 Inspecting container: %s\n\n", imageRef)
|
||||
|
||||
// Create container processor
|
||||
processor := particle_os.NewContainerProcessor("/tmp/particle-os-container-info", logrus.InfoLevel)
|
||||
processor := builder.NewContainerProcessor("/tmp/particle-os-container-info", logrus.InfoLevel)
|
||||
|
||||
// Check availability
|
||||
if !processor.IsAvailable() {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
module github.com/particle-os/debian-bootc-image-builder/bib
|
||||
module deb-bootc-image-builder
|
||||
|
||||
go 1.23.9
|
||||
|
||||
|
|
|
|||
BIN
bib/particle-os
Executable file
BIN
bib/particle-os
Executable file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue