From 1b5b2e8c8a450f5a74bccc42bcea4ac051f1ccb0 Mon Sep 17 00:00:00 2001 From: Tim Krampitz Date: Fri, 5 Apr 2024 13:15:44 +0200 Subject: [PATCH] [APP] Code-server: Add sudo-password (#2936) * Added optional sudo password for code-server * Fixed description.md with current screenshots * Added SUDO_PASSWORD to docker-compose * Fixed form_field type * Fixed image links * Bumped tipi version to 26 --- apps/code-server/config.json | 10 +++++++++- apps/code-server/docker-compose.yml | 1 + apps/code-server/metadata/description.md | 3 ++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/apps/code-server/config.json b/apps/code-server/config.json index 05637bc9..df1b778d 100644 --- a/apps/code-server/config.json +++ b/apps/code-server/config.json @@ -5,7 +5,7 @@ "exposable": true, "port": 8138, "id": "code-server", - "tipi_version": 25, + "tipi_version": 26, "version": "4.22.1", "categories": [ "development" @@ -22,6 +22,14 @@ "min": 3, "required": true, "env_variable": "CODESERVER_PASSWORD" + }, + { + "type": "password", + "label": "Sudo Password", + "max": 50, + "min": 3, + "required": false, + "env_variable": "CODESERVER_SUDO_PASSWORD" } ], "supported_architectures": [ diff --git a/apps/code-server/docker-compose.yml b/apps/code-server/docker-compose.yml index bcde0435..9a1de71a 100644 --- a/apps/code-server/docker-compose.yml +++ b/apps/code-server/docker-compose.yml @@ -8,6 +8,7 @@ services: - PGID=1000 - TZ=${TZ} - PASSWORD=${CODESERVER_PASSWORD} + - SUDO_PASSWORD=${CODESERVER_SUDO_PASSWORD} - DEFAULT_WORKSPACE=/config/workspace #optional volumes: - ${APP_DATA_DIR}/data/config:/config #config dir diff --git a/apps/code-server/metadata/description.md b/apps/code-server/metadata/description.md index abe472d8..d91ca065 100644 --- a/apps/code-server/metadata/description.md +++ b/apps/code-server/metadata/description.md @@ -4,4 +4,5 @@ - Use cloud servers to speed up tests, compilations, downloads, and more - Preserve battery life when you're on the go; all intensive tasks run on your server -![screenshot](https://raw.githubusercontent.com/coder/code-server/main/docs/assets/screenshot.png) \ No newline at end of file +![Screenshot](https://raw.githubusercontent.com/coder/code-server/main/docs/assets/screenshot-1.png) +![Screenshot](https://raw.githubusercontent.com/coder/code-server/main/docs/assets/screenshot-2.png)