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

Do not generate dockerfile on shell command #54

Merged
merged 3 commits into from
Sep 2, 2022

Conversation

LucilleH
Copy link
Collaborator

@LucilleH LucilleH commented Sep 2, 2022

Summary

Do not generate dockerfile on shell command, as someone who is using the shell command may not need to use language detector, or need to fill in install, build and start command if the language planner is absent.

How was it tested?

devbox shell
devbox generate
devbox build

generate.go Outdated
@@ -18,9 +18,12 @@ import (
//go:embed tmpl/* tmpl/.*
var tmplFS embed.FS

func generate(rootPath string, plan *planner.Plan) error {
func generate(rootPath string, plan *planner.Plan, includeBuildFiles bool) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't love the bool.

How about this:
you change generate to take a string array.

you add generateNix (which calls generate with .gitignore, shell.nix, default.nix)

you add 'generateDockerfile(which callsgeneratewith.gitignore, Dockerfile`)

@LucilleH LucilleH requested a review from loreto September 2, 2022 17:39
Copy link
Contributor

@loreto loreto left a comment

Choose a reason for hiding this comment

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

LGTM

@LucilleH LucilleH merged commit 8470053 into main Sep 2, 2022
@LucilleH LucilleH deleted the lucille--shell-no-docker branch September 2, 2022 18:45
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.

None yet

3 participants