Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 2.6 KB

README.md

File metadata and controls

56 lines (40 loc) · 2.6 KB

nodegit:alpine

A node:alpine based container with precompiled nodegit

docker pull bitmeal/nodegit:alpine

view @ Docker HUB 🚢

important infos

How does it work?

  • nodegit is installed globally in /usr/local/lib/node_modules
  • the npm binary is masked from /opt/linker/bin/npm and npm calls are intercepted and evaluated
  • the global nodegit version is linked (npm link nodegit), if a dependency on nodegit is detected (from package.json or directly)

Visit docker hub page for configuration options!

⚡ when debugging, remember that npm is masked and calls are intercepted

⚡ to install (read: fetch as dependency) nodegit manually, call npm link nodegit

⚡ to call npm directly, use /usr/local/bin/npm

don't try to use this container to add a nodegit dependency to a project that did not depend on it beforehand! running npm install nodegit will not add it to your package.json!

why?

Because nodegit is nice for automation!

Because nodegit in a container is pain!

Because nodegit want's to be installed from source.

versions

Builds images for the latest N node.js versions and latest M nodegit versions (visit docker hub to find N and M). lts-alpine and alpine are referenced directly as base image, to avoid mismatches between official node images and these nodegit images.

Tags follow the official node image convention, introducing an additional leading versioning component. Images may be referenced as shown below.

alpine, as current-alpine is built against latest nodegit version only! To use a specific version of nodegit, you have to use a specific version of node.js as well. Omitting a version specification for nodegit will get you latest.

No versioning of alpine versions! Nodejs and nodegit versioning only.

[<nodegit-version>-][<node-version>-]alpine
  • alpine, current-alpine, latest-current-alpine: latest nodegit version, based on alpine/current-alpine
  • lts-alpine, latest-lts-alpine: latest nodegit version, based on lts-alpine
  • <nodegit-version>-lts-alpine: specified nodegit version, based on lts-alpine
  • <name>-alpine, <major-version>-alpine: latest nodegit version, based on respective node image (e.g. 14-alpine/fermium-alpine)
  • <nodegit-version>-<name>-alpine, <nodegit-version>-<major-version>-alpine: specified nodegit version, based on respective node image
  • No explicit latest tag! node:latest refers to a debian based image and breaks the naming convention

platforms

  • linux/amd64
  • linux/arm64