-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: David Viejo <[email protected]>
- Loading branch information
Showing
14 changed files
with
215 additions
and
4,764 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
node_modules | ||
.idea | ||
.vscode | ||
.DS_Store | ||
.DS_Store | ||
dist |
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,18 @@ | ||
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3 | ||
|
||
|
||
RUN \ | ||
microdnf update --nodocs && \ | ||
microdnf install curl ca-certificates shadow-utils --nodocs | ||
|
||
COPY CREDITS /licenses/CREDITS | ||
COPY LICENSE /licenses/LICENSE | ||
LABEL name="HLF Operator UI" \ | ||
vendor="Kung Fu Software <[email protected]>" \ | ||
maintainer="Kung Fu Software <[email protected]>" \ | ||
version="v1.1.0" \ | ||
release="v1.1.0" | ||
|
||
COPY hlf-operator-api /hlf-operator-api | ||
|
||
CMD ["/hlf-operator-api"] |
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,30 +1,24 @@ | ||
package cmd | ||
|
||
import ( | ||
"fmt" | ||
"github.com/kfsoftware/hlf-operator-ui/api/cmd/serve" | ||
"os" | ||
|
||
"github.com/kfsoftware/hlf-operator-ui/api/config" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var rootCmd = &cobra.Command{ | ||
Use: "hlf-operator-api", | ||
Short: "Hugo is a very fast static site generator", | ||
Long: `A Fast and Flexible Static Site Generator built with | ||
func NewRootCMD(conf config.ConfigCMD) *cobra.Command { | ||
var rootCmd = &cobra.Command{ | ||
Use: "hlf-operator-api", | ||
Short: "Hugo is a very fast static site generator", | ||
Long: `A Fast and Flexible Static Site Generator built with | ||
love by spf13 and friends in Go. | ||
Complete documentation is available at http://hugo.spf13.com`, | ||
Run: func(cmd *cobra.Command, args []string) { | ||
// Do Stuff Here | ||
}, | ||
} | ||
|
||
func Execute() { | ||
Run: func(cmd *cobra.Command, args []string) { | ||
// Do Stuff Here | ||
}, | ||
} | ||
rootCmd.AddCommand( | ||
serve.NewServeCommand(), | ||
serve.NewServeCommand(conf), | ||
) | ||
if err := rootCmd.Execute(); err != nil { | ||
fmt.Println(err) | ||
os.Exit(1) | ||
} | ||
return rootCmd | ||
} |
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,7 @@ | ||
package config | ||
|
||
import "embed" | ||
|
||
type ConfigCMD struct { | ||
Views embed.FS | ||
} |
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.