Allow users to set code-server version (#374)

* Update code-server to latest version

* Add ability to define version by users
This commit is contained in:
Damian Stasik 2021-03-17 23:21:47 +01:00 committed by GitHub
parent 76cf35c938
commit 0a9885932f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -13,7 +13,7 @@ services:
caproverExtra: caproverExtra:
containerHttpPort: '8080' containerHttpPort: '8080'
dockerfileLines: dockerfileLines:
- FROM codercom/code-server:3.8.0 - FROM codercom/code-server:$$cap_coder_version
- '# Similar to the original file, except setting the user to root to prevent permission issues.' - '# Similar to the original file, except setting the user to root to prevent permission issues.'
- USER root - USER root
caproverOneClickApp: caproverOneClickApp:
@ -22,6 +22,11 @@ caproverOneClickApp:
id: $$cap_coder_password id: $$cap_coder_password
label: Password label: Password
validRegex: /^[^"]*$/ validRegex: /^[^"]*$/
- id: $$cap_coder_version
label: Code Server Version
defaultValue: 3.9.1
description: Check out their Docker page for the valid tags https://hub.docker.com/r/codercom/code-server/tags/
validRegex: /^([^\s^\/])+$/
instructions: instructions:
end: >- end: >-
Code server is deployed and is available as $$cap_appname. Code server is deployed and is available as $$cap_appname.