-
Notifications
You must be signed in to change notification settings - Fork 562
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?
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 | ||||
---|---|---|---|---|---|---|
|
@@ -292,6 +292,7 @@ To setup Development Environment without Docker you need following pre-requisite | |||||
- pnpm | ||||||
- postgres >= 12 | ||||||
- dbt 1.4.x or 1.5.x | ||||||
- MinIO | ||||||
|
||||||
eg. on MacOS you can follow this instructions: | ||||||
|
||||||
|
@@ -320,6 +321,16 @@ brew services start postgresql@14 | |||||
# export PG_CONFIG=/opt/homebrew/opt/postgresql@14/bin/pg_config | ||||||
git clone --branch v0.8.0 https://github.com/pgvector/pgvector.git && cd pgvector && make && sudo make install && cd .. | ||||||
|
||||||
# 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 | ||||||
# Detailed installation guide available here: https://docs.getdbt.com/docs/core/pip-install | ||||||
# Create python virtual env | ||||||
|
@@ -369,6 +380,19 @@ Password: demo_password! | |||||
|
||||||
> ⚠️ you can add env variables to your system and ignore running `pnpm load:env` before each command | ||||||
|
||||||
#### Clearing disk space | ||||||
|
||||||
Lightdash writes results + exports to your machine if you're using MinIO. Make sure to clear the ./data | ||||||
directory frequently. | ||||||
|
||||||
You can do this by just deleting everything in the bucket: | ||||||
|
||||||
```shell | ||||||
8821 | rm ./data/lightdash/* | |||||
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. Removing files directly from the filesystem with mc rm --recursive --force local/lightdash/ This ensures MinIO properly tracks all deletions and maintains consistency between its metadata and the underlying storage.
Suggested change
Spotted by Diamond |
||||||
``` | ||||||
|
||||||
|
||||||
|
||||||
#### How to run unit tests | ||||||
|
||||||
```shell | ||||||
|
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 installation 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
.Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.