{"meta":{"slug":"pterodactyl-code-server","name":"Pterodactyl Code Server","category":"code-server","source":"pelican","owner":"pelican-eggs","repo":"software","branch":"main","path":"code-server/egg-pterodactyl-code-server.json","rawUrl":"https://raw.githubusercontent.com/pelican-eggs/software/main/code-server/egg-pterodactyl-code-server.json","indexedAt":1792246788483},"egg":{"_comment":"DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO","meta":{"version":"PTDL_v2","update_url":null},"exported_at":"2026-01-03T18:56:30+00:00","name":"Code-Server","author":"mario.franze@gmail.com","description":"Run VS Code on any machine anywhere and access it in the browser.","features":null,"docker_images":{"Java 11":"ghcr.io/pelican-eggs/yolks:java_11","Java 17":"ghcr.io/pelican-eggs/yolks:java_17","Java 21":"ghcr.io/pelican-eggs/yolks:java_21",".net 6":"ghcr.io/pelican-eggs/yolks:dotnet_6",".net 7":"ghcr.io/pelican-eggs/yolks:dotnet_7",".net 8":"ghcr.io/pelican-eggs/yolks:dotnet_8","Mono":"ghcr.io/pelican-eggs/yolks:mono_latest","Erlang 26":"ghcr.io/pelican-eggs/yolks:erlang_26","Python 3.11":"ghcr.io/pelican-eggs/yolks:python_3.11","Python 3.12":"ghcr.io/pelican-eggs/yolks:python_3.12","Python 3.13":"ghcr.io/pelican-eggs/yolks:python_3.13","Bun":"ghcr.io/pelican-eggs/yolks:bun_latest","Dart":"ghcr.io/pelican-eggs/yolks:dart_stable","Go 1.23":"ghcr.io/pelican-eggs/yolks:go_1.23","Nodejs 22":"ghcr.io/pelican-eggs/yolks:nodejs_22","Nodejs 23":"ghcr.io/pelican-eggs/yolks:nodejs_23","Elixir":"ghcr.io/pelican-eggs/yolks:elixir_latest","Rust":"ghcr.io/pelican-eggs/yolks:rust_latest"},"file_denylist":[],"startup":"sh .local/lib/code-server-{{VERSION}}/bin/code-server","config":{"files":"{\n    \".config\\/code-server\\/config.yaml\": {\n        \"parser\": \"file\",\n        \"find\": {\n            \"password\": \"password: {{server.build.env.PASSWORD}}\",\n            \"bind-addr\": \"bind-addr: 0.0.0.0:{{server.build.default.port}}\"\n        }\n    }\n}","startup":"{\n    \"done\": \"HTTP server listening on\"\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/pelican-eggs/installers:debian","entrypoint":"bash"}},"variables":[{"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","field_type":"text"},{"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","field_type":"text"}]},"readme":"# Code-Server\n\n## From the [Code-Server](https://github.com/coder/code-server) GitHub\n\nRun [VS Code](https://github.com/Microsoft/vscode) on any machine anywhere and access it in the browser.\n\n### Server Ports\n\nPorts required to run the server in a table format.\n\n| Port | default |\n| ---- | ------- |\n| Game | 8080    |\n"}