-
Notifications
You must be signed in to change notification settings - Fork 79
Changes to add support for the minio #831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,7 @@ | |
| "name": "weld_defect_classification", | ||
| "source": "gstreamer", | ||
| "queue_maxsize": 50, | ||
| "pipeline": "rtspsrc location=\"rtsp://mediamtx:8554/live.stream\" latency=100 name=source ! rtph264depay ! h264parse ! decodebin ! videoconvert ! gvaclassify inference-region=full-frame name=classification ! gvametaconvert add-empty-results=true name=metaconvert ! queue ! gvafpscounter ! appsink name=destination", | ||
| "pipeline": "rtspsrc location=\"rtsp://mediamtx:8554/live.stream\" latency=100 name=source ! rtph264depay ! h264parse ! decodebin ! videoconvert ! gvaclassify inference-region=full-frame name=classification ! gvametaconvert add-empty-results=true name=metaconvert ! queue ! gvafpscounter ! jpegenc ! appsink name=destination", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you check if this |
||
| "parameters": { | ||
| "type": "object", | ||
| "properties": { | ||
|
|
@@ -35,8 +35,13 @@ | |
| "device": "CPU" | ||
| } | ||
| } | ||
| }, | ||
| "S3_write": { | ||
| "bucket": "multimodeldemo", | ||
| "folder_prefix": "camera1", | ||
| "block": "false" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,15 @@ | ||||||||||||||||||||||||||||||||
| import boto3 | ||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you please add the Apache license header like in other files? |
||||||||||||||||||||||||||||||||
| url = "http://$HOST_IP:8000" | ||||||||||||||||||||||||||||||||
| user = "minioaccesskey added in .env" | ||||||||||||||||||||||||||||||||
| password = "miniosecretkey added in .env" | ||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's have these passed as param OR via env like os.getenv("..", None). |
||||||||||||||||||||||||||||||||
| bucket_name = "multimodeldemo" | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
|
Comment on lines
+2
to
+6
|
||||||||||||||||||||||||||||||||
| url = "http://$HOST_IP:8000" | |
| user = "minioaccesskey added in .env" | |
| password = "miniosecretkey added in .env" | |
| bucket_name = "multimodeldemo" | |
| import os | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| host_ip = os.environ.get("HOST_IP") | |
| user = os.environ.get("MINIO_ACCESS_KEY") | |
| password = os.environ.get("MINIO_SECRET_KEY") | |
| bucket_name = "multimodeldemo" | |
| url = f"http://{host_ip}:8000" |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -372,6 +372,30 @@ services: | |||||
| # Selective mount can be done for deployment as mounting whole /dev is not recommended | ||||||
| - "/dev:/dev" | ||||||
|
|
||||||
| mraas_minio: | ||||||
| image: minio/minio:RELEASE.2020-12-12T08-39-07Z | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is very old image, can you try with the latest minio version?
|
||||||
| image: minio/minio:RELEASE.2020-12-12T08-39-07Z | |
| image: minio/minio:RELEASE.2024-06-06T18-24-32Z |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty MinIO credentials pose a security risk. These should be populated with secure values or have default secure values provided.