-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for other operating systems
Signed-off-by: Nathanael DEMACON <ndemacon@scaleway.com>
- Loading branch information
1 parent
68b4ce9
commit a84a952
Showing
14 changed files
with
70 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//go:build aix || dragonfly || freebsd || netbsd || openbsd || solaris || zos | ||
// +build aix dragonfly freebsd netbsd openbsd solaris zos | ||
|
||
package kaniko | ||
|
||
import ( | ||
v1 "github.com/google/go-containerregistry/pkg/v1" | ||
|
||
"github.com/buildpacks/lifecycle/internal/extend" | ||
"github.com/buildpacks/lifecycle/log" | ||
) | ||
|
||
func (a *DockerfileApplier) Apply(dockerfile extend.Dockerfile, toBaseImage v1.Image, withBuildOptions extend.Options, logger log.Logger) (v1.Image, error) { | ||
return nil, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
//go:build freebsd | ||
// +build freebsd | ||
|
||
package fsutil_test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/buildpacks/lifecycle/internal/fsutil" | ||
h "github.com/buildpacks/lifecycle/testhelpers" | ||
|
||
"github.com/sclevine/spec" | ||
"github.com/sclevine/spec/report" | ||
) | ||
|
||
func TestDetectorUnix(t *testing.T) { | ||
spec.Run(t, "DetectorUnix", testDetectorUnix, spec.Report(report.Terminal{})) | ||
} | ||
|
||
func testDetectorUnix(t *testing.T, when spec.G, it spec.S) { | ||
when("we should have a file", func() { | ||
it("returns true correctly", func() { | ||
h.AssertEq(t, (&fsutil.Detect{}).HasSystemdFile(), true) | ||
}) | ||
it("returns the file contents", func() { | ||
s, err := (&fsutil.Detect{}).ReadSystemdFile() | ||
h.AssertNil(t, err) | ||
h.AssertStringContains(t, s, "NAME") | ||
}) | ||
}) | ||
} |
4 changes: 2 additions & 2 deletions
4
...rnal/fsutil/os_detection_notlinux_test.go → internal/fsutil/os_detection_others_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters