Repository navigation
docs: Add replace dockerfile with Go guide - #4173
Conversation
There was a problem hiding this comment.
Copyright/legal question here. Is it OK to copy the source Dockerfile into our tutorial? I've not done it right now out of caution, instead linking to the source commit ID (which is fine except that the user needs an extra click to see it).
There was a problem hiding this comment.
Update: I think it's better to link to it, so I'll leave this as is unless there are strong feelings that it should change (eg. to make the tutorial easier to follow)
3fb5f93 to
5fb25ba
Compare
This commit adds a guide that explains how to replace a Dockerfile with a Dagger pipeline written in Go. It uses the Dockerfile for the memcached open-source project. Signed-off-by: Vikram Vaswani <[email protected]>
5fb25ba to
ce47bb4
Compare
kpenfound
left a comment
There was a problem hiding this comment.
Content looks good! How do you feel about the 3 functions in the snippet? Do you feel that it makes the code easier to follow? The goal was to make the main function's logical steps easy to read with the details pulled away a bit
The functions do make it clearer. I personally found the division of code between main() and other functions a bit inconsistent ie. I wondered why we didn't also have setEnvVars() and setEntrypoint() custom functions (or include those steps in the existing functions). Maybe that could be an improvement for future? |
jpadams
left a comment
There was a problem hiding this comment.
Looks good! We should def publish this and get feedback. Do we have a way to easily collect that from guides @vikram-dagger via a link/form/issue-template??
I know some users have asked for more real world guides, so this is great!
This commit adds a guide that explains how to replace a Dockerfile with a Dagger pipeline written in Go. It uses
the Dockerfile for the memcached open-source project.
Closes #3426
Signed-off-by: Vikram Vaswani [email protected]