-
Notifications
You must be signed in to change notification settings - Fork 561
docs: setup minio for local dev #14760
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?
Conversation
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.
LGTM 🚀
There are merge conflicts, so you might need to restack your branch + the typo graphite noticed
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
# 5 Install MinIO | ||
brew install minio/stable/minio | ||
mkdir ./data # create data directory - clean this regularly | ||
minio server ./data # start server | ||
|
||
# Install MinIO client | ||
brew install minio/stable/mc | ||
mc alias set local http://127.0.0.1:9000 minioadmin minioadmin # setup alias to data directory called local | ||
mc mb local/lightdash # create a bucket in local | ||
|
||
# 5 Install dbt using pip |
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.
The step numbering in the documentation has a duplicate - both MinIO and dbt ins
8000
tallation sections are labeled as step 5. To maintain consistent numbering throughout the guide, please update the dbt installation section to # 6 Install dbt using pip
.
# 5 Install MinIO | |
brew install minio/stable/minio | |
mkdir ./data # create data directory - clean this regularly | |
minio server ./data # start server | |
# Install MinIO client | |
brew install minio/stable/mc | |
mc alias set local http://127.0.0.1:9000 minioadmin minioadmin # setup alias to data directory called local | |
mc mb local/lightdash # create a bucket in local | |
# 5 Install dbt using pip | |
# 5 Install MinIO | |
brew install minio/stable/minio | |
mkdir ./data # create data directory - clean this regularly | |
minio server ./data # start server | |
# Install MinIO client | |
brew install minio/stable/mc | |
mc alias set local http://127.0.0.1:9000 minioadmin minioadmin # setup alias to data directory called local | |
mc mb local/lightdash # create a bucket in local | |
# 6 Install dbt using pip | |
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
You can do this by just deleting everything in the bucket: | ||
|
||
```shell | ||
rm ./data/lightdash/* |
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.
Removing files directly from the filesystem with rm ./data/lightdash/*
while MinIO is running can lead to inconsistencies between MinIO's internal state and the actual filesystem. For safer bucket management, consider using the MinIO client instead:
mc rm --recursive --force local/lightdash/
This ensures MinIO properly tracks all deletions and maintains consistency between its metadata and the underlying storage.
rm ./data/lightdash/* | |
mc rm --recursive --force local/lightdash/ |
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
Instructions for running a lightweight minio server locally for development with S3 APIs.
Local resource consumption around 0.1% CPU and 250mb memory. Maybe there's something simpler we can run with even less memory?
This runs minio in "filesystem" mode which doesn't support the full S3 API (e.g. lifecycle policies, so I couldn't auto delete stuff).