Skip to content

Commit

Permalink
Merge branch 'master' into feature/l4t2-label-studio
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriihavrylko authored Feb 11, 2024
2 parents 1fe56f5 + a0e58e7 commit def79bc
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,29 @@ docker run -it -p 8080:8080 -v `pwd`/mydata:/label-studio/data heartexlabs/label

![Alt text](assets/labeling.png)


### Minio setup
Mac/Local
```
brew install minio/stable/minio
minio server --console-address :9001 ~/minio # path to persistent local storage + run on custom port
```

Docker

```
docker run \
-p 9002:9002 \
--name minio \
-v ~/minio:/data \
-e "MINIO_ROOT_USER=ROOTNAME" \
-e "MINIO_ROOT_PASSWORD=CHANGEME123" \
quay.io/minio/minio server /data --console-address ":9002"
```

Kubernetes

```
kubectl create -f deployment/minio.yml
```
38 changes: 38 additions & 0 deletions deployment/minio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: minio-deployment
spec:
selector:
matchLabels:
app: minio
strategy:
type: Recreate
template:
metadata:
labels:
# Label is used as selector in the service.
app: minio
spec:
volumes:
- name: storage
persistentVolumeClaim:
claimName: minio-pv-claim
containers:
- name: minio
image: quay.io/minio/minio:latest
args:
- server
- /storage
env:
# Minio access key and secret key
- name: MINIO_ACCESS_KEY
value: "minio"
- name: MINIO_SECRET_KEY
value: "minio123"
ports:
- containerPort: 9003
hostPort: 9003
volumeMounts:
- name: storage
mountPath: "/storage"

0 comments on commit def79bc

Please sign in to comment.