Skip to content

Commit 8f9d962

Browse files
committed
The default installation with some minor adjustments
1 parent 04fcee5 commit 8f9d962

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

software/code-server/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Code-Server
2+
3+
### From the [Code-Server](https://github.com/cdr/code-server) GitHub
4+
5+
Run [VS Code](https://github.com/Microsoft/vscode) on any machine anywhere and access it in the browser.
6+
7+
### Server Ports
8+
9+
Ports required to run the server in a table format.
10+
11+
| Port | default |
12+
| ---- | ------- |
13+
| Game | 8080 |
+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
3+
"meta": {
4+
"version": "PTDL_v1",
5+
"update_url": null
6+
},
7+
"exported_at": "2021-01-06T12:50:49+01:00",
8+
"name": "Code-Server",
9+
"author": "[email protected]",
10+
"description": "Run VS Code on any machine anywhere and access it in the browser.",
11+
"features": null,
12+
"images": [
13+
"quay.io\/parkervcp\/pterodactyl-images:debian_nodejs-14"
14+
],
15+
"startup": "sh .\/.local\/lib\/code-server-3.8.0\/code-server --config cfg.yaml --bind-addr 0.0.0.0:{{SERVER_PORT}}",
16+
"config": {
17+
"files": "{\r\n \"cfg.yaml\": {\r\n \"parser\": \"yaml\",\r\n \"find\": {\r\n \"auth\": \"password\",\r\n \"password\": \"{{server.build.env.PASSWORD}}\"\r\n }\r\n }\r\n}",
18+
"startup": "{\r\n \"done\": \"info HTTP server listening on\"\r\n}",
19+
"logs": "{}",
20+
"stop": "^C"
21+
},
22+
"scripts": {
23+
"installation": {
24+
"script": "apt update\r\napt install curl sudo -y\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nmkdir -p \/mnt\/server\/.local\/lib \/mnt\/server\/.local\/bin\r\ncurl -fL https:\/\/github.com\/cdr\/code-server\/releases\/download\/v3.8.0\/code-server-3.8.0-linux-amd64.tar.gz \\\r\n | tar -C \/mnt\/server\/.local\/lib -xz\r\nmv \/mnt\/server\/.local\/lib\/code-server-3.8.0-linux-amd64 \/mnt\/server\/.local\/lib\/code-server-3.8.0\r\nrm \/mnt\/server\/.local\/bin\/code-server\r\nln -s \/mnt\/server\/.local\/lib\/code-server-3.8.0\/bin\/code-server \/mnt\/server\/.local\/bin\/code-server\r\nPATH=\"\/mnt\/server\/.local\/bin:$PATH\"",
25+
"container": "debian:buster-slim",
26+
"entrypoint": "bash"
27+
}
28+
},
29+
"variables": [
30+
{
31+
"name": "Password",
32+
"description": "Passwort to login to your VSCode instance",
33+
"env_variable": "PASSWORD",
34+
"default_value": "changeme",
35+
"user_viewable": true,
36+
"user_editable": true,
37+
"rules": "required|string|max:32"
38+
}
39+
]
40+
}

0 commit comments

Comments
 (0)