Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/elthariel/kubernetes-npm-proxy-cache

A kubernetes deployment for npm-proxy
https://github.com/elthariel/kubernetes-npm-proxy-cache

Last synced: 8 days ago
JSON representation

A kubernetes deployment for npm-proxy

Awesome Lists containing this project

README

        

# 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:

``` shellsession
$> 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:

``` shellsession
$> 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
```