Commit Graph

153 Commits

Author SHA1 Message Date
Mathias Fredriksson a1212014df
chore(examples): Add `login_before_ready` and `startup_script_timeout` (#5880) 2023-01-27 21:01:48 +00:00
Mathias Fredriksson 496beae807
Revert "feat(dogfood): install nix package manager (#5308)" (#5871) 2023-01-26 15:41:59 +00:00
Geoffrey Huntley bfc8a1094b
feat(dogfood): install nix package manager (#5308)
Co-authored-by: Dean Sheather <dean@deansheather.com>
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
Co-authored-by: Kyle Carberry <kyle@carberry.com>
2023-01-26 16:39:30 +02:00
Mathias Fredriksson 8afdf24d10
chore: Update sqlc to v1.16.0 (#5788)
* chore: Update sqlc to v1.16.0

* chore: Fix cases where types became Null-types

* chore: Set parameter_schemas default_destination_scheme and default_source_scheme to NOT NULL

* chore: Add enum validation to database fake

* chore: Fix all tests that skipping enum values

* fix: Use correct err in providionerdserver audit log failure log
2023-01-23 13:14:47 +02:00
Mathias Fredriksson f0df0686f9
chore(dogfood): Avoid calling ~/personalize unless executable (#5793) 2023-01-19 19:02:15 +00:00
Dean Sheather 985fac642e
chore: combine dogfood regions, use tailscale (#5741) 2023-01-17 14:20:48 +00:00
Mathias Fredriksson f3bbf627a3
chore: Update gotestsum to v1.9.0 and remove debugging (#5726)
* chore: Update gotestsum to v1.9.0 and remove debugging

* chore: Update cloud.google.gpg to fix dogfood build
2023-01-16 17:58:57 +02:00
Ammar Bandukwala 8db87c6bae
feat(dogfood): run personalize script (#5723) 2023-01-15 18:20:12 -06:00
Mathias Fredriksson 856f0ab6f5
chore: Improve project-wide prettier formatting and ignored files (#5505)
* chore: Improve project-wide prettier formatting and ignored files

* chore: `Run make fmt/prettier`

* Fix gitignore for `.vscode` folder so that ! works

* Add comment in `.prettierrc.yaml` to explain `.editorconfig`

* Remove scripts/apidocgen/markdown-template/README.md

* Use `yq` for processing prettierrc, update lib.sh dependency check

* Add `yq` to Dockerfile and Nix
2023-01-03 15:11:13 +02:00
Joe Previte a19c6fc988
fix: update coder dotfiles in dogfood (#5451)
I wasn't calling the environment variable I set.
2022-12-16 12:08:13 -07:00
Joe Previte 5a568d8a9b
refactor: conditionally use dotfiles in dogfood template (#5332)
* feat: add dotfiles_uri var to dogfood template

* refactor: use dotfiles if dotfiles var exists

This ensures the `coder dotfiles` command only runs if the dotfiles var
in the template is not empty.

* Update dogfood/main.tf

* refactor: assign variable to shell variable

* Update dogfood/main.tf

* fixup!: add default value
2022-12-13 21:15:25 +00:00
sharkymark 8df02f42c0
docs: make it clear the CLI must be downloaded to use templates (#5373) 2022-12-13 19:31:09 +00:00
Joe Previte 66ec98f647
fix: pin code-server to 4.8.3 (#5363)
* fix: pin code-server to 4.8.3

We're having some terminal issues on macOS clients (i.e. iPad) with 4.9.0 so downgrading to 4.8.3 in the meantime.

* Update dogfood/main.tf
2022-12-09 17:07:27 +00:00
Marcin Tojek 935d2eb582
fix: fmt should check for unstaged files (#5362) 2022-12-09 12:00:39 +01:00
Kyle Carberry 3d95c9256d
chore: Add DatoCMS token to dogfood template (#5254)
* chore: Add DatoCMS token to dogfood template

This is used for developing coder.com!
2022-12-07 15:59:32 -06:00
Joe Previte 9e4d213c2d
feat: add lazygit, remove kubic, use dotfiles in dogfood image (#5271) 2022-12-06 20:11:44 +10:00
Mathias Fredriksson ed7de90a55
fix: Use immutable names for volumes in example templates (#4954)
* fix: Use immutable names for volumes in example templates

This contributes towards #3000, #3386

Related #3409

* Add lifecycle and labels
2022-11-09 16:18:19 +02:00
Mathias Fredriksson b2a16d46c6
chore: Unify Docker terraform templates (#4952)
Changes to terraform templates:

* Remove DNS (this can interfere with users running their own DNS
  servers)
* Remove `lower()` restriction from hostnames so that it will show the
  name set by the user, as-is (there is no restriction on upper case
  letters in hostnames)
* Remove superfluous `trap` in entrypoints, this is already handled by
  the init script
* Switch from `command` to `entrypoint` as the latter can support more
  Docker images out-of-the-box
2022-11-08 18:52:19 +02:00
Dean Sheather 10df2fd4fb
feat: add new required slug property to coder_app, use in URLs (#4573) 2022-10-28 17:41:31 +00:00
Shyim 820306a32c
set correct case for env (#4713) 2022-10-26 12:09:05 -05:00
Kyle Carberry 6449443c1f
dogfood: remove gitconfig to allow cloning with HTTPS (#4739)
This reflects a more natural environment that our customers might have,
and enables us to use the new git authentication!
2022-10-25 02:37:20 +00:00
Ammar Bandukwala a0249bea61
docs: better explain persistent resources (#4703) 2022-10-24 19:59:27 +00:00
Ammar Bandukwala 63602bf568
dogfood: upgrade postgres to version 13 (#4657)
* Fix container updating
2022-10-20 03:06:57 +00:00
Ammar Bandukwala ea156cce2e
dogfood: upgrade postgres (#4642) 2022-10-19 19:33:26 +00:00
Dean Sheather d898737d6d
feat: app sharing (now open source!) (#4378) 2022-10-15 02:46:38 +10:00
Mathias Fredriksson 93b8121c9b
fix: Change use of 1337 to 13337 in example templates (#4386) 2022-10-06 13:25:18 +00:00
Dean Sheather 2a66395fb7
feat: use app wildcards for apps if configured (#4263)
* feat: use app wildcards for apps if configured

* feat: relative_path -> subdomain

- rename relative_path -> subdomain when referring to apps
    - migrate workspace_apps.relative_path to workspace_apps.subdomain
- upgrade coder/coder terraform module to 0.5.0
2022-10-05 19:23:01 +00:00
Ben Potter 21e6bea792
docs: add health checks to docs & examples (#4223) 2022-09-27 12:58:39 -05:00
Garrett Delfosse 4c8be34d81
feat: add health check monitoring to workspace apps (#4114) 2022-09-23 15:51:04 -04:00
Ben Potter 9e099b543f
chore: revert open in coder docs for now (#4154)
* chore: revert open in coder docs for now

* remove in dogfood
2022-09-22 18:02:11 +00:00
Joe Previte 764600003b
feat: add open in coder docs, fix missing templates (#4124)
* docs: add open in coder

This adds new documentation for the "Open in Coder" button that admins
can use to get their developers up and running faster.

* fix: display error if template not found

Previously, we weren't handling a case where we tried to get a template
that returned a 404 from the backend.

Now we handle that case in our state machine and display the error
message from the API on the frontend.

* feat: support template query param in index

This adds support to navigate directly to a template from the index by
using the `?template=<name>` query  param.

* Revert "feat: support template query param in index"

This reverts commit bad7ffb677.

We decided to use the `/template/path` route instead.

* fixup!: docs: add open in coder

* docs: add open in coder to dogfood readme

* Update docs/admin/open-in-coder.md

Co-authored-by: Ben Potter <ben@coder.com>

* Update docs/admin/open-in-coder.md

Co-authored-by: Ben Potter <ben@coder.com>

* Update docs/admin/open-in-coder.md

Co-authored-by: Ben Potter <ben@coder.com>
2022-09-22 08:48:03 -07:00
Garrett Delfosse 7fe7ffea6d
chore: make fmt (#4121) 2022-09-19 20:22:46 +00:00
Ben Potter 332056af29
dogfood: remove folder from code-server (#3944) 2022-09-07 17:37:30 -05:00
Ammar Bandukwala 38825b9ab4
dogfood: keep image locally (#3878)
Avoid delete conflicts
2022-09-05 19:23:52 +00:00
Ammar Bandukwala 1a5d3eace4
dogfood: dynamically pull image (#3864)
Previously, the template would never pull new image updates.
2022-09-04 21:06:36 +00:00
Ammar Bandukwala 0a7fad674a
dogfood: remove github apt source (#3860) 2022-09-03 20:44:40 -05:00
Ammar Bandukwala 1b3e75c3ab
add watchexec to dogfood image (#3858)
* add watchexec to dogfood image

This comes in handy quite frequently.

* Fix dogfood image
2022-09-03 18:38:13 -05:00
Ammar Bandukwala 30f8fd9b95
Daily Active User Metrics (#3735)
* agent: add StatsReporter

* Stabilize protoc
2022-09-01 14:58:23 -05:00
Dean Sheather 8a446837d4
chore: remove exa -> ls and bat -> cat replacements from dogfood img (#3695) 2022-08-26 04:03:27 +10:00
Kyle Carberry b0fe9bcdd1
chore: Upgrade to Go 1.19 (#3617)
This is required as part of #3505.
2022-08-21 22:32:53 +00:00
Joe Previte e938e8577f
fix: add missing && \ in Dockerfile (#3594)
* fix: add missing && \ in Dockerfile

* fixup: add goboring after PATH goboring
2022-08-19 15:41:17 +00:00
Joe Previte c417115eb1
feat: add cmake, nfpm to dogfood dockerfile (#3558)
* feat: add cmake, nfpm to dogfood dockerfile

* fixup: formatting

* Update dogfood/Dockerfile

Co-authored-by: Cian Johnston <cian@coder.com>

Co-authored-by: Cian Johnston <cian@coder.com>
2022-08-19 15:10:56 +00:00
Cian Johnston 53d1fb36db
update-alternatives to ensure gofmt is goboring gofmt (#3540) 2022-08-17 20:03:44 +00:00
Jon Ayers 923c212960
chore: add zstd to dogfood image (#3479) 2022-08-11 17:48:49 -05:00
Jon Ayers 426b30ed16
fix: add missing dependencies to dogfood image (#3470) 2022-08-11 01:24:56 +00:00
Ammar Bandukwala fd59e2e812
add metadata to dogfood template (#3444) 2022-08-09 23:40:12 +00:00
Ammar Bandukwala 8a4438895b
Add fish to dogfood (#3373) 2022-08-03 18:21:34 +00:00
Ammar Bandukwala 8f338782db
Make minor improvements to Dogfood README (#3361) 2022-08-02 21:14:12 +00:00
Ammar Bandukwala 81e292be44
Add dogfood image (#3350) 2022-08-02 20:20:54 +00:00
Cian Johnston 2c0d57e8c0
fix: update reference to agent.dev in examples and docs (#3198)
* fix: update agent ID in example templates
* fix: update agent ID in dogfood template
* chore: update default agent ID in documentation
* fix: develop.sh: start FE after template is created; leave template dir around if template creation fails
2022-07-26 14:09:09 +01:00
Ammar Bandukwala f28d14197a
Rename default agent to "main" instead of "dev" (#3150)
Resolves #3143
2022-07-23 20:26:56 +00:00
Joe Previte 2dd98c7ec8
docs: add dogfooding guide (#3099) 2022-07-22 18:22:11 +00:00
Ammar Bandukwala a2f6b25110
Add new Dogfood template (#2959)
* Setup base template

* Add sysbox

* Run code-server in background

* Fix small typo
2022-07-18 22:44:09 +00:00