Implement MinIO as cloud storage for RESTAPI agent
[icn.git] / cmd / bpa-restapi-agent / README.md
1 ### Running the server
2 To run the server, follow these simple steps:
3
4 ```
5 go run main.go
6 ```
7
8 # Cloud Storage with MinIO
9
10 Start MinIO server daemon with docker command before running REST API agent,
11 default settings in config/config.go.
12 AccessKeyID: ICN-ACCESSKEYID
13 SecretAccessKey: ICN-SECRETACCESSKEY
14 MinIO Port: 9000
15
16 You can setup MinIO server my the following command with default credentials.
17 ```
18 $ docker run -p 9000:9000 --name minio1 \
19   -e "MINIO_ACCESS_KEY=ICN-ACCESSKEYID" \
20   -e "MINIO_SECRET_KEY=ICN-SECRETACCESSKEY" \
21   -v /mnt/data:/data \
22   minio/minio server /data
23 ```
24 Also there is a Kubernetes deployment for MinIO server in standalone mode.
25 ```
26 $ cd deploy/kud-plugin-addons/minio
27 $ ./install.sh
28 ```
29 You can check the status by opening a browser: http://127.0.0.1:9000/
30
31 MinIO Client implementation integrated in REST API agent and will automatically
32 initialize in main.go, and create 3 buckets: binary, container, operatingsystem.
33 The Upload image will "PUT" to corresponding buckets by HTTP PATCH request url.
34