8000 docs: setup minio for local dev by owlas · Pull Request #14760 · lightdash/lightdash · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

owlas
Copy link
Collaborator
@owlas owlas commented May 9, 2025

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).

@owlas owlas requested a deployment to 05-09-docs_setup_minio_for_local_dev - jaffle_db_pg_13 PR #14760 May 9, 2025 20:00 — with Render Abandoned
@owlas owlas deployed to 05-09-docs_setup_minio_for_local_dev - headless-browser PR #14760 May 9, 2025 20:00 — with Render Active
Copy link
Collaborator Author
owlas commented May 9, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Contributor
@almeidabbm almeidabbm left a 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

@owlas owlas deployed to 05-09-docs_setup_minio_for_local_dev - headless-browser PR #14760 May 13, 2025 17:09 — with Render Active
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
@owlas owlas deployed to 05-09-docs_setup_minio_for_local_dev - headless-browser PR #14760 May 15, 2025 08:57 — with Render Active
Comment on lines +324 to 334
# 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
Copy link
Contributor

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.

Suggested change
# 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/*
Copy link
Contributor

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.

Suggested change
rm ./data/lightdash/*
mc rm --recursive --force local/lightdash/

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.

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.

3 participants
0