`--variable` is used frequently enough to deserve a shorthand. Unfortunately,
`-v` is taken by verbose, and `-V` is too easily confused with version or
verbose, so we're left with "--var".
* start
* start a template
* basic structure
* Update docs/templates/devcontainers.md
Co-authored-by: Sebastiaan ten Pas <sebastiaan@diggimedia.nl>
* Update examples/templates/devcontainer-docker/main.tf
Co-authored-by: Muhammad Atif Ali <atif@coder.com>
* add kubernetes template
* mention parameters
* fixups
* fixes from feedback
---------
Co-authored-by: Sebastiaan ten Pas <sebastiaan@diggimedia.nl>
Co-authored-by: Muhammad Atif Ali <atif@coder.com>
* Move updatecheck logs to debug mode
This was causing logs to be emitted immediately after
initial setup, which seemed odd for the user.
* Fix setup page text to say "Create" instead of "Setup" account
* Improve copy on the empty workspaces page
- This view can be seen after the user creates their first workspace, so saying first is bad.
- It should describe what a workspace is, so I modified the description.
- The create from template button wasn't helpful!
* Improve the copy for the empty templates view
- This didn't describe what a template actually is.
- The title had the same problem as workspaces, where first makes no sense.
* Improve text consistency on the Create Template page
* Fix "View activity" displaying for non-Enterprise users
This was causing an exception to be thrown.
* Improve messaging of empty groups view
* Appropriately capitalize Workspace and Template
* Improve Docker template taglines
* Fix types
This PR makes the following changes:
- Adds an --id parameter to coder templates init so that you can non-interactively initialize a specific example template by ID (e.g. folder name)
- Updates develop.sh and lima/coder.yaml to use this parameter to select the docker example template.
* add `display_name`
* fix typos and `terraform validate`
* update display_name
* Update examples/templates/aws-windows/main.tf
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/templates/aws-linux/main.tf
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/templates/azure-linux/main.tf
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/templates/azure-linux/main.tf
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/templates/do-linux/main.tf
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/templates/do-linux/main.tf
Co-authored-by: Ben Potter <me@bpmct.net>
* Update main.tf
* Update main.tf
* Update main.tf
* Update main.tf
* Update main.tf
---------
Co-authored-by: Ben Potter <me@bpmct.net>
* add fly.io example
* fix: `fly_volume` does not allow using - in name.
fix: `fly_volume` does not allow using - in the name.
* fix: provider versions and settings
* fix: valid `fly_app` name
* chore: ipv6 is not used
* fix: names
strangely `fly_volume` does not allow `-` and `fly_app` does not allow `_`.
* chore: update max RAM
* add fly-auth-api managed variables
* Update README.md
* improve setup flow
- user is not prompted in UI for default values
- org slug is best fetched via CLI
* add metadata
* add to starter templates
---------
Co-authored-by: Ben <me@bpmct.net>
* docs: apache reverse proxy
* fixed to correctly pass WebSocket headers
* add a sample configuration file
* updating with suggestions
* Update coder.conf
* fix http to https redirection
* fix: upgrade http to https
* Update examples/web-server/apache/README.md
Co-authored-by: Ben Potter <me@bpmct.net>
* add other dns providers documentation link
---------
Co-authored-by: Ben Potter <me@bpmct.net>
Co-authored-by: Ben Potter <ben@coder.com>
* docs: Add nginx reverse-proxy example
This PR adds nginx reverse-proxy example to provision coder with tls certificate using letsencrypt certbot.
This will partially resolve#6086.
* change nginx example to to absolute path
* Update examples/web-server/nginx/README.md
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/web-server/nginx/README.md
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/web-server/nginx/README.md
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/web-server/nginx/README.md
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/web-server/nginx/README.md
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/web-server/nginx/README.md
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/web-server/nginx/README.md
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/web-server/nginx/README.md
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/web-server/nginx/README.md
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/web-server/nginx/README.md
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/web-server/nginx/README.md
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/web-server/nginx/README.md
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/web-server/nginx/README.md
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/web-server/nginx/README.md
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/web-server/nginx/README.md
Co-authored-by: Ben Potter <me@bpmct.net>
* refactor: replaced bullets with numbered lists
* remove the ambiguous ip addr.
* fixed a typo
* correctly handle the wildcard subdomain
* simplified after testing
* fmt: prettier formatting
* Adapt to the coder style guide
* fix: agent disconnection
* Update examples/web-server/nginx/README.md
Co-authored-by: Ben Potter <me@bpmct.net>
* Update docs/admin/configure.md
Co-authored-by: Ben Potter <me@bpmct.net>
* Update examples/web-server/nginx/README.md
Co-authored-by: Ben Potter <me@bpmct.net>
* updated with suggested changes
* updated with requested changes
* add reference to certbot docs for other dns providers
---------
Co-authored-by: Ben Potter <me@bpmct.net>
Updates templates examples and docs to pass the --method standalone argument
to code-server install script, and installs code-server under /tmp/code-server.
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
---------
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
This is part of a multi-step cleanup for the example templates.
The goal is to have a lot of templates here, and only embed
specific ones we feel are impactful during setup.
#5586 added the capability for install.sh to download and install Terraform automatically.
Using this now in the example Lima specification.
Also no longer hard-coding the instance name in favour of {{.Instance.Name}} in the output
that gets emitted upon successful instance provisioning.
* chore: lima: update ubuntu image version
* fix: lima: make docker socket usable by Lima user without sudo
* fix: lima: set access URL to host.lima.internal
* apply suggestion from PR
* 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
The base ubuntu image lands the user as root, but the terraform tempalte
expected /home/coder to be used. This change adds a user with the same
name as the Coder users username and allows them to sudo.
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
* 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
Download terraform binary directly instead of using Hashicorp APT
repo.
Workaround for https://github.com/hashicorp/terraform/issues/31826
Signed-off-by: Cian Johnston <cian@coder.com>
Co-authored-by: Ben Potter <ben@coder.com>