https://github.com/bbmoz/npm-registry-cc
https://github.com/bbmoz/npm-registry-cc
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bbmoz/npm-registry-cc
- Owner: bbmoz
- License: mit
- Created: 2017-03-25T21:37:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-27T22:54:18.000Z (about 9 years ago)
- Last Synced: 2025-08-14T21:35:40.031Z (10 months ago)
- Language: Makefile
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NPM Registry CC
> Spin up your own NPM registry on a docker container with caching that proxies to npmjs with minimal configuration.
## Tasks
1. `make start` or `make` to start the registry in the background on a docker container.
1. `make backup` to perform a backup that produces a *backup.tar* file.
1. `make restore` to start the registry with the backup file.
## Logs
1. `docker logs npm-registry`. See options with `--help`.
## Config
1. You can modify *config.yaml* directly without restarting the registry. See [docs](https://github.com/rlidwka/sinopia/blob/master/conf/full.yaml) for customization options.
1. To modify the registry port, change the value in *.envrc*.
## Local
To use your NPM registry, you can do one of the following:
1. Add the line `registry = http://${npm-registry-ip}:4000/` to your *.npmrc* file. Or,
1. Run `npm set registry http://${npm-registry-ip}:4000/` in your project.