0.3.2 • Published 8 years ago

docker-registry-downloader v0.3.2

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
8 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

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.36

9 years ago

0.1.35

9 years ago

0.1.34

9 years ago

0.1.33

9 years ago

0.1.31

9 years ago

0.1.30

9 years ago

0.1.29

9 years ago

0.1.28

9 years ago

0.1.27

9 years ago

0.1.26

9 years ago

0.1.23

9 years ago

0.1.22

9 years ago

0.1.21

9 years ago

0.1.20

9 years ago

0.1.19

9 years ago

0.1.18

9 years ago

0.1.15

9 years ago

0.1.14

9 years ago

0.1.13

9 years ago

0.1.12

9 years ago

0.1.11

9 years ago

0.1.10

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago