Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Support MinIO for file storage #365
base: main
Are you sure you want to change the base?
Support MinIO for file storage #365
Changes from 1 commit
662d796
6ccd8d8
5627a97
0825028
cb403cd
322201c
a1f132b
0d22ee0
47f41d1
d38b9d2
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Please add comments for these variables.
The format of the comments should be consistent with the others.
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.
Also, we have to set default value.
Note that users should be able to run CodePair with minimal configuration.
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.
@devleejb
Regarding the default values, I think not having them won't cause any issues. As noted in the implementation, if the MINIO_ENDPOINT environment variable is not provided, the MinIO client won't be initialized or used. This ensures that MinIO is only executed when all required variables are properly configured.
For reference, please check the
storage.module.ts
file, where the MinIO client is only created when the necessary endpoint is provided.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.
I understand. However, I want the default upload options to be configured for
MinIO
. Also, I want the CodePair project to run only with the following commands:Therefore, we should set default values (This is just for the local environment. For production, we will provide other guidelines).
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.
@devleejb
sorry, I don't check this comment.
Minio buckets need to be created manually either via the web interface after the server starts or through a shell script.
In that case, how should the initial value for the bucket name be set?
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.
Then, can we create bucket using
entrypoint
indocker-compose
?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.
@devleejb
I checked that it's possible through the entry point, so I updated the implementation in this pull request.