diff --git a/.gitignore b/.gitignore index 92b2c45..1d97fe2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules/ tmp/ +.idea \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9cd08d7..8ec0d00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [0.4.2] - 2023-01-19 + +### Fixed +- Initialize `config.container_config` in case it's `undefined` + ## [0.4.1] - 2022-03-24 ### Dependency update / security diff --git a/appLayerCreator.js b/appLayerCreator.js index 84e0e36..69e2ef8 100644 --- a/appLayerCreator.js +++ b/appLayerCreator.js @@ -199,6 +199,7 @@ async function addLayers(tmpdir, fromdir, todir, options) { logger.info('Parsing image ...'); let manifest = await fse.readJson(path.join(fromdir, 'manifest.json')); let config = await fse.readJson(path.join(fromdir, 'config.json')); + config.container_config = config.container_config || {}; logger.info('Adding new layers...'); await copyLayers(fromdir, todir, manifest.layers); diff --git a/package.json b/package.json index 74440cf..d7635a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "doqr", - "version": "0.4.1", + "version": "0.4.2", "description": "Build node.js docker images without docker", "main": "./cli.js", "scripts": {