Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

containerify

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

containerify - npm Package Compare versions

Comparing version 2.4.0 to 2.5.0

lib/dockerExporter.d.ts

14

lib/cli.js

@@ -21,2 +21,3 @@ #!/usr/bin/env node

const appLayerCreator_1 = require("./appLayerCreator");
const dockerExporter_1 = require("./dockerExporter");
const tarExporter_1 = require("./tarExporter");

@@ -37,2 +38,3 @@ const logger_1 = require("./logger");

"--toTar <path>": "Optional: Export to tar file",
"--toDocker": "Optional: Export to local docker registry",
"--registry <path>": "Optional: Convenience argument for setting both from and to registry",

@@ -173,4 +175,4 @@ "--platform <platform>": "Optional: Preferred platform, e.g. linux/amd64 or arm64",

exitWithErrorIf(!options.toImage, "--toImage must be specified");
exitWithErrorIf(!options.toRegistry && !options.toTar, "Must specify either --toTar or --toRegistry");
exitWithErrorIf(!options.toRegistry && !options.toToken && !options.toTar, "A token must be given when uploading to docker hub");
exitWithErrorIf(!options.toRegistry && !options.toTar && !options.toDocker, "Must specify either --toTar, --toRegistry or --toDocker");
exitWithErrorIf(!!options.toRegistry && !options.toToken, "A token must be given when uploading to docker hub");
if (options.toRegistry && !options.toRegistry.endsWith("/"))

@@ -217,2 +219,10 @@ options.toRegistry += "/";

yield appLayerCreator_1.default.addLayers(tmpdir, fromdir, todir, options);
if (options.toDocker) {
if (!(yield dockerExporter_1.default.isAvailable())) {
throw new Error("Docker executable not found on path. Unable to export to local docker registry.");
}
const dockerDir = path.join(tmpdir, "toDocker");
yield tarExporter_1.default.saveToTar(todir, tmpdir, dockerDir, [options.toImage], options);
yield dockerExporter_1.default.load(dockerDir);
}
if (options.toTar) {

@@ -219,0 +229,0 @@ yield tarExporter_1.default.saveToTar(todir, tmpdir, options.toTar, [options.toImage], options);

@@ -66,2 +66,3 @@ type Descriptor = {

toTar?: string;
toDocker?: boolean;
registry?: string;

@@ -68,0 +69,0 @@ platform: string;

2

lib/version.d.ts

@@ -1,1 +0,1 @@

export declare const VERSION = "2.4.0";
export declare const VERSION = "2.5.0";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VERSION = void 0;
exports.VERSION = "2.4.0";
exports.VERSION = "2.5.0";
{
"name": "containerify",
"version": "2.4.0",
"version": "2.5.0",
"description": "Build node.js docker images without docker",
"main": "./lib/cli.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prebuild": "node -p \"'export const VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts",

@@ -9,0 +8,0 @@ "build": "tsc && chmod ugo+x lib/cli.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc