-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ibmcloud be to use local setup rather than k8 kind cluster
Signed-off-by: aavarghese <[email protected]>
- Loading branch information
1 parent
b3f948d
commit 04c5519
Showing
38 changed files
with
374 additions
and
164 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package component | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/spf13/cobra" | ||
"lunchpail.io/cmd/options" | ||
"lunchpail.io/pkg/build" | ||
"lunchpail.io/pkg/runtime" | ||
) | ||
|
||
type RunLocallyOptions struct { | ||
Component string | ||
LLIR string | ||
build.LogOptions | ||
} | ||
|
||
func AddRunLocallyOptions(cmd *cobra.Command) *RunLocallyOptions { | ||
options := RunLocallyOptions{} | ||
cmd.Flags().StringVarP(&options.Component, "component", "", "", "") | ||
cmd.Flags().StringVar(&options.LLIR, "llir", "", "") | ||
cmd.MarkFlagRequired("component") | ||
cmd.MarkFlagRequired("llir") | ||
return &options | ||
} | ||
|
||
func RunLocally() *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: "run-locally", | ||
Short: "Commands for running a component locally", | ||
Long: "Commands for running a component locally", | ||
} | ||
|
||
runOpts := AddRunLocallyOptions(cmd) | ||
options.AddLogOptions(cmd) | ||
|
||
cmd.RunE = func(cmd *cobra.Command, args []string) error { | ||
return runtime.RunLocally(context.Background(), runOpts.Component, runOpts.LLIR, runOpts.LogOptions) | ||
} | ||
|
||
return cmd | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
pyarrow<17 | ||
setuptools | ||
setuptools ; platform_system == 'Darwin' |
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
Oops, something went wrong.