Skip to content

yiwu1/pneumatic-tubes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pneumatic-tubes

Transfer kappa registry mirror contents to an npmE appliance.

Preparation

  • Node.js 8+
  • npm 5 - 5.6 (5.7+ are incompatible with npmE)
  • run npm install
  • login to your target registry if needed: npm --registry=<target-registry-url> login
  • setup environment variables for these registries
    • PNEUMATIC_TUBES_SOURCE_COUCHDB = <source-couchdb-url>
    • PNEUMATIC_TUBES_TARGET_REGISTRY = <target-registry-url>
    • [optional] PNEUMATIC_TUBES_LAST_SEQUENCE = <sequence-number> defaults to 0 (zero)

IMPORTANT: You need to point the import script at the CouchDB instance associated with your kappa proxy. The kappa proxy itself doesn't foward the _changes feed, so direct couch access is necessary.

Run the Script

With all of the above setup steps complete, you shoud be ready to run the import:

npm run import

Development

If you are making changes to pneumatic-tubes, you can test using a local kappa.

Run kappa in the foreground:

docker-compose up

OR

Run kappa in the background:

docker-compose up -d

When backgrounded, you can tail its logs thus (includes 20 lines of context):

docker logs --follow --tail 20 pneumatictubes_kappa_1

About

migrate packages between registries (using npm publish)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%