mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Removing binaries
This commit is contained in:
parent
324c23f12e
commit
9c18624e58
2
Makefile
2
Makefile
@ -8,10 +8,8 @@ build-erasure:
|
|||||||
|
|
||||||
test: build-erasure
|
test: build-erasure
|
||||||
godep go test -race -coverprofile=cover/cover.out github.com/minio-io/minio
|
godep go test -race -coverprofile=cover/cover.out github.com/minio-io/minio
|
||||||
godep go test -race github.com/minio-io/minio/cmd/minio
|
|
||||||
|
|
||||||
install: build-erasure
|
install: build-erasure
|
||||||
godep go install github.com/minio-io/minio/cmd/minio
|
|
||||||
|
|
||||||
save:
|
save:
|
||||||
godep save ./...
|
godep save ./...
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
package main
|
|
||||||
|
|
||||||
import (
|
|
||||||
"github.com/codegangsta/cli"
|
|
||||||
"log"
|
|
||||||
"os"
|
|
||||||
)
|
|
||||||
|
|
||||||
func main() {
|
|
||||||
app := cli.NewApp()
|
|
||||||
app.Commands = []cli.Command{
|
|
||||||
{
|
|
||||||
Name: "put",
|
|
||||||
Usage: "Start a storage node",
|
|
||||||
Action: func(c *cli.Context) {
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Name: "get",
|
|
||||||
Usage: "Start a gateway node",
|
|
||||||
Action: func(c *cli.Context) {
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
err := app.Run(os.Args)
|
|
||||||
if err != nil {
|
|
||||||
log.Fatal("App failed to load", err)
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,44 +0,0 @@
|
|||||||
package main
|
|
||||||
|
|
||||||
import (
|
|
||||||
"github.com/codegangsta/cli"
|
|
||||||
"github.com/gorilla/mux"
|
|
||||||
"github.com/minio-io/minio"
|
|
||||||
"log"
|
|
||||||
"net/http"
|
|
||||||
"os"
|
|
||||||
)
|
|
||||||
|
|
||||||
func main() {
|
|
||||||
app := cli.NewApp()
|
|
||||||
router := mux.NewRouter()
|
|
||||||
runServer := false
|
|
||||||
app.Commands = []cli.Command{
|
|
||||||
{
|
|
||||||
Name: "storage",
|
|
||||||
Usage: "Start a storage node",
|
|
||||||
Action: func(c *cli.Context) {
|
|
||||||
minio.RegisterStorageHandlers(router)
|
|
||||||
runServer = true
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Name: "gateway",
|
|
||||||
Usage: "Start a gateway node",
|
|
||||||
Action: func(c *cli.Context) {
|
|
||||||
minio.RegisterGatewayHandlers(router, minio.GatewayConfig{
|
|
||||||
StorageDriver: minio.InMemoryStorageDriver,
|
|
||||||
BucketDriver: minio.SynchronizedBucketDriver,
|
|
||||||
})
|
|
||||||
runServer = true
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
err := app.Run(os.Args)
|
|
||||||
if err != nil {
|
|
||||||
log.Fatal("App failed to load", err)
|
|
||||||
}
|
|
||||||
if runServer {
|
|
||||||
log.Fatal(http.ListenAndServe(":8080", router))
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user