diff --git a/CHANGELOG b/CHANGELOG index 55629eb..d041d60 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,2 +1,2 @@ [0.1.0] -* First version +* First version packaging version 3.9.3 of code-server diff --git a/CloudronManifest.json b/CloudronManifest.json index 13cf59d..2f3e852 100644 --- a/CloudronManifest.json +++ b/CloudronManifest.json @@ -6,7 +6,7 @@ "tagline": "Visual Studio Code in the browser", "tags": [ ], - "version": "3.9.3", + "version": "0.1.0", "healthCheckPath": "/healthz", "httpPort": 8080, "manifestVersion": 1, @@ -22,6 +22,8 @@ "tcpPorts": {}, "udpPorts": {}, "mediaLinks": [ + "https://git.ddswd.de/cloudron/vscode-app/raw/branch/master/medialinks/screenshot.jpg" ], - "changelog": "file://CHANGELOG" + "changelog": "file://CHANGELOG", + "postInstallMessage": "file://POSTINSTALL.md" } diff --git a/DESCRIPTION.md b/DESCRIPTION.md index 1206058..035aead 100644 --- a/DESCRIPTION.md +++ b/DESCRIPTION.md @@ -1,3 +1,25 @@ ### VS Code Run VS Code on any machine anywhere and access it in the browser. + +This app packages code-server (https://github.com/cdr/code-server), +a Visual Studio Code version that runs directly in the browser. + +The app comes with very little adaptations to code-server: + +* Move all vscode folders to /app/data/vscode +* Listen on 0.0.0.0:8080 +* Generate a randomized password on first start (similar to code-server) +* Print passwort to logs on each start +* Use original VS code icon as favicon + + +## Changing the password + +The password is configured in `/app/data/vscode/config/config.yaml`. +You can change it by modifying the `password` key. + +Also you can set the `hashed-password` key (create it) to the SHA-256 checksum +of a password (This setting takes precedence over `password`). + +After changing the password (either way), the app has to be restarted. diff --git a/Dockerfile b/Dockerfile index 9488564..6f861d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,8 @@ WORKDIR /app/data ENV HOME=/app/data ADD start.sh /app/code/start.sh +ADD favicon /app/code/favicon +RUN cp /app/code/favicon/* /usr/lib/code-server/src/browser/media/ CMD [ "/app/code/start.sh" ] diff --git a/POSTINSTALL.md b/POSTINSTALL.md new file mode 100644 index 0000000..ec512b1 --- /dev/null +++ b/POSTINSTALL.md @@ -0,0 +1,20 @@ +# App authentication + +This app uses a custom password and does not integrate with Cloudron authentication +as it only provides one environment to all users who know the password. + +The initial password is randomly generated and printed to the logs when the app starts. + + +## Changing the password + +The password is configured in `/app/data/vscode/config/config.yaml`. +You can change it by modifying the `password` key. + +Also you can set the `hashed-password` key (create it) to the SHA-256 checksum +of a password (This setting takes precedence over `password`). + +After changing the password (either way), the app has to be restarted. + +Make sure to set a secure password as VS code provides shell access to +everyone who knows the password. diff --git a/README.md b/README.md index c3febbd..a42086b 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,12 @@ This repository contains the Cloudron app package source for VS Code. ## Installation -[![Install](https://cloudron.io/img/button.svg)](https://cloudron.io/button.html?app=com.coder.code-server.cloudronapp) +[![Install](https://cloudron.io/img/button.svg)](https://cloudron.io/button.html?app=com.coder.codeserver.cloudronapp) or using the [Cloudron command line tooling](https://cloudron.io/references/cli.html) ``` -cloudron install --appstore-id com.coder.code-server.cloudronapp +cloudron install --appstore-id com.coder.codeserver.cloudronapp ``` ## Building diff --git a/favicon/favicon-dark-support.svg b/favicon/favicon-dark-support.svg new file mode 100644 index 0000000..adea41a --- /dev/null +++ b/favicon/favicon-dark-support.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/favicon/favicon.ico b/favicon/favicon.ico new file mode 100644 index 0000000..5d98971 Binary files /dev/null and b/favicon/favicon.ico differ diff --git a/favicon/favicon.svg b/favicon/favicon.svg new file mode 100644 index 0000000..adea41a --- /dev/null +++ b/favicon/favicon.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/favicon/pwa-icon-192.png b/favicon/pwa-icon-192.png new file mode 100644 index 0000000..1b17fab Binary files /dev/null and b/favicon/pwa-icon-192.png differ diff --git a/favicon/pwa-icon-512.png b/favicon/pwa-icon-512.png new file mode 100644 index 0000000..01ea47e Binary files /dev/null and b/favicon/pwa-icon-512.png differ diff --git a/favicon/pwa-icon.png b/favicon/pwa-icon.png new file mode 100644 index 0000000..01ea47e Binary files /dev/null and b/favicon/pwa-icon.png differ diff --git a/logo.png b/logo.png index f82fdc5..5cb986f 100644 Binary files a/logo.png and b/logo.png differ diff --git a/medialinks/screenshot.jpg b/medialinks/screenshot.jpg new file mode 100644 index 0000000..5df8a62 Binary files /dev/null and b/medialinks/screenshot.jpg differ