diff options
Diffstat (limited to 'magefiles')
| -rw-r--r-- | magefiles/magefile.go | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/magefiles/magefile.go b/magefiles/magefile.go index 5f5c0ff6..ed649ef2 100644 --- a/magefiles/magefile.go +++ b/magefiles/magefile.go @@ -5,7 +5,6 @@ package main import ( "context" - "os" "path/filepath" "github.com/magefile/mage/mg" @@ -77,19 +76,6 @@ func Nats() error { ) } -// Start CA -func CertificateAuthority() error { - env := map[string]string{ - "STEPPATH": filepath.Join(x.Must(os.Getwd()), "/tmp/step"), - } - return sh.RunWithV( - env, - "step-ca", - "$STEPPATH/config/ca.json", - "--password-file=$STEPPATH/password.txt", - ) -} - // Generate gRPC from protocal buffers func Protos() error { for _, file := range x.Must(filepath.Glob("./protos/*.proto")) { @@ -113,7 +99,7 @@ func Protos() error { // Run All the servers func Servers(ctx context.Context) { - mg.CtxDeps(ctx, CertificateAuthority, Nats, Idp, UI, Api, Authzd, CertificateAuthority, Gateway) + mg.CtxDeps(ctx, Nats, Idp, UI, Api, Authzd, Gateway) } // Run the end to end tests @@ -123,21 +109,3 @@ func Test(ctx context.Context) error { }) return sh.RunV("go", "test", "-shuffle=on", "-v", "./...") } - -func Graphviz() error { - files := []string{ - "doc/share/authz/sns.dot", - } - for _, file := range files { - if err := sh.RunV("dot", "-Tpng", "-O", file); err != nil { - return err - } - } - - return nil -} - -// Generate documentation -func Docs(ctx context.Context) { - mg.CtxDeps(ctx, Graphviz) -} |
