X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=cmd%2Fbpa-restapi-agent%2FREADME.md;h=27a7a510a67ac46483f7ccf80fc49e2963c10732;hb=refs%2Fchanges%2F12%2F1712%2F1;hp=a74434cd0e62c07488372539c6ea5289aaf45edb;hpb=aaaa10a54a1d7ec0a1c4e3a675113ec9656c0e1a;p=icn.git diff --git a/cmd/bpa-restapi-agent/README.md b/cmd/bpa-restapi-agent/README.md index a74434c..27a7a51 100644 --- a/cmd/bpa-restapi-agent/README.md +++ b/cmd/bpa-restapi-agent/README.md @@ -4,3 +4,31 @@ To run the server, follow these simple steps: ``` go run main.go ``` + +# Cloud Storage with MinIO + +Start MinIO server daemon with docker command before running REST API agent, +default settings in config/config.go. +AccessKeyID: ICN-ACCESSKEYID +SecretAccessKey: ICN-SECRETACCESSKEY +MinIO Port: 9000 + +You can setup MinIO server my the following command with default credentials. +``` +$ docker run -p 9000:9000 --name minio1 \ + -e "MINIO_ACCESS_KEY=ICN-ACCESSKEYID" \ + -e "MINIO_SECRET_KEY=ICN-SECRETACCESSKEY" \ + -v /mnt/data:/data \ + minio/minio server /data +``` +Also there is a Kubernetes deployment for MinIO server in standalone mode. +``` +$ cd deploy/kud-plugin-addons/minio +$ ./install.sh +``` +You can check the status by opening a browser: http://127.0.0.1:9000/ + +MinIO Client implementation integrated in REST API agent and will automatically +initialize in main.go, and create 3 buckets: binary, container, operatingsystem. +The Upload image will "PUT" to corresponding buckets by HTTP PATCH request url. +