Title: What is the correct way to deploy the code-server on alpine? · Issue #6535 · coder/code-server · GitHub
Open Graph Title: What is the correct way to deploy the code-server on alpine? · Issue #6535 · coder/code-server
X Title: What is the correct way to deploy the code-server on alpine? · Issue #6535 · coder/code-server
Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information alpine3.18.4 in docker container Steps to Reproduce I try to step by step with the offical docs. docker run --ti alpine:3.18.4 apk update && apk ...
Open Graph Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information alpine3.18.4 in docker container Steps to Reproduce I try to step by step with the offical docs. docker r...
X Description: Is there an existing issue for this? I have searched the existing issues OS/Web Information alpine3.18.4 in docker container Steps to Reproduce I try to step by step with the offical docs. docker r...
Opengraph URL: https://github.com/coder/code-server/issues/6535
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"What is the correct way to deploy the code-server on alpine?","articleBody":"### Is there an existing issue for this?\n\n- [X] I have searched the existing issues\n\n### OS/Web Information\n\nalpine3.18.4 in docker container\n\n### Steps to Reproduce\n\nI try to step by step with [the offical docs](https://coder.com/docs/code-server/latest/npm#installing). \r\n1. `docker run --ti alpine:3.18.4`\r\n2. `apk update && apk add alpine-sdk bash libstdc++ libc6-compat`\r\n3. `apk add python3`\r\n4. `apk add nodejs=18.18.2-r0`\r\n5. `apk add npm`\r\n6. `npm config set python python3` , this command will error, then I try it the `npm config edit` and add the 'python=python3` in the open file\r\n7. `export FORCE_NODE_VERSION=18`\r\n8. `npm install --global code-server --unsafe-perm`\r\n\n\n### Expected\n\nsuccess deploy the code-server\n\n### Actual\n\nPrint a log of error at the last step.\r\nI see the err tips:\"You may not have the required dependencies to build the native modules\", then I try to see the [lists Node.js requirements](https://github.com/microsoft/vscode/wiki/How-to-Contribute#prerequisites) and confirm the prerequisites, but also not success.\n\n### Logs\n\n```\r\n/ # npm install --global code-server --unsafe-perm\r\nnpm ERR! code 1\r\nnpm ERR! path /usr/local/lib/node_modules/code-server\r\nnpm ERR! command failed\r\nnpm ERR! command sh -c sh ./postinstall.sh\r\nnpm ERR! WARNING: Overriding required Node.js version to v18\r\nnpm ERR! This could lead to broken functionality, and is unsupported.\r\nnpm ERR! USE AT YOUR OWN RISK!\r\nnpm ERR! Installing Code dependencies...\r\nnpm ERR! User agent: npm/9.6.6 node/v18.18.2 linux x64 workspaces/false\r\nnpm ERR! You may not have the required dependencies to build the native modules.\r\nnpm ERR! Please see https://github.com/coder/code-server/blob/main/docs/npm.md\r\nnpm ERR! npm ERR! code 1\r\nnpm ERR! npm ERR! path /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/kerberos\r\nnpm ERR! npm ERR! command failed\r\nnpm ERR! npm ERR! command sh -c prebuild-install --runtime napi || node-gyp rebuild\r\nnpm ERR! npm ERR! make: Entering directory '/usr/local/lib/node_modules/code-server/lib/vscode/node_modules/kerberos/build'\r\nnpm ERR! npm ERR! CXX(target) Release/obj.target/kerberos/src/kerberos.o\r\nnpm ERR! npm ERR! make: Leaving directory '/usr/local/lib/node_modules/code-server/lib/vscode/node_modules/kerberos/build'\r\nnpm ERR! npm ERR! prebuild-install warn install No prebuilt binaries found (target=4 runtime=napi arch=x64 libc=musl platform=linux)\r\nnpm ERR! npm ERR! gyp info it worked if it ends with ok\r\nnpm ERR! npm ERR! gyp info using node-gyp@9.3.1\r\nnpm ERR! npm ERR! gyp info using node@18.18.2 | linux | x64\r\nnpm ERR! npm ERR! gyp info find Python using Python version 3.11.6 found at \"/usr/bin/python3\"\r\nnpm ERR! npm ERR! gyp info spawn /usr/bin/python3\r\nnpm ERR! npm ERR! gyp info spawn args [\r\nnpm ERR! npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',\r\nnpm ERR! npm ERR! gyp info spawn args 'binding.gyp',\r\nnpm ERR! npm ERR! gyp info spawn args '-f',\r\nnpm ERR! npm ERR! gyp info spawn args 'make',\r\nnpm ERR! npm ERR! gyp info spawn args '-I',\r\nnpm ERR! npm ERR! gyp info spawn args '/usr/local/lib/node_modules/code-server/lib/vscode/node_modules/kerberos/build/config.gypi',\r\nnpm ERR! npm ERR! gyp info spawn args '-I',\r\nnpm ERR! npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',\r\nnpm ERR! npm ERR! gyp info spawn args '-I',\r\nnpm ERR! npm ERR! gyp info spawn args '/root/.cache/node-gyp/18.18.2/include/node/common.gypi',\r\nnpm ERR! npm ERR! gyp info spawn args '-Dlibrary=shared_library',\r\nnpm ERR! npm ERR! gyp info spawn args '-Dvisibility=default',\r\nnpm ERR! npm ERR! gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/18.18.2',\r\nnpm ERR! npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',\r\nnpm ERR! npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/18.18.2/\u003c(target_arch)/node.lib',\r\nnpm ERR! npm ERR! gyp info spawn args '-Dmodule_root_dir=/usr/local/lib/node_modules/code-server/lib/vscode/node_modules/kerberos',\r\nnpm ERR! npm ERR! gyp info spawn args '-Dnode_engine=v8',\r\nnpm ERR! npm ERR! gyp info spawn args '--depth=.',\r\nnpm ERR! npm ERR! gyp info spawn args '--no-parallel',\r\nnpm ERR! npm ERR! gyp info spawn args '--generator-output',\r\nnpm ERR! npm ERR! gyp info spawn args 'build',\r\nnpm ERR! npm ERR! gyp info spawn args '-Goutput_dir=.'\r\nnpm ERR! npm ERR! gyp info spawn args ]\r\nnpm ERR! npm ERR! gyp info spawn make\r\nnpm ERR! npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]\r\nnpm ERR! npm ERR! In file included from ../src/kerberos_common.h:5,\r\nnpm ERR! npm ERR! from ../src/kerberos.h:12,\r\nnpm ERR! npm ERR! from ../src/kerberos.cc:1:\r\nnpm ERR! npm ERR! ../src/unix/kerberos_gss.h:21:14: fatal error: gssapi/gssapi.h: No such file or directory\r\nnpm ERR! npm ERR! 21 | #include \u003cgssapi/gssapi.h>\r\nnpm ERR! npm ERR! | ^~~~~~~~~~~~~~~~~\r\nnpm ERR! npm ERR! compilation terminated.\r\nnpm ERR! npm ERR! make: *** [kerberos.target.mk:110: Release/obj.target/kerberos/src/kerberos.o] Error 1\r\nnpm ERR! npm ERR! gyp ERR! build error\r\nnpm ERR! npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2\r\nnpm ERR! npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)\r\nnpm ERR! npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28)\r\nnpm ERR! npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12)\r\nnpm ERR! npm ERR! gyp ERR! System Linux 3.10.0-1160.83.1.el7.x86_64\r\nnpm ERR! npm ERR! gyp ERR! command \"/usr/bin/node\" \"/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\nnpm ERR! npm ERR! gyp ERR! cwd /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/kerberos\r\nnpm ERR! npm ERR! gyp ERR! node -v v18.18.2\r\nnpm ERR! npm ERR! gyp ERR! node-gyp -v v9.3.1\r\nnpm ERR! npm ERR! gyp ERR! not ok\r\nnpm ERR!\r\nnpm ERR! npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-11-15T11_07_26_826Z-debug-0.log\r\n\r\nnpm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-11-15T11_07_16_538Z-debug-0.log\r\n```\n\n### Screenshot/Video\n\n_No response_\n\n### Does this issue happen in VS Code or GitHub Codespaces?\n\n- [X] I cannot reproduce this in VS Code.\n- [X] I cannot reproduce this in GitHub Codespaces.\n\n### Are you accessing code-server over a secure context?\n\n- [X] I am using a secure context.\n\n### Notes\n\nSo, what the correct way to deploy the code-server on alpine? Or is it not support the alpine in docker? ","author":{"url":"https://github.com/dxkrs","@type":"Person","name":"dxkrs"},"datePublished":"2023-11-15T11:32:53Z","url":"https://github.com/coder/code-server/issues/6535"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:80ffdf37-5921-5df9-96ea-3a324a9194a4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8262:3F4253:2A9A803:38C5E0B:6B01C319 |
| html-safe-nonce | a6528096f15a2b10e715e26f118aba570c35264eb45f9c90d71bbce02880bb86 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjYyOjNGNDI1MzoyQTlBODAzOjM4QzVFMEI6NkIwMUMzMTkiLCJ2aXNpdG9yX2lkIjoiNjc3ODMzMjczNDI2MDYyNjIwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a9faebb37990ae0d7cafd200adb9ca8fad95d38a0fc5fbaec157600fd7ff18b5 |
| hovercard-subject-tag | issue:1994601553 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/code-server/6535/issue_layout |
| twitter:image | https://opengraph.githubassets.com/49be80666b0de9b37bdcdbc35c8cae22095d4661ee0ac61ae6e9e65e1628dc7b/coder/code-server/issues/6535 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/49be80666b0de9b37bdcdbc35c8cae22095d4661ee0ac61ae6e9e65e1628dc7b/coder/code-server/issues/6535 |
| og:image:alt | Is there an existing issue for this? I have searched the existing issues OS/Web Information alpine3.18.4 in docker container Steps to Reproduce I try to step by step with the offical docs. docker r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dxkrs |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/code-server git https://github.com/coder/code-server.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 172953845 |
| octolytics-dimension-repository_nwo | coder/code-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 172953845 |
| octolytics-dimension-repository_network_root_nwo | coder/code-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width