0.3.2 • Published 9 years ago

docker-registry-downloader v0.3.2

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
9 years ago

Docker Registry Downloader

This package provides several helpers to use Docker APIs.

  • Compare local layers with registry layers

Install


npm i docker-registry-downloader --save

Usage example

var DockerHub   = require('docker-registry-downloader').DockerHub;
var Syncronizer = require('docker-registry-downloader').Syncronizer;
var dockerHub   = new DockerHub();
var syncronizer = new Syncronizer();

syncronizer.initialize().then(function() {
  var namespace   = 'azukiapp';
  var repository  = 'azktcl';
  var tag         = '0.0.2';

  // get token from Docker Hub API
  dockerHub.images(namespace, repository).then(function(hubResult) {
    // check local layers with Docker Registry API
    return syncronizer.getLayersDiff(hubResult, tag).then(function (result) {
      console.log(result);
    });
  });
});

developers come here

run all tests

gulp

filter tests

gulp --grep='should sync azukiapp/azktcl:0.0.2'

enable debug

export DOCKER_REGISTRY_DEBUG_LEVEL=debug

enable request debug

export NODE_DEBUG=request
0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.36

10 years ago

0.1.35

10 years ago

0.1.34

10 years ago

0.1.33

10 years ago

0.1.31

10 years ago

0.1.30

10 years ago

0.1.29

10 years ago

0.1.28

10 years ago

0.1.27

10 years ago

0.1.26

10 years ago

0.1.23

10 years ago

0.1.22

10 years ago

0.1.21

10 years ago

0.1.20

10 years ago

0.1.19

10 years ago

0.1.18

10 years ago

0.1.15

10 years ago

0.1.14

10 years ago

0.1.13

10 years ago

0.1.12

10 years ago

0.1.11

10 years ago

0.1.10

11 years ago

0.1.9

11 years ago

0.1.8

11 years ago

0.1.7

11 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago