add java and php templates
This commit is contained in:
1 parent
50396e6c5b
commit
4ab9a392d6
3 files changed
+102
-282
No files matched your search
@@ -0,0 +1,45 @@
|
||||
data "coder_parameter" "php_version" {
|
||||
name = "PHP Version"
|
||||
description = "Select the PHP version for your workspace."
|
||||
type = "string"
|
||||
default = "82"
|
||||
|
||||
option {
|
||||
name = "PHP 8.2"
|
||||
value = "82"
|
||||
}
|
||||
}
|
||||
|
||||
module "php_workspace" {
|
||||
source = "../../coder-base"
|
||||
|
||||
language = "PHP"
|
||||
docker_image = "registry.bobert.me/anthorob/coder-images:php${data.coder_parameter.java_version.value}"
|
||||
|
||||
language_metadata = [
|
||||
{
|
||||
display_name = "PHP Version"
|
||||
key = "php_version"
|
||||
script = "php -v | head -n 1"
|
||||
interval = 60
|
||||
timeout = 1
|
||||
}
|
||||
]
|
||||
|
||||
language_startup_script = <<-EOT
|
||||
echo $(php -v)
|
||||
EOT
|
||||
|
||||
vscode_extensions = [
|
||||
"bmewburn.vscode-intelephense-client",
|
||||
"felixfbecker.php-debug",
|
||||
"mehedidracula.php-namespace-resolver"
|
||||
]
|
||||
|
||||
vscode_settings = {
|
||||
"php.validate.executablePath" = "/usr/bin/php"
|
||||
}
|
||||
|
||||
jetbrains_ides = ["PS"]
|
||||
jetbrains_default = "PS"
|
||||
}
|
||||
Reference in new issue
Block a user