You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
modules/CONTRIBUTING.md

1.0 KiB

Contributing

To create a new module, clone this repository and run:

./new.sh MOUDLE_NAME

Test a module by running an instance of Coder on your local machine:

coder server --in-memory

This will create a new module in the modules directory with the given name and scaffolding. Edit the files, adding your module's implementation, documentation and screenshots.

Testing a Module

Create a template and edit it to include your development module:

[!NOTE] The Docker starter template is recommended for quick-iteration!

module "MOUDLE_NAME" {
    source = "/home/user/coder/modules/MOUDLE_NAME"
}

You can also test your module by specifying the source as a git repository:

module "MOUDLE_NAME" {
    source = "git::https://github.com/<USERNAME>/<REPO>.git//<FOLDER>?ref=<BRANCH>"
}

Build a workspace and your module will be consumed! 🥳

Open a pull-request with your module, a member of the Coder team will manually test it, and after-merge it will appear on the Registry.