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 Dockerfile module for run/debug/deployment #6

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

kai-tillman
Copy link
Contributor

Description

Adds a new option for creating a simple Dockerfile that enables the usage of code run, code debug, and deployment create based on options entered when running code generate for Go.

Screenshots

Prompt

Screen Shot 2024-06-04 at 11 18 59 AM

Output

Screen Shot 2024-06-04 at 11 20 14 AM

@kai-tillman kai-tillman requested a review from a team June 4, 2024 15:40

FROM base AS builder

WORKDIR cmd/{{{ .ProjectName }}}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you change these lines to {{{ _toDir .ProjectName }}} here like we have in the generator config file? There are a couple premade helper funcs like _toDir to do things like sanitize inputs and give us something suitable for a directory name.

@Alice-Lilith Alice-Lilith merged commit 6941dba into main Jun 4, 2024
1 check passed
@Alice-Lilith Alice-Lilith deleted the kai-tillman/add-dockerfile branch June 4, 2024 16:01
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.

2 participants