Sign inSign up

elthariel/kubernetes-npm-proxy-cache

By elthariel

•Updated almost 10 years ago

A simple proxy cache to speed up npm installs on your kubernetes cluster

Image
0

10K+

elthariel/kubernetes-npm-proxy-cache repository overview

⁠kubernetes-npm-proxy-cache

Make npm install much faster on your kubernetes deployment, by deploying a small internal proxy cache for your deployment.

This has been hacked together to make our Jenkins build faster.

⁠How to use it

First, deploy the proxy cache on your kubernetes cluster:

$> kubectl apply -f https://github.com/elthariel/kubernetes-npm-proxy-cache/raw/master/npm-proxy-cache.yml
deployment "npm-proxy-cache-deployment" created
service "npm-proxy-cache-service" created

Then, anywhere in your Kubernetes cluster:

$> npm config set proxy http://npm-proxy-cache-service
$> npm config set https-proxy http://npm-proxy-cache-service
$> npm config set strict-ssl false
$> npm install

Tag summary

Content type

Image

Digest

Size

212.8 MB

Last updated

almost 10 years ago

docker pull elthariel/kubernetes-npm-proxy-cache