Skip to content
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

Add MinIO to sail:install Command #128

Merged
merged 3 commits into from
May 14, 2021
Merged

Add MinIO to sail:install Command #128

merged 3 commits into from
May 14, 2021

Conversation

c-fitzmaurice
Copy link
Contributor

This PR add support for MinIO (GitHub) to Sail during the install process. It includes a minio.stub file to be included in the final docker-compse.yml file and updates to the InstallCommand.

MinIO is an S3 compatible object storage service and is a great compliment to the Laravel development experience so you don't have to use dev S3 buckets.

@taylorotwell
Copy link
Member

We would likely need documentation on how to actually use MinIO with Laravel's filesystem layer.

@c-fitzmaurice
Copy link
Contributor Author

@taylorotwell I can take a shot at an accompanying PR to the laravel/docs repo today

if (in_array('minio', $services)) {
$environment .= "\nMINIO_ROOT_USER=sail";
$environment .= "\nMINIO_ROOT_PASSWORD=password\n";
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to inject anything in the environment file at all? Why not just have default values in the docker-compose.yml file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not required, no. I can move the sail/password defaults to the stub file.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@c-fitzmaurice
Copy link
Contributor Author

We would likely need documentation on how to actually use MinIO with Laravel's filesystem layer.

Documentation PR here: laravel/docs#7060

@c-fitzmaurice
Copy link
Contributor Author

c-fitzmaurice commented May 13, 2021

One last thought...

With the MinIO Client, I can add an entry to the stub to auto-create a default bucket as well. This may overcomplicate its maintenance though, it's very simple to create the bucket via the web interface as it is.

@taylorotwell taylorotwell merged commit 2de8237 into laravel:1.x May 14, 2021
oddvalue pushed a commit to oddvalue/sail that referenced this pull request May 26, 2021
* add minio support

* move default values to minio stub

* Update InstallCommand.php

Co-authored-by: Taylor Otwell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants