mirror of
https://github.com/coder/coder.git
synced 2026-09-22 13:10:21 +08:00
5782879f2fea4a16e99ed2c925687f50fc83bce2
Resolves: #444 Summary: This commit installs and configures a GH action for chromatic. Chromatic is used for snapshot testing build-over-build. Details: * chore: install chromatic * chore: add chromatic package.json script Suggested by the docs for convenience so that we can run chromatic like: ```console yarn run chromatic ... ``` * chore: gitignore storybook builds * ci: configure chromatic This action configures chromatic to run in CI on pushes to all branches. By running this in CI, we get the following: - snapshot (build-over-build) - checks in our CI The snapshots and build-over-build behavior are per branch; this way we can work on a feature branch without worrying about changes being made to mainline independently. * chore: remove manual storybook build from CI This is now the responsibility of Chromatic
Coder
Provision remote development environments with Terraform.
Highlights
- Automate development environments for Linux, Windows, and MacOS in your cloud
- Start writing code with a single command
- Use one of many examples to get started
Getting Started
Install the latest release.
To tinker, start with dev-mode (all data is in-memory, and is destroyed on exit):
$ coder start --dev
To run a production deployment with PostgreSQL:
$ CODER_PG_CONNECTION_URL="postgres://<username>@<host>/<database>?password=<password>" \
coder start
To run as a system service, install with .deb or .rpm:
# Edit the configuration!
$ sudo vim /etc/coder.d/coder.env
$ sudo service coder restart
Your First Workspace
In a new terminal, create a new project (eg. Develop in Linux on Google Cloud):
$ coder projects init
$ coder projects create
Create a new workspace and SSH in:
$ coder workspaces create my-first-workspace
$ coder ssh my-first-workspace
Working with Projects
You can edit the Terraform from a sample project:
$ coder projects init
$ cd gcp-linux/
$ vim main.tf
$ coder projects update gcp-linux
Contributing
Read the contributing docs.
Languages
Go
74.9%
TypeScript
23.1%
Shell
0.8%
HCL
0.3%
PLpgSQL
0.3%
Other
0.4%