From 0a5094c73a8dfeab0f59f8a593fdf7f3ed5a603b Mon Sep 17 00:00:00 2001 From: frankw Date: Tue, 26 Jan 2016 10:42:21 +0100 Subject: [PATCH 1/2] Added Alias argument in configuring/using mc client for minio server Both in README.md as well as sample commands when starting minio server --- README.md | 6 +++--- server-main.go | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index b5d436feb..60404daad 100644 --- a/README.md +++ b/README.md @@ -112,9 +112,9 @@ To configure Minio Client. $ wget https://dl.minio.io/client/mc/release/linux-amd64/mc $ chmod 755 mc - $ ./mc config host add http://localhost:9000 G5GJRH51R2HSUWYPGIX5 uxhBC1Yscut3/u81l5L8Yp636ZUk32N4m/gFASuZ - $ ./mc mb localhost:9000/photobucket - $ ./mc cp --recursive ~/Photos localhost:9000/photobucket + $ ./mc config host add myminio http://localhost:9000 G5GJRH51R2HSUWYPGIX5 uxhBC1Yscut3/u81l5L8Yp636ZUk32N4m/gFASuZ + $ ./mc mb myminio/photobucket + $ ./mc cp --recursive ~/Photos myminio/photobucket Starting minio server: Listening on http://127.0.0.1:9000 diff --git a/server-main.go b/server-main.go index 716cc181f..9def24fcb 100644 --- a/server-main.go +++ b/server-main.go @@ -312,15 +312,15 @@ func initServer() (*configV2, *probe.Error) { Println("\nTo configure Minio Client.") if runtime.GOOS == "windows" { Println("\n\tDownload https://dl.minio.io/client/mc/release/" + runtime.GOOS + "-" + runtime.GOARCH + "/mc.exe") - Println("\t$ mc.exe config host add http://localhost:9000 " + conf.Credentials.AccessKeyID + " " + conf.Credentials.SecretAccessKey) - Println("\t$ mc.exe mb localhost:9000/photobucket") - Println("\t$ mc.exe cp --recursive C:\\Photos localhost:9000/photobucket") + Println("\t$ mc.exe config host add myminio http://localhost:9000 " + conf.Credentials.AccessKeyID + " " + conf.Credentials.SecretAccessKey) + Println("\t$ mc.exe mb myminio/photobucket") + Println("\t$ mc.exe cp --recursive C:\\Photos myminio/photobucket") } else { Println("\n\t$ wget https://dl.minio.io/client/mc/release/" + runtime.GOOS + "-" + runtime.GOARCH + "/mc") Println("\t$ chmod 755 mc") - Println("\t$ ./mc config host add http://localhost:9000 " + conf.Credentials.AccessKeyID + " " + conf.Credentials.SecretAccessKey) - Println("\t$ ./mc mb localhost:9000/photobucket") - Println("\t$ ./mc cp --recursive ~/Photos localhost:9000/photobucket") + Println("\t$ ./mc config host add myminio http://localhost:9000 " + conf.Credentials.AccessKeyID + " " + conf.Credentials.SecretAccessKey) + Println("\t$ ./mc mb myminio/photobucket") + Println("\t$ ./mc cp --recursive ~/Photos myminio/photobucket") } Println() return conf, nil From 9a0cd354a3c86c8cae6bbf8a1f6950761e9d6142 Mon Sep 17 00:00:00 2001 From: frankw Date: Tue, 26 Jan 2016 22:55:12 +0100 Subject: [PATCH 2/2] Updated 'aws s3 ls' example in README.md to include s3:// (which is apparently needed for other aws s3 commands such as cp or rm) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 60404daad..895759713 100644 --- a/README.md +++ b/README.md @@ -151,7 +151,7 @@ $ aws --endpoint-url http://localhost:9000 s3 ls To list contents inside bucket. ``` -$ aws --endpoint-url http://localhost:9000 s3 ls testbucket +$ aws --endpoint-url http://localhost:9000 s3 ls s3://testbucket PRE test/ 2015-12-17 08:46:41 12232928 vim 2016-01-07 16:38:23 32232928 emacs