-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
wojciech-sei
committed
Aug 19, 2024
1 parent
06e9b4c
commit 539a227
Showing
5 changed files
with
110 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package docker | ||
|
||
import ( | ||
"context" | ||
"os/exec" | ||
|
||
"github.com/outofforest/build" | ||
"github.com/pkg/errors" | ||
) | ||
|
||
// AlpineVersion is the version of the alpine docker image. | ||
const AlpineVersion = "3.20" | ||
|
||
// Label used to tag docker resources created by crust. | ||
const ( | ||
LabelKey = "io.seinetwork.build" | ||
LabelValue = "build" | ||
) | ||
|
||
// EnsureDocker verifies that docker is installed. | ||
func EnsureDocker(_ context.Context, _ build.DepsFunc) error { | ||
if _, err := exec.LookPath("docker"); err != nil { | ||
return errors.Wrap(err, "docker command is not available in PATH") | ||
} | ||
return 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
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