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 devcontainers support to the repository #267

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

Conversation

simonpannek
Copy link

Description

This PR aims to introduce devcontainer support to this repository. With this addition, developers will be able to quickly set up and run a dockerized environment in VSCode, GitHub Codespaces, or any other platform that supports devcontainers.

Test Results

TODO

Changelog

  • Add devcontainers support to the repository.

@simonpannek
Copy link
Author

This PR is mostly based on https://github.com/vandop/dremio-personal-analytics/ with some minor changes. We could think about kicking out Apache superset since most developers are probably not going to need it.

There should also be an easy way to replace the oss dremio container with a self-hosted enterprise version if we're working on an enterprise-only feature.

@simonpannek simonpannek force-pushed the dbt-dremio-dev-containers branch from fdbcaae to 205f53b Compare January 23, 2025 16:19
@simonpannek simonpannek marked this pull request as ready for review January 24, 2025 19:58
- dremio-laptop-lakehouse
volumes:
- dremio_data:/opt/dremio/data:rw
user: "0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we keep this?

Copy link
Contributor

Choose a reason for hiding this comment

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

The user line

Copy link
Author

Choose a reason for hiding this comment

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

I mean, as long as we don't find another workaround for this work in podman, I assume we should leave it in...

Copy link
Contributor

Choose a reason for hiding this comment

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

@simonpannek let's add a comment why are we doing it at least?

99Lys
99Lys previously approved these changes Jan 25, 2025
Copy link
Contributor

@99Lys 99Lys left a comment

Choose a reason for hiding this comment

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

Great PR! I've compared with https://github.com/vandop/dremio-personal-analytics/ and saw the changes you made, they make sense to me

Copy link
Contributor

@howareyouman howareyouman left a comment

Choose a reason for hiding this comment

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

We should hide all the content for devcontainers in some folder, not in the root of the repo. It's the only requirement from my self.

Plus, have you tested it with both docker and podman?

@@ -0,0 +1,105 @@
services:
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we create a folder in the repo and move all the sh and yml files there?
Or in leave them in .devcontainer folder?

Copy link
Author

Choose a reason for hiding this comment

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

The docker-compose and setup files can be used, even if you're not using devcontainers, but I'm fine moving them into a separate folder as well. I think in that cast, I'd leave them in .devcontainer

"workspaceFolder": "/usr/src/app",

"runArgs": [
"--userns=keep-id:uid=1000,gid=1000"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need these arguments and for what service they are?

.devcontainer/devcontainer.json Show resolved Hide resolved
- dremio-laptop-lakehouse
volumes:
- dremio_data:/opt/dremio/data:rw
user: "0"
Copy link
Contributor

Choose a reason for hiding this comment

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

@simonpannek let's add a comment why are we doing it at least?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants