Skip to content

docs: Added guide for local exports - #4814

Merged
vikram-dagger merged 6 commits into
dagger:mainfrom
vikram-dagger:4812-local-use-guide
Mar 31, 2023
Merged

vikram-dagger merged 6 commits into
dagger:mainfrom
vikram-dagger:4812-local-use-guide

Conversation

@vikram-dagger

Copy link
Copy Markdown
Contributor

This commit adds a guide for building/using containers locally with Dagger.

Closes #4812

@vikram-dagger vikram-dagger Mar 22, 2023 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@marcosnils expressed some concerns about the DX under this approach. I agree it's not great but at the same time, this is a very common question in Discord (see the parent issue for links to user questions), so it might make sense to document it anyway? Or maybe we can improve it in some way?

Interested to hear thoughts on above from @vito @marcosnils @sipsma @shykes @samalba and it's not a problem for me to delete this section from the guide if that's the route we decide to go.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah, I think the DX here is frankly pretty terrible, but I agree that it's worth documenting just to have the answer out there.

Maybe we can add a warning or something that this isn't necessarily the recommended practice at the moment, owing to the bad DX, and it's just here for completeness?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@marcosnils @sipsma @shykes @samalba: any comments on above?

@shykes shykes Mar 30, 2023 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My concern is not so much with the bad DX, but the fact that it's under a pretty wide and generic title. This makes Dagger look bad, because it makes it look like "building an image for local dev on Dagger" is horribly complicated. When really, "building an image" is actually a good experience in Dagger; and it's specifically "loading an image into a local Docker engine" that's complicated. So my suggestion would be to change the title (and perhaps the intro paragraph) to make it clear that this complicated / bad DX is to solve a very narrow / specific problem (exporting images into a local docker engine). And not necessarily the only way to either "build an image" or "do local development".

Just imagine someone googling "build a docker image with dagger" or "local development with dagger", would you want them to find this article first?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@shykes, thanks for this! Updated per your feedback.

@helderco helderco left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just nitting 😅

Signed-off-by: Vikram Vaswani <[email protected]>

@helderco helderco left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 👍

Vikram Vaswani added 2 commits March 31, 2023 15:55
Signed-off-by: Vikram Vaswani <[email protected]>
Signed-off-by: Vikram Vaswani <[email protected]>
@vikram-dagger vikram-dagger changed the title docs: Added guide for local builds docs: Added guide for local exports Mar 31, 2023
@vikram-dagger
vikram-dagger merged commit b758ad7 into dagger:main Mar 31, 2023
@vikram-dagger
vikram-dagger deleted the 4812-local-use-guide branch April 6, 2023 14:14
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.

Create a guide about building a Docker container for local use with Dagger

4 participants