Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: Add systemd service and production deployment #545

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

Merged
merged 7 commits into from
Mar 24, 2022
Merged

Conversation

kylecarbs
Copy link
Member

This modifies CI to use a dpkg produced from release to update and
run Coder on a tiny VM in GCP.

It's intentionally kept simple, because customers should
be able to get this same easy install experience.

@kylecarbs kylecarbs requested a review from coadler March 24, 2022 00:51
@kylecarbs kylecarbs self-assigned this Mar 24, 2022
@codecov
Copy link

codecov bot commented Mar 24, 2022

Codecov Report

Merging #545 (04c5b10) into main (99ece25) will decrease coverage by 0.30%.
The diff coverage is 46.90%.

@@            Coverage Diff             @@
##             main     #545      +/-   ##
==========================================
- Coverage   62.69%   62.38%   -0.31%     
==========================================
  Files         194      108      -86     
  Lines       10837     9904     -933     
  Branches       85        0      -85     
==========================================
- Hits         6794     6179     -615     
+ Misses       3302     3016     -286     
+ Partials      741      709      -32     
Flag Coverage Δ
unittest-go- 61.53% <46.90%> (-0.12%) ⬇️
unittest-go-macos-latest 56.74% <37.62%> (-0.75%) ⬇️
unittest-go-ubuntu-latest 60.24% <37.62%> (-0.55%) ⬇️
unittest-go-windows-2022 ?
unittest-js ?
Impacted Files Coverage Δ
cli/cliui/job.go 55.55% <37.50%> (-11.12%) ⬇️
cli/start.go 53.26% <47.31%> (-16.46%) ⬇️
pty/ptytest/ptytest.go 94.82% <0.00%> (-5.18%) ⬇️
cli/projectinit.go 56.36% <0.00%> (-3.64%) ⬇️
provisionerd/provisionerd.go 79.01% <0.00%> (-0.33%) ⬇️
site/src/pages/cli-auth.tsx
site/src/theme/theme.tsx
site/src/components/Table/index.tsx
site/src/test_helpers/entities.ts
... and 88 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 99ece25...04c5b10. Read the comment docs.

@kylecarbs kylecarbs force-pushed the deployment branch 4 times, most recently from b99eb50 to c5530cb Compare March 24, 2022 02:00
@kylecarbs kylecarbs requested a review from a team as a code owner March 24, 2022 02:00
This modifies CI to use a dpkg produced from release to update and
run Coder on a tiny VM in GCP.

It's intentionally kept simple, because customers should
be able to get this same easy install experience.
cli/start.go Outdated
Comment on lines 290 to 294
if os.Getenv("DUMP") != "" {
root.Flags().VisitAll(func(flag *pflag.Flag) {
fmt.Printf("%s %s\n", flag.Name, flag.Usage)
})
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems interesting, is it just a way to debug all of the cobra flags? If it's something we want to keep maybe we can give it a more descriptive env name.

Copy link
Member Author

Choose a reason for hiding this comment

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

This was debug code for some testing stuff. I'm happy you caught it!

Copy link
Contributor

@greyscaled greyscaled left a comment

Choose a reason for hiding this comment

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

Love the e2e simplification!!!!! 🎉

@kylecarbs kylecarbs enabled auto-merge (squash) March 24, 2022 14:59
@kylecarbs kylecarbs merged commit ddd86ab into main Mar 24, 2022
@kylecarbs kylecarbs deleted the deployment branch March 24, 2022 15:07
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.

3 participants