Closed b01 closed 4 months ago
I noticed today when VS Code CLI to make a tunnel to an Alpine container (musl with no GNU Lib C) that it installed the server with a tar named vscode-server-linux-alpine.tar.gz
So instead of replacing the platform "linux" with "alpine", I switched to replace architecture "x64" with "alpine" and was able to pull a stable release of the VS Code Server for Alpine (musl no GNU LibC). Here a crop from the logs for review:
[2024-05-08 18:14:57] info [tunnels::connections::relay_tunnel_host] Opened new client on channel 2
[2024-05-08 18:14:57] info [russh::server] wrote id
[2024-05-08 18:14:57] info [russh::server] read other id
[2024-05-08 18:14:57] info [russh::server] session is running
[2024-05-08 18:14:58] info [rpc.0] Checking /root/.vscode/cli/servers/Stable-b58957e67ee1e712cebf466b995adf4c5307b2bd/log.txt and /root/.vscode/cli/servers/Stable-b58957e67ee1e712cebf466b995adf4c5307b2bd/pid.txt for a running server...
[2024-05-08 18:14:58] info [rpc.0] Downloading Visual Studio Code server -> /tmp/.tmpgvHxG2/vscode-server-linux-alpine.tar.gz
[2024-05-08 18:15:00] info [rpc.0] Starting server...
[2024-05-08 18:15:00] info [rpc.0] Server started
[2024-05-08 18:20:15] info closing tunnel and all clients after a shutdown request
[2024-05-08 18:20:15] info Shutting down: RPC client requested shutdown
[2024-05-08 18:20:15] info [rpc.0] Disposed of connection to running server.
I'll update the script to close this issue if this works.
In the download-vs-code-server.sh script you will notice that you have to specify "alpine" as the platform in place of "linux" to download VS Code Server that is correct for Alpine (musl with no GNU LibC). While such a version exist currently the URL to download it is unknown. I've tried to guess, but to no avail. I know that it exist, as the VS Code source makes references to it and also you can see it get installed when you start a Dev container with Alpine and the minimum requirements:, here is a crop of the log output during the startup of such a Dev container:
I'm hoping someone can volunteer the correct URL. Until I'll keep trying to hunt in down.