containerify 2.3.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/appLayerCreator.js +1 -1
- package/lib/tarExporter.js +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
package/lib/appLayerCreator.js
CHANGED
|
@@ -127,7 +127,7 @@ function addDataLayer(tmpdir, todir, options, config, manifest, files, comment)
|
|
|
127
127
|
comment +
|
|
128
128
|
(comment == "dependencies" ? ". Did you forget to run npm install?" : ""));
|
|
129
129
|
}
|
|
130
|
-
yield tar.
|
|
130
|
+
yield tar.create(Object.assign(Object.assign({}, tarDefaultConfig), Object.assign({ statCache: statCache(options.layerOwner), portable: !options.layerOwner, prefix: "/", cwd: buildDir, file: layerFile, gzip: true, noMtime: !options.setTimeStamp }, (options.setTimeStamp ? { mtime: new Date(options.setTimeStamp) } : {}))), filesToTar);
|
|
131
131
|
const fhash = yield calculateHash(layerFile);
|
|
132
132
|
const finalName = path.join(todir, fhash + ".tar.gz");
|
|
133
133
|
yield fse.move(layerFile, finalName);
|
package/lib/tarExporter.js
CHANGED
|
@@ -46,7 +46,7 @@ function saveToTar(fromdir, tmpdir, toPath, repoTags, options) {
|
|
|
46
46
|
];
|
|
47
47
|
yield fs_1.promises.writeFile(path.join(tardir, "manifest.json"), JSON.stringify(simpleManifest));
|
|
48
48
|
yield fs_1.promises.writeFile(path.join(tardir, "config.json"), JSON.stringify(config));
|
|
49
|
-
yield tar.
|
|
49
|
+
yield tar.create(Object.assign(Object.assign({}, tarDefaultConfig), Object.assign({ cwd: tardir, file: toPath, noMtime: !options.setTimeStamp }, (options.setTimeStamp ? { mtime: new Date(options.setTimeStamp) } : {}))), ["config.json", "manifest.json"].concat(layers));
|
|
50
50
|
logger_1.default.info("Finished " + toPath);
|
|
51
51
|
});
|
|
52
52
|
}
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.4.0";
|
package/lib/version.js
CHANGED