René's URL Explorer Experiment


Title: Does not work in Docker container based on node:slim · Issue #1986 · nodegit/nodegit · GitHub

Open Graph Title: Does not work in Docker container based on node:slim · Issue #1986 · nodegit/nodegit

X Title: Does not work in Docker container based on node:slim · Issue #1986 · nodegit/nodegit

Description: System information These are about the container. node version: ENV NODE_VERSION=20.5.1 npm or yarn version: 9.8.1 OS/version/architecture: debian12 Applicable nodegit version: 0.27.0 Trying to use nodegit with SvelteKit. With e.g. the f...

Open Graph Description: System information These are about the container. node version: ENV NODE_VERSION=20.5.1 npm or yarn version: 9.8.1 OS/version/architecture: debian12 Applicable nodegit version: 0.27.0 Trying to use...

X Description: System information These are about the container. node version: ENV NODE_VERSION=20.5.1 npm or yarn version: 9.8.1 OS/version/architecture: debian12 Applicable nodegit version: 0.27.0 Trying to use...

Opengraph URL: https://github.com/nodegit/nodegit/issues/1986

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Does not work in Docker container based on node:slim","articleBody":"## System information\r\nThese are about the container.\r\n  - node version: ENV NODE_VERSION=20.5.1\r\n  - npm or yarn version: 9.8.1\r\n  - OS/version/architecture: debian12\r\n  - Applicable nodegit version: 0.27.0\r\n\r\nTrying to use nodegit with SvelteKit.\r\nWith e.g. the following function, dev build works perfectly fine.\r\n\r\n```\r\nexport const addAndCommit = async (file: string, message: string) => {\r\n\tconsole.log(Git.version);\r\n\tconst repo = await Git.Repository.open(DATA_PATH);\r\n\tconst index = await repo.refreshIndex();\r\n\tconst result = await index.addByPath(file);\r\n\tif (result === 0) {\r\n\t\tthrow Error(`Cannot add to index: ${file}`);\r\n\t}\r\n\tawait index.write();\r\n\r\n\tconst changes = await index.writeTree();\r\n\tconst head = await Git.Reference.nameToId(repo, 'HEAD');\r\n\tconst parent = await repo.getCommit(head);\r\n\tconst author = generateAuthor();\r\n\tawait repo.createCommit('HEAD', author, author, message, changes, [parent]);\r\n};\r\n```\r\n\r\nFor production I containerized with this Dockerfile -\r\n\r\n```\r\nFROM node:slim\r\n\r\nWORKDIR /app\r\n\r\nCOPY . .\r\nRUN RUN apt-get install -y python3 libkrb5-dev gcc openssl libssh2-1-dev g++ make\r\nRUN npm ci\r\nRUN npm run build\r\n\r\nENV NODE_ENV=production\r\nEXPOSE 3000\r\nCMD [\"node\", \"build/index.js\"]\r\n\r\n```\r\n\r\nand all commands succeeded, including `npm ci`. But cannot read the Git repository, receiving this error message.\r\n\r\n```\r\n\"err\":{\"type\":\"TypeError\",\"message\":\"Cannot read properties of undefined (reading 'open')\",\"stack\":\"TypeError: Cannot read properties of undefined (reading 'open')\\n    at addAndCommit (file:///carbon/build/server/chunks/git-7c944c50.js:6:37)\\n    at POST (file:///carbon/build/server/chunks/_server.ts-8d43896a.js:47:15)\\n    at async render_endpoint (file:///carbon/build/server/index.js:1570:20)\\n    at async resolve (file:///carbon/build/server/index.js:3942:22)\\n    at async respond (file:///carbon/build/server/index.js:3831:22)\\n    at async Array.ssr (file:///carbon/build/handler.js:1221:3)\"}\r\n```\r\n\r\nI may miss some packages to make nodegit work inside docker container, but since we do not have any official documentation about including this library in the container I'm not sure.\r\n\r\nDoes anyone make it in a docker container?\r\n","author":{"url":"https://github.com/kyoheiu","@type":"Person","name":"kyoheiu"},"datePublished":"2023-09-01T20:30:22Z","url":"https://github.com/nodegit/nodegit/issues/1986"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:bbec8eac-3e20-e1ab-587f-7dbb6914a2be
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCA5E:86C7D:23EDC0:340088:6AFD7829
html-safe-nonce533664363056c6db7ee0c4bd0333b43b25e3bde3006c5c1dc5eb135b7d7aea13
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTVFOjg2QzdEOjIzRURDMDozNDAwODg6NkFGRDc4MjkiLCJ2aXNpdG9yX2lkIjoiMTA2MDQ5NTUxMDk5ODk3MjQ1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac80ca9eb1b3fc6b6fc45a0e5d87f3dcafb2e9b52b95f84f82fddd24c5d65ee402
hovercard-subject-tagissue:1878012488
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodegit/nodegit/1986/issue_layout
twitter:imagehttps://opengraph.githubassets.com/be8dab5e07d5ff9b610216009efbe0870f3f6eaa3a36f9e45c223d188188385a/nodegit/nodegit/issues/1986
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/be8dab5e07d5ff9b610216009efbe0870f3f6eaa3a36f9e45c223d188188385a/nodegit/nodegit/issues/1986
og:image:altSystem information These are about the container. node version: ENV NODE_VERSION=20.5.1 npm or yarn version: 9.8.1 OS/version/architecture: debian12 Applicable nodegit version: 0.27.0 Trying to use...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekyoheiu
hostnamegithub.com
expected-hostnamegithub.com
None544ff6b59bd215c4609120f6e334dbd0b00d34fb6f8bc03a476f72256998887e
turbo-cache-controlno-preview
go-importgithub.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git
octolytics-dimension-user_id657068
octolytics-dimension-user_loginnodegit
octolytics-dimension-repository_id1383170
octolytics-dimension-repository_nwonodegit/nodegit
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1383170
octolytics-dimension-repository_network_root_nwonodegit/nodegit
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release71c92f8b27ec5e9aa6f6477b4e067a4727fc9edb
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodegit/nodegit/issues/1986#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodegit%2Fnodegit%2Fissues%2F1986
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodegit%2Fnodegit%2Fissues%2F1986
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodegit%2Fnodegit
Reloadhttps://github.com/nodegit/nodegit/issues/1986
Reloadhttps://github.com/nodegit/nodegit/issues/1986
Reloadhttps://github.com/nodegit/nodegit/issues/1986
nodegithttps://github.com/nodegit
nodegithttps://github.com/nodegit/nodegit
Codehttps://github.com/nodegit/nodegit
Issues344 (344)https://github.com/nodegit/nodegit/issues
Pull requests23 (23)https://github.com/nodegit/nodegit/pulls
Projectshttps://github.com/nodegit/nodegit/projects
Security and qualityhttps://github.com/nodegit/nodegit/security
Insightshttps://github.com/nodegit/nodegit/insights
https://github.com/nodegit/nodegit
New issuehttps://github.com/login?return_to=https://github.com/nodegit/nodegit/issues/1986
New issuehttps://github.com/login?return_to=https://github.com/nodegit/nodegit/issues/1986
Does not work in Docker container based on node:slimhttps://github.com/nodegit/nodegit/issues/1986#top
https://github.com/kyoheiu
kyoheiuhttps://github.com/kyoheiu
on Sep 1, 2023https://github.com/nodegit/nodegit/issues/1986#issue-1878012488
https://github.com/weedz
weedzhttps://github.com/weedz
on Oct 3, 2023https://github.com/nodegit/nodegit/issues/1986#issuecomment-1745806593
https://github.com/weedz
weedzhttps://github.com/weedz
on Oct 3, 2023https://github.com/nodegit/nodegit/issues/1986#issuecomment-1745811433
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodegit/nodegit/issues/1986
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodegit/nodegit/issues/1986
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.