0.1.0 • Published 6 years ago
functions-io-registry v0.1.0
functions-io-registry
npm Registry
work in progress...
Minimalist npm registry and proxy for node.
Installation
$ npm install functions-io-registry
Usage
var registry = require("functions-io-registry");
registry.start();
Run image
Environment Variables
- REGISTRY_STORE_MANIFEST_S3_ENABLED = true|false
- REGISTRY_STORE_MANIFEST_S3_ACCESSKEYID
- REGISTRY_STORE_MANIFEST_S3_SECRETACCESSKEY
- REGISTRY_STORE_MANIFEST_S3_BUCKETNAME
- REGISTRY_STORE_TARBALL_S3_ENABLED = true|false
- REGISTRY_STORE_TARBALL_S3_ACCESSKEYID
- REGISTRY_STORE_TARBALL_S3_SECRETACCESSKEY
- REGISTRY_STORE_TARBALL_S3_BUCKETNAME
- REGISTRY_STORE_MANIFEST_DISK_FOLDER
- REGISTRY_STORE_TARBALL_DISK_FOLDER
Run container
docker run --name registry -d functionsio/registry
Run container with s3 store
docker run --name registry -e REGISTRY_STORE_MANIFEST_S3_ENABLED=true -e REGISTRY_STORE_MANIFEST_S3_ACCESSKEYID=xxx -e REGISTRY_STORE_MANIFEST_S3_SECRETACCESSKEY=xxx -e REGISTRY_STORE_MANIFEST_S3_BUCKETNAME=xxx -e REGISTRY_STORE_TARBALL_S3_ENABLED=true -e REGISTRY_STORE_TARBALL_S3_ACCESSKEYID=xxx -e REGISTRY_STORE_TARBALL_S3_SECRETACCESSKEY=xxx -e REGISTRY_STORE_TARBALL_S3_BUCKETNAME=xxx -d functionsio/registry
Build new image
docker build -t functionsio/registry:0.0.9 .
Push new imagem
docker push functionsio/registry:0.0.9
Npm
npm adduser --registry=http://myregistry.example.com --scope=@myco --always-auth