Skip to content

Commit 63d4942

Browse files
committed
chore: Update MATLAB version to r2024a
1 parent 094b6a5 commit 63d4942

File tree

2 files changed

+40
-19
lines changed

2 files changed

+40
-19
lines changed

matlab/.terraform.lock.hcl

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

matlab/main.tf

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ module "filebrowser" {
8383
source = "registry.coder.com/modules/filebrowser/coder"
8484
version = "1.0.8"
8585
agent_id = coder_agent.main.id
86+
folder = "/home/matlab/Documents/MATLAB"
8687
}
8788

88-
# Matlab
8989
resource "coder_app" "matlab_browser" {
9090
agent_id = coder_agent.main.id
9191
display_name = "Matlab Browser"
@@ -161,8 +161,29 @@ resource "coder_agent" "main" {
161161
}
162162
}
163163

164+
data "coder_parameter" "matlab_version" {
165+
name = "matlab_version"
166+
display_name = "MATLAB Version"
167+
icon = "/icon/matlab.svg"
168+
description = "Choose MATLAB Version"
169+
default = "r2023a"
170+
type = "string"
171+
mutable = false
172+
order = 1
173+
option {
174+
name = "r2023a"
175+
description = "r2023a"
176+
value = "r2023a"
177+
}
178+
option {
179+
name = "r2024a"
180+
description = "r2024a"
181+
value = "r2024a"
182+
}
183+
}
184+
164185
resource "docker_image" "matlab" {
165-
name = "matifali/matlab:r2023a"
186+
name = "matifali/matlab:${data.coder_parameter.matlab_version.value}"
166187
keep_locally = true
167188
}
168189

@@ -223,4 +244,4 @@ resource "coder_metadata" "workspace" {
223244
key = "Server Name"
224245
value = data.coder_parameter.server.option[index(data.coder_parameter.server.option.*.value, data.coder_parameter.server.value)].description
225246
}
226-
}
247+
}

0 commit comments

Comments
 (0)