Skip to content

Docker: Remove unused NPM files #625

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 7, 2025
Merged

Docker: Remove unused NPM files #625

merged 2 commits into from
Apr 7, 2025

Conversation

AgnesToulet
Copy link
Contributor

This PR removes the NPM-related files from the Node base image we are using as we are using Yarn instead of NPM. This is easier than using another base image as it seems like all the Alpine images are using NPM.

This will prevent NPM-related CVEs to be in our Docker image while we are not even using them.

Fixes #425

@AgnesToulet AgnesToulet requested review from a team, juanicabanas and lucychen-grafana and removed request for a team April 7, 2025 13:30
@AgnesToulet AgnesToulet merged commit 2914e6b into master Apr 7, 2025
4 checks passed
@AgnesToulet AgnesToulet deleted the docker/remove-npm branch April 7, 2025 15:01
lucychen-grafana pushed a commit that referenced this pull request Apr 18, 2025
* Docker: Remove unused NPM files

* cleanup
@AgnesToulet AgnesToulet mentioned this pull request Apr 22, 2025
lucychen-grafana added a commit that referenced this pull request May 9, 2025
* Image Render: Support Tracing (#586)

* Add tracing

* changed url ingestion and tried to extract traceparent

* removing unused code

* remove unused packages and add logs

* add tracing info to logs and tracing configuration

* fix config override

* fix argv.config

* fix trace initialization and starting

* remove custom log format

* update json

* change url to env

* Apply suggestions from code review

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* fix yarn file

* prettier lint

* add custom trace for browser

* propagate traces back to Grafana

* Add tracing to plugin mode and improve config management (#602)

* add tracing to plugin mode

* update dev.json

* update imports

* add tracing in CSV endpoints

* fix tests

* fix and simplify config

* fix test

* update config for docker

* add to readme

* update readme

* update readme

* prettier

* update tracing

* change config and docs

* Update src/plugin/v2/grpc_plugin.ts

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* create new docker-compose for tracing

* add serviceName to config

* update yarn

* Apply suggestions from code review

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* remove env servicename

---------

Co-authored-by: Ezequiel Victorero <ezequiel.victorero@grafana.com>
Co-authored-by: AgnesToulet <35176601+AgnesToulet@users.noreply.github.com>

* add CORS allow

* propagate traceparent only if tracing is enabled

* propagate traceparent only if tracing is enabled

* Chore: Update dompurify to fix CVE (#614)

* update cve

* remove libraries chromium has

* Chore: Downgrade to Node 20 (#619)

* Release 3.12.4 (#620)

* Bump axios from 1.7.4 to 1.8.2 (#610)

Bumps [axios](https://github.com/axios/axios) from 1.7.4 to 1.8.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v1.7.4...v1.8.2)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Docker: Add chromium-swiftshader to support webGL (#623)

* add swiftshader

* add flag

---------

Co-authored-by: Joshua Adkins <adkins@berkeley.edu>

* Docker: Remove unused NPM files (#625)

* Docker: Remove unused NPM files

* cleanup

* Docker: Fix typo in Debian Dockerfile (#624)

* remove cors

* yarn.lock

* remove tracing headers for req to other hostnames

* Reapply "Image Render: Support Tracing (#586)" (#609)

This reverts commit 78f1d6e.

* try catch block

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* swap order nest tracing in timinf

* update yarn

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Ezequiel Victorero <ezequiel.victorero@grafana.com>
Co-authored-by: AgnesToulet <35176601+AgnesToulet@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joshua Adkins <adkins@berkeley.edu>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove NPM from Docker image
2 participants