{ "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL", "meta": { "version": "PLCN_v1", "update_url": "https:\/\/raw.githubusercontent.com\/pelican-eggs\/software\/refs\/heads\/main\/code-server\/egg-code--server.json" }, "exported_at": "2025-02-16T10:37:18+00:00", "name": "Code-Server", "author": "mario.franze@gmail.com", "uuid": "45f8a4a1-92e4-47cd-ab78-e7f0fe7e7dee", "description": "Run VS Code on any machine anywhere and access it in the browser.", "features": [], "docker_images": { "Java 11": "ghcr.io\/parkervcp\/yolks:java_11", "Java 17": "ghcr.io\/parkervcp\/yolks:java_17", "Java 21": "ghcr.io\/parkervcp\/yolks:java_21", ".net 6": "ghcr.io\/parkervcp\/yolks:dotnet_6", ".net 7": "ghcr.io\/parkervcp\/yolks:dotnet_7", ".net 8": "ghcr.io\/parkervcp\/yolks:dotnet_8", "Mono": "ghcr.io\/parkervcp\/yolks:mono_latest", "Erlang 26": "ghcr.io\/parkervcp\/yolks:erlang_26", "Python 3.11": "ghcr.io\/parkervcp\/yolks:python_3.11", "Python 3.12": "ghcr.io\/parkervcp\/yolks:python_3.12", "Python 3.13": "ghcr.io\/parkervcp\/yolks:python_3.13", "Bun": "ghcr.io\/parkervcp\/yolks:bun_latest", "Dart": "ghcr.io\/parkervcp\/yolks:dart_stable", "Go 1.23": "ghcr.io\/parkervcp\/yolks:go_1.23", "Nodejs 22": "ghcr.io\/parkervcp\/yolks:nodejs_22", "Nodejs 23": "ghcr.io\/parkervcp\/yolks:nodejs_23", "Elixir": "ghcr.io\/parkervcp\/yolks:elixir_latest", "Rust": "ghcr.io\/parkervcp\/yolks:rust_latest" }, "file_denylist": [], "startup": "sh .local\/lib\/code-server-{{VERSION}}\/bin\/code-server", "config": { "files": "{\r\n \".config\/code-server\/config.yaml\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"password\": \"password: {{server.environment.PASSWORD}}\",\r\n \"bind-addr\": \"bind-addr: 0.0.0.0:{{server.allocations.default.port}}\"\r\n }\r\n }\r\n}", "startup": "{\r\n \"done\": \"HTTP server listening on\"\r\n}", "logs": "{}", "stop": "^^C" }, "scripts": { "installation": { "script": "#!\/bin\/bash\r\n\r\nARCH=$([[ \"$(uname -m)\" == \"x86_64\" ]] && echo \"amd64\" || echo \"arm64\")\r\nMATCH=linux-${ARCH}\r\n# Create initial directories\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\necho ${ARCH}\r\necho ${MATCH}\r\n# Create needed directories\r\nmkdir -p \/mnt\/server\/.local\/lib \/mnt\/server\/.local\/bin \/mnt\/server\/.config\/code-server \/mnt\/server\/projects\r\n\r\n# Change permission of projects directory so it can be accessed by code-server\r\nchmod 777 \/mnt\/server\/projects\r\ntouch \"\/mnt\/server\/projects\/PLACE YOUR PROJECTS HERE\"\r\n\r\n# Check for available versions. Defaults to latest if no valid version is found.\r\nLATEST_JSON=$(curl --silent \"https:\/\/api.github.com\/repos\/coder\/code-server\/releases\/latest\")\r\nRELEASES=$(curl --silent \"https:\/\/api.github.com\/repos\/coder\/code-server\/releases\")\r\n\r\nif [ -z \"${VERSION}\" ] || [ \"${VERSION}\" == \"latest\" ]; then\r\n DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i ${MATCH})\r\nelse\r\n VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION \"v${VERSION}\" '.[] | select(.tag_name==$VERSION) | .tag_name')\r\n if [ \"v${VERSION}\" == \"${VERSION_CHECK}\" ]; then\r\n DOWNLOAD_URL=$(echo ${RELEASES} | jq -r --arg VERSION \"v${VERSION}\" '.[] | select(.tag_name==$VERSION) | .assets[].browser_download_url' | grep -i ${MATCH})\r\n else\r\n echo -e \"defaulting to latest release\"\r\n DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url)\r\n fi\r\nfi\r\n\r\n# Download the given Version and extract it\r\necho \"Downloading $DOWNLOAD_URL\"\r\ncurl -fL $DOWNLOAD_URL | tar -C \/mnt\/server\/.local\/lib -xz\r\nmv \/mnt\/server\/.local\/lib\/code-server-*linux-${ARCH} \/mnt\/server\/.local\/lib\/code-server-${VERSION}\r\n\r\nPATH=\"\/mnt\/server\/.local\/bin:$PATH\"\r\necho \"password: changeme\r\nbind-addr: 0.0.0.0\r\nauth: password\r\ncert: false\" > \/mnt\/server\/.config\/code-server\/config.yaml\r\n\r\necho \"Install complete\"", "container": "ghcr.io\/parkervcp\/installers:debian", "entrypoint": "bash" } }, "variables": [ { "sort": 1, "name": "Password", "description": "Password to login to your Code-Server instance", "env_variable": "PASSWORD", "default_value": "changeme", "user_viewable": true, "user_editable": true, "rules": [ "required", "string", "max:32" ] }, { "sort": 2, "name": "Version", "description": "Version for (re)installation such as 3.9.3. Defaults to latest version if no valid version is provided", "env_variable": "VERSION", "default_value": "latest", "user_viewable": true, "user_editable": true, "rules": [ "string", "max:20" ] } ] }