-
Notifications
You must be signed in to change notification settings - Fork 72
Add ray dashboard module #424
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
Open
michaelvp411
wants to merge
6
commits into
coder:main
Choose a base branch
from
michaelvp411:add-ray-dashboard-module
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+151
−0
Open
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
18ecf90
Add Ray Dashboard module
e404bfe
Add Ray Dashboard module
3dea7a0
Updated README
3459b95
Updated readme again and metadata
062ee7a
Rename REAMDME.md to README.md
michaelvp411 7a75291
Merge branch 'main' into add-ray-dashboard-module
michaelvp411 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Ray Coder Module | ||
michaelvp411 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
This Coder module provides easy integration of Ray.io distributed computing framework into your Coder workspaces. It automatically sets up Ray with a dashboard interface and creates a dedicated Python virtual environment. | ||
|
||
## Features | ||
|
||
- 🚀 **Ray Dashboard**: Web-based interface for monitoring Ray clusters | ||
- 🐍 **Python Virtual Environment**: Isolated environment with Ray and dependencies | ||
- 📊 **Jupyter Integration**: Optional Jupyter kernel with Ray support | ||
- ⚙️ **Customizable**: Configurable Ray extras, packages, and settings | ||
- 🔧 **Auto-setup**: Automatic Ray installation and dashboard startup | ||
|
||
## Usage | ||
|
||
### Basic Usage | ||
|
||
```hcl | ||
module "ray" { | ||
source = "registry.coder.com/modules/ray/coder" | ||
michaelvp411 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
version = "1.0.0" | ||
agent_id = coder_agent.main.id | ||
} | ||
|
||
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
resource "coder_app" "ray-dashboard" { | ||
agent_id = var.agent_id | ||
slug = var.slug | ||
display_name = var.display_name | ||
icon = var.icon | ||
url = "http://localhost:${var.port}" | ||
subdomain = var.subdomain | ||
share = var.share | ||
|
||
healthcheck { | ||
url = "http://localhost:${var.port}" | ||
interval = var.healthcheck_interval | ||
threshold = var.healthcheck_threshold | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"display_name": "Ray.io", | ||
"description": "Adds Ray distributed computing framework with dashboard integration to Coder workspaces", | ||
"icon_url": "https://raw.githubusercontent.com/ray-project/ray/master/doc/source/images/ray_logo.png", | ||
"maintainer": { | ||
"name": "Ray Coder Module Contributors", | ||
"email": "", | ||
"url": "" | ||
}, | ||
"tags": [ | ||
"ray", | ||
"distributed-computing", | ||
"machine-learning", | ||
"python", | ||
"jupyter", | ||
"dashboard" | ||
], | ||
"readme_url": "README.md", | ||
"url": "", | ||
"verified": false | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
display_name: "Ray Dashboard" | ||
description: "Ray Dashboard integration for Coder workspaces" | ||
michaelvp411 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
icon_url: "https://raw.githubusercontent.com/ray-project/ray/master/doc/source/images/ray_logo.png" | ||
maintainers: | ||
- github: "michaelvp411" | ||
name: "Michael Vincent Patterson" | ||
tags: | ||
- "ray" | ||
- "dashboard" | ||
- "distributed-computing" | ||
verified: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
output "ray_dashboard_url" { | ||
description = "The URL for accessing the Ray Dashboard" | ||
value = coder_app.ray-dashboard.url | ||
} | ||
|
||
output "ray_dashboard_app_id" { | ||
description = "The ID of the Ray Dashboard app resource" | ||
value = coder_app.ray-dashboard.id | ||
} | ||
|
||
output "ray_port" { | ||
description = "The port number used by Ray Dashboard" | ||
value = var.port | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
variable "agent_id" { | ||
description = "The ID of the Coder agent to install Ray on" | ||
type = string | ||
} | ||
|
||
variable "slug" { | ||
description = "The slug for the Ray Dashboard app" | ||
type = string | ||
default = "ray-dashboard" | ||
} | ||
|
||
variable "display_name" { | ||
description = "The display name for the Ray Dashboard app" | ||
type = string | ||
default = "Ray Dashboard" | ||
} | ||
|
||
variable "icon" { | ||
description = "The icon URL for the Ray Dashboard app" | ||
type = string | ||
default = "https://raw.githubusercontent.com/ray-project/ray/master/doc/source/images/ray_logo.png" | ||
} | ||
|
||
variable "port" { | ||
description = "The port number for the Ray Dashboard" | ||
type = number | ||
default = 8265 | ||
} | ||
|
||
variable "subdomain" { | ||
description = "Whether to use a subdomain for the Ray Dashboard" | ||
type = bool | ||
default = true | ||
} | ||
|
||
variable "share" { | ||
description = "The sharing level for the Ray Dashboard app" | ||
type = string | ||
default = "owner" | ||
} | ||
|
||
variable "healthcheck_interval" { | ||
description = "Health check interval in seconds" | ||
type = number | ||
default = 5 | ||
} | ||
|
||
variable "healthcheck_threshold" { | ||
description = "Health check threshold" | ||
type = number | ||
default = 10 | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
terraform { | ||
required_version = ">= 1.0" | ||
|
||
required_providers { | ||
coder = { | ||
source = "coder/coder" | ||
version = ">= 0.21.0" | ||
} | ||
} | ||
} | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
versions: | ||
- ref: "v1.0.0" | ||
published_at: "2025-09-18" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should add these to the git-ignore so they dont get commit on accident.