Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Investigate gc metrics on alpine dists #30

Open
joao-fontenele opened this issue May 18, 2020 · 1 comment
Open

Investigate gc metrics on alpine dists #30

joao-fontenele opened this issue May 18, 2020 · 1 comment

Comments

@joao-fontenele
Copy link
Owner

maybe there's a problem with the lib prometheus-gc-stats that do not build on alpine dists.

I think I got an error for missing python on the container

@aledemajo
Copy link

aledemajo commented Apr 22, 2021

I'm seeing a similar library problems problem when building express-prometheus-middleware as a Docker container using an apline distro. Here's some extra info for when you get around to this:

  • I was able to replicate using node:14.15.4-alpine3.10 as the base image.

  • I got a 403 while downloading gc-stats from AWS

node-pre-gyp WARN Tried to download(403): https://node-binaries.s3.amazonaws.com/gcstats/v1.4.0/Release/node-v83-linux-x64.tar.gz
  • later in the installation process, this error:
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use

I'm assuming python comes with gcstats?

  • However, I was still able to build the image and run it successfully without the dependencies:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: gc-stats@1.4.0 (node_modules/gc-stats):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: gc-stats@1.4.0 install: `node-pre-gyp install --fallback-to-build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants