Skip to content

Conversation

mtojek
Copy link
Member

@mtojek mtojek commented Aug 13, 2025

Description

This PR brings RStudio Server module. Since full RStudio distribution is hard to install in a consistent, stable way (lib versions, deps, etc.), this module bases on Docker distribution - Rocker.

Type of Change

  • New module
  • Bug fix
  • Feature/enhancement
  • Documentation
  • Other

Module Information

Path: registry/coder/modules/rstudio
New version: v0.9.0
Breaking change: [ ] Yes [ ] No

Testing & Validation

module "rstudio-server" {
  count    = data.coder_workspace.me.start_count
  source   = "git::https://github.com/coder/registry.git//registry/coder/modules/rstudio-server?ref=rstudio-module"

  agent_id = coder_agent.main.id
  docker_socket = var.docker_socket

  #disable_auth = false
  project_path = "/home/coder"
  enable_renv = true
}
  • Tests pass (bun test)
  • Code formatted (bun run fmt)
  • Changes tested locally

@mtojek mtojek self-assigned this Aug 13, 2025
@mtojek mtojek marked this pull request as ready for review August 13, 2025 15:06
@mtojek mtojek requested review from matifali and removed request for Copilot August 13, 2025 15:06
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new RStudio Server module for Coder that deploys RStudio Server using the Rocker Project Docker distribution. The module provides a consistent and stable way to run RStudio Server in Coder workspaces, handling authentication, project mounting, and R environment management with renv support.

  • Adds Docker-based RStudio Server deployment with configurable authentication and project paths
  • Implements renv cache volume for dependency persistence and automatic environment restoration
  • Provides comprehensive Terraform configuration with variables for customization and Coder app integration

Reviewed Changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 5 comments.

File Description
registry/coder/modules/rstudio-server/main.tf Terraform configuration defining variables, script execution, and Coder app setup
registry/coder/modules/rstudio-server/run.sh Shell script that manages Docker operations, container lifecycle, and renv restoration
registry/coder/modules/rstudio-server/README.md Documentation with module description and basic usage example

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@mtojek
Copy link
Member Author

mtojek commented Sep 1, 2025

Hi @DevelopmentCats @matifali! Could you take a look at this PR whenever you've free cycles?

matifali
matifali previously approved these changes Sep 1, 2025
Copy link
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few suggestions but look good to me.

@mtojek mtojek requested a review from matifali September 1, 2025 11:54
matifali
matifali previously approved these changes Sep 1, 2025
@mtojek mtojek merged commit 9452763 into main Sep 1, 2025
4 checks passed
@mtojek mtojek deleted the rstudio-module branch September 1, 2025 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants