https://github.com/trion-development/docker-npm-proxy-cache
npm proxy cache container (docker / kubernetes)
https://github.com/trion-development/docker-npm-proxy-cache
Last synced: 4 months ago
JSON representation
npm proxy cache container (docker / kubernetes)
- Host: GitHub
- URL: https://github.com/trion-development/docker-npm-proxy-cache
- Owner: trion-development
- Created: 2019-01-30T19:49:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-30T21:10:56.000Z (over 7 years ago)
- Last Synced: 2025-03-02T16:15:57.474Z (over 1 year ago)
- Language: Dockerfile
- Size: 1000 Bytes
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
= Caching proxy for NPM
Especially useful in CI/CD setups to save bandwith and reduce build times.
== Cache settings
Set to 24h and will deliver possibly stale data in case the upstream registry is not reachable.
== Kubernetes usage
See the `k8s.yaml` example deployment to deploy as a service.
Users of minikube might want to use a NodePort deployment.
Be careful when using the docker daemon of your cluster (minikube) directly for build containers:
Since the container will not be managed by kubernetes, the kubernetes DNS and service discovery won't work.
You must use the IP of your minikube node instead.
== Building the image
As usual run a `docker build -t trion/npm-proxy-cache`.