Update
This commit is contained in:
parent
03e3a0dfa7
commit
e5776cb698
|
@ -4,8 +4,7 @@
|
||||||
"author": "Dennis Schwerdel",
|
"author": "Dennis Schwerdel",
|
||||||
"description": "file://DESCRIPTION.md",
|
"description": "file://DESCRIPTION.md",
|
||||||
"tagline": "Visual Studio Code in the browser",
|
"tagline": "Visual Studio Code in the browser",
|
||||||
"tags": [
|
"tags": [],
|
||||||
],
|
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"healthCheckPath": "/healthz",
|
"healthCheckPath": "/healthz",
|
||||||
"httpPort": 8080,
|
"httpPort": 8080,
|
||||||
|
@ -18,11 +17,24 @@
|
||||||
"localstorage": {},
|
"localstorage": {},
|
||||||
"proxyAuth": { "path": "!/healthz" }
|
"proxyAuth": { "path": "!/healthz" }
|
||||||
},
|
},
|
||||||
"capabilities": [
|
"capabilities": [],
|
||||||
],
|
"minBoxVersion": "6.0.0",
|
||||||
"minBoxVersion": "1.8.1",
|
"tcpPorts": {
|
||||||
"tcpPorts": {},
|
"TCP_DEV_PORT": {
|
||||||
"udpPorts": {},
|
"title": "Development Port",
|
||||||
|
"description": "TCP Port over which you can reach apps you develop (internal port: 5000)",
|
||||||
|
"defaultValue": 5000,
|
||||||
|
"containerPort": 5000
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"udpPorts": {
|
||||||
|
"UDP_DEV_PORT": {
|
||||||
|
"title": "Development Port",
|
||||||
|
"description": "UDP Port over which you can reach apps you develop (internal port: 5000)",
|
||||||
|
"defaultValue": 5000,
|
||||||
|
"containerPort": 5000
|
||||||
|
}
|
||||||
|
},
|
||||||
"mediaLinks": [
|
"mediaLinks": [
|
||||||
"https://git.ddswd.de/cloudron/vscode-app/raw/branch/master/medialinks/screenshot.jpg"
|
"https://git.ddswd.de/cloudron/vscode-app/raw/branch/master/medialinks/screenshot.jpg"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
### VS Code
|
## VS Code
|
||||||
|
|
||||||
Run VS Code on any machine anywhere and access it in the browser.
|
Run VS Code on any machine anywhere and access it in the browser.
|
||||||
|
|
||||||
|
@ -12,9 +12,13 @@ The app comes with very little adaptations to code-server:
|
||||||
* Generate a randomized password on first start (similar to code-server)
|
* Generate a randomized password on first start (similar to code-server)
|
||||||
* Print passwort to logs on each start
|
* Print passwort to logs on each start
|
||||||
* Use original VS code icon as favicon
|
* Use original VS code icon as favicon
|
||||||
|
* Optional Cloudron SSO integration
|
||||||
|
* Enable sudo
|
||||||
|
* TCP/UDP Development Port
|
||||||
|
* Script to run chroot'ed Alpine Linux
|
||||||
|
|
||||||
|
|
||||||
## Changing the password
|
### Changing the password (only for custom auth)
|
||||||
|
|
||||||
The password is configured in `/app/data/vscode/config/config.yaml`.
|
The password is configured in `/app/data/vscode/config/config.yaml`.
|
||||||
You can change it by modifying the `password` key.
|
You can change it by modifying the `password` key.
|
||||||
|
@ -23,3 +27,12 @@ Also you can set the `hashed-password` key (create it) to the SHA-256 checksum
|
||||||
of a password (This setting takes precedence over `password`).
|
of a password (This setting takes precedence over `password`).
|
||||||
|
|
||||||
After changing the password (either way), the app has to be restarted.
|
After changing the password (either way), the app has to be restarted.
|
||||||
|
|
||||||
|
|
||||||
|
### Installing additional software
|
||||||
|
|
||||||
|
There are two ways to install required additional software:
|
||||||
|
|
||||||
|
1. You can install software into the home folder of the current user. This works for a lot of tools like NodeJS or Rust.
|
||||||
|
|
||||||
|
2. You can download an image of a full OS (e.g. Alpine Linux) and work inside it using chroot. See `chroot-alpine`.
|
||||||
|
|
|
@ -19,5 +19,7 @@ ADD start.sh /app/code/start.sh
|
||||||
ADD favicon /app/code/favicon
|
ADD favicon /app/code/favicon
|
||||||
RUN cp /app/code/favicon/* /usr/lib/code-server/src/browser/media/
|
RUN cp /app/code/favicon/* /usr/lib/code-server/src/browser/media/
|
||||||
|
|
||||||
CMD [ "/app/code/start.sh" ]
|
RUN usermod -aG sudo cloudron
|
||||||
|
Add chroot-alpine /usr/local/bin/chroot-alpine
|
||||||
|
|
||||||
|
CMD [ "/app/code/start.sh" ]
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
# App authentication
|
# App authentication
|
||||||
|
|
||||||
This app uses a custom password and does not integrate with Cloudron authentication
|
This app integrates with Cloudron SSO by default.
|
||||||
as it only provides one environment to all users who know the password.
|
If you choose to opt out of SSO, a custom password is used.
|
||||||
|
|
||||||
The initial password is randomly generated and printed to the logs when the app starts.
|
The initial password is randomly generated and printed to the logs when the app starts.
|
||||||
|
|
||||||
|
Please note that the app provides the same environment to all users.
|
||||||
|
|
||||||
## Changing the password
|
|
||||||
|
## Changing the password (only for custom auth)
|
||||||
|
|
||||||
The password is configured in `/app/data/vscode/config/config.yaml`.
|
The password is configured in `/app/data/vscode/config/config.yaml`.
|
||||||
You can change it by modifying the `password` key.
|
You can change it by modifying the `password` key.
|
||||||
|
|
2
start.sh
2
start.sh
|
@ -23,7 +23,7 @@ if ! [ -f /app/data/vscode/config/config.yaml ]; then
|
||||||
echo "Generated random password: ${PASSWORD}"
|
echo "Generated random password: ${PASSWORD}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${CLOUDRON_PROXY_AUTH:=0}" == "1" ]; then
|
if [ "${CLOUDRON_PROXY_AUTH:-0}" == "1" ]; then
|
||||||
sed -i "s/^auth:.*/auth: none/g" /app/data/vscode/config/config.yaml
|
sed -i "s/^auth:.*/auth: none/g" /app/data/vscode/config/config.yaml
|
||||||
else
|
else
|
||||||
sed -i "s/^auth:.*/auth: password/g" /app/data/vscode/config/config.yaml
|
sed -i "s/^auth:.*/auth: password/g" /app/data/vscode/config/config.yaml
|
||||||
|
|
Loading…
Reference in New Issue