{"_id":"resin-preload","_rev":"99-8550803db8f5f09be677ad1752b78c45","name":"resin-preload","description":"Preload resinOS images with a user application container","dist-tags":{"latest":"7.0.6","beta":"6.0.0-beta11","windows-ee057ef":"7.0.2-windows-ee057ef","windows-82f6f7b":"7.0.2-windows-82f6f7b","use-localhost-on-windows-1a4d548":"7.0.3-use-localhost-on-windows-1a4d548","use-localhost-on-windows-540ea0c":"7.0.3-use-localhost-on-windows-540ea0c"},"versions":{"1.0.0":{"name":"resin-preload","version":"1.0.0","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"command-join":"^2.0.0"},"devDependencies":{},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"2ebcc528fbaa92d24d60c166fd660d2ef13fb369","_id":"resin-preload@1.0.0","_npmVersion":"5.0.4","_nodeVersion":"8.1.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-G/zxeznEcjAaCu8lSWTAFuo1oyN/iMP9UJz2n+cm1bhTGpUKS/VB2nNOoWE/HFpSBHYPe8oJb1Y9P4DsCowEtw==","shasum":"b662b01797b38b411972600597453d83d859a255","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgj3u4XnykuTvc1+Gdo8CxjdsTymaMOGV+HEP2XE8RXwIhAM7gH8v2IRDIFSI20EY525xEkPxj565USfSSVnV3YAG1"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-1.0.0.tgz_1499271749520_0.17534303572028875"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"1.0.1":{"name":"resin-preload","version":"1.0.1","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"command-join":"^2.0.0"},"devDependencies":{},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"e3b313474c03dd5499f2b717b719daa71240c83a","_id":"resin-preload@1.0.1","_shasum":"6f98c19fa231cf33985aa6bb15b348f1ccdf9095","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"6f98c19fa231cf33985aa6bb15b348f1ccdf9095","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-1.0.1.tgz","integrity":"sha512-8y/qBDB0LVV9+KPxj+7ZUO4N5a26rUKjAmz+lnV0o5P1zIBTkVZPiFz5ULNHRm1ZwX5j8a3Jmv53nvLYgIQtSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOkY8zSACk0U+rENjxQf4ModFGDfryS32Bk/x6IV0EcgIgCXJ5zt+7iRIiIMzmVaW2cVHv30Z6iGh48d9gCW0PU5A="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-1.0.1.tgz_1499444729644_0.15952962497249246"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"1.1.0":{"name":"resin-preload","version":"1.1.0","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"command-join":"^2.0.0","compare-versions":"^3.0.1"},"devDependencies":{},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"03095c4252e3210a187482dbf0fd6f4233825782","_id":"resin-preload@1.1.0","_shasum":"a26c811b19030006ff162bfafcee7896c01f03ec","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"a26c811b19030006ff162bfafcee7896c01f03ec","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-1.1.0.tgz","integrity":"sha512-E0y4IZ0WpZnVved7JT4wpx68Np8Y5v3555cyjzGw4uub9JuuHhIEwp8nEez2WOWqI2KQ6jSsE0ruBW6ZkjjWRw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8nDHzxfgdU4j0SUg1P2Yqzx1wbYoJ97Bw7tHSpcdQEQIhAJ0YpNqhIrPm1nBl11aqhgKplVhxBT4hKf55lFrJF8ey"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-1.1.0.tgz_1500989400904_0.607287660939619"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"1.2.0":{"name":"resin-preload","version":"1.2.0","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"command-join":"^2.0.0","compare-versions":"^3.0.1"},"devDependencies":{},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"6885fbd8d4d47a152b43c81d5665c2c36049161b","_id":"resin-preload@1.2.0","_shasum":"98c7813adf9a28469ba0eb744588851ab3f500ca","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"98c7813adf9a28469ba0eb744588851ab3f500ca","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-1.2.0.tgz","integrity":"sha512-nPwoNIm+96/0apYHHZ50tWmSWyc5tzl1b+x7chPtW/X+JE6DfdBF0Ljy32aHWuxVZbphz3DzGOlHU7tLIXIfcg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHSTbJI8glumcnp9ABTiXKWDrdqef1HDl0qHhgErm42gAiBbdm/E6/MJ1+z/13wUF8e1SM6p6sBT+yDQ+wmZGBiPXA=="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-1.2.0.tgz_1501008256920_0.135402693413198"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"1.3.0":{"name":"resin-preload","version":"1.3.0","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"command-join":"^2.0.0","compare-versions":"^3.0.1"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/preload.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"e030a00419ceb115145ed7ad24139444748e92d5","_id":"resin-preload@1.3.0","_shasum":"567c70bd6a54abe11ccbe9e50fa90cf60f6b91bc","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"567c70bd6a54abe11ccbe9e50fa90cf60f6b91bc","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-1.3.0.tgz","integrity":"sha512-sbXGIrHAXRWY15vguaRVKOJYD6HwL9+q3h3Z7UycdHM5fP0INTS5r4IhA64zxdlHwMXQyxVQ4YUHBA7uMOfAxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH7lyhCvLld3A8Q6/tQYbDfJqasrSqZUwZRqHDCE5OapAiApVmF8umvd4CQJYeQlEI1i74TQljJArhcwwb2junkOXQ=="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-1.3.0.tgz_1501841254890_0.21341768139973283"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"1.3.1":{"name":"resin-preload","version":"1.3.1","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"command-join":"^2.0.0","compare-versions":"^3.0.1"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/preload.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"dc39a1d70a70d91f3cd7771295512bdb7016b6c6","_id":"resin-preload@1.3.1","_shasum":"924d68fb7985cfb0f9f8962952baaed1afad2d75","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"924d68fb7985cfb0f9f8962952baaed1afad2d75","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-1.3.1.tgz","integrity":"sha512-IZm6F4HNG88zKEpBes8R+APtelPZjkI00U7fKHvWj3k79nzijiwjP7grKmqJvsxe+Mw4SoEh/2bGBAZhiPHbPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICHRJugWnhE4JpQtnMW5+dDmQ6QDC6E3CxpxWm/PzkAEAiA+9MKRzUX2BNC3NozLsvm2hr6OXQFvqExHeVX6smySgA=="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-1.3.1.tgz_1501841823617_0.43878363142721355"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"1.4.0":{"name":"resin-preload","version":"1.4.0","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"command-join":"^2.0.0","compare-versions":"^3.0.1"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/preload.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"1ba480171fb93535ea191773f9be2ffe1655503f","_id":"resin-preload@1.4.0","_shasum":"62c4243ed56b67dc6bd2640d826170dfcffb8ff3","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"62c4243ed56b67dc6bd2640d826170dfcffb8ff3","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-1.4.0.tgz","integrity":"sha512-0Gyz052ekzi+t44N/7TWTFuDZGldRHQrCAJ8ytJkIOvE8bktfBMbqHjDBNhd/05LW8nzaKqiD1wPvr4FLXD6Gg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXeKNfOVLF1Sge7jthSFalVEB9bwE98hIOEYdnp2MDRgIgNiGv7/przYyyInt6af6RaDqjP4Gyyu/4QOYf51/P19k="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-1.4.0.tgz_1501850095297_0.32577448221854866"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"1.4.1":{"name":"resin-preload","version":"1.4.1","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"command-join":"^2.0.0","compare-versions":"^3.0.1"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/preload.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"c4f5b8c383467da5ff161b33d65649f5b9bfbeae","_id":"resin-preload@1.4.1","_shasum":"22badd5a1df8940372a8df167a0f82f187da2164","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"22badd5a1df8940372a8df167a0f82f187da2164","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-1.4.1.tgz","integrity":"sha512-b2ruayXq+4K+G+1o3sNE7K3urNQvL4gFtz+nKOyl8a8g0eNHRC2g7WsdwQxcHnfMMYneEe/+UBjNYk5g8UW8Ig==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDt6RWFUI33oe+vVLiGy9vGIUZ7nukCiyBTpZpbx9l3sgIgFtp+o7CBTFMDxRa1d11As3AcPUJLotEeY0Gkdx2Dtr0="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-1.4.1.tgz_1502273760452_0.43585375021211803"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"2.0.0":{"name":"resin-preload","version":"2.0.0","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"bluebird":"^3.5.0","dockerode":"^2.5.0","lodash":"^4.17.4","request-promise":"^4.2.1","resin-cli-form":"^1.4.1","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","resin-sdk-preconfigured":"^6.4.1","stream-to-promise":"^2.2.0","tar-stream":"^1.5.4"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"ba9c650a25a0aba119e4b46b0a09c57145413bcd","_id":"resin-preload@2.0.0","_shasum":"f6dc8b4c956b6572b9301519f54d856adeb51fe9","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"f6dc8b4c956b6572b9301519f54d856adeb51fe9","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-2.0.0.tgz","integrity":"sha512-mDJ1eSm6Iny6urFNAlmZBIA8EUZSkhlHRmi/pwaJpsUIUP6hXqk8FiveF98kK4xdl7LuydfCsxDfPAhW5EOCDg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAxdyDriHISp0LiPzeazGFGhZjme9LoihM4GLcvbN7fkAiArBJCeCPUMh5IPxEA+b7bcv3uM2t3/yJwfqqWPTtYyFw=="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-2.0.0.tgz_1502458198846_0.8459742181003094"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"2.0.1":{"name":"resin-preload","version":"2.0.1","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"bluebird":"^3.5.0","dockerode":"^2.5.0","lodash":"^4.17.4","request-promise":"^4.2.1","resin-cli-form":"^1.4.1","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","resin-sdk-preconfigured":"^6.4.1","stream-to-promise":"^2.2.0","tar-stream":"^1.5.4","tmp":"0.0.33"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"6fd7b33485395c84039e7522f942920b838dcbf9","_id":"resin-preload@2.0.1","_shasum":"71f269b0eb45abfa7acec030465d915ab87526b2","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"71f269b0eb45abfa7acec030465d915ab87526b2","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-2.0.1.tgz","integrity":"sha512-UaOYyI0U+0EGHIFbqWg3RdA5XaPxBtTwIBtvaXRfHd3s4qCVbpCxCdmN1nmjf+cT8EQE59ufzObd8AXsZ0dqUQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGT9eOF319UaaILhUYG+7b2z8CZpVS7FNk7ijF7FSPEvAiB6NVXGuyyCOPquWRQHFYMsT8JEQ+yCbItb6aZYtFWzNg=="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-2.0.1.tgz_1502897230682_0.41111254249699414"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"2.0.2":{"name":"resin-preload","version":"2.0.2","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"bluebird":"^3.5.0","dockerode":"^2.5.0","lodash":"^4.17.4","request-promise":"^4.2.1","resin-cli-form":"^1.4.1","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","resin-sdk-preconfigured":"^6.4.1","stream-to-promise":"^2.2.0","tar-stream":"^1.5.4","tmp":"0.0.33"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"173663610cea1c8bc5f6cfbb57e685eed895571e","_id":"resin-preload@2.0.2","_shasum":"ac463e14ffd5d429fa75f8a85eb65972d89b8e50","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"ac463e14ffd5d429fa75f8a85eb65972d89b8e50","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-2.0.2.tgz","integrity":"sha512-FKLY50H5wBlP7i5oHNZJLsquE3bFVAWivUm9pnq0WFacM3sQABtPkTE+epQFGUiBtoeJCTpALhY/urVaS5MGGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGoXvmu+/saN99NTTc58InwmErR5mEDVsl+CS37ksgWTAiB/6ct6lABl/iUxgS26GZkjjJiMSTeigAJ2Oj6OdSfaNw=="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-2.0.2.tgz_1503076310572_0.8717851117253304"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"2.0.3":{"name":"resin-preload","version":"2.0.3","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"bluebird":"^3.5.0","dockerode":"^2.5.0","lodash":"^4.17.4","request-promise":"^4.2.1","resin-cli-form":"^1.4.1","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","resin-sdk-preconfigured":"^6.4.1","stream-to-promise":"^2.2.0","tar-stream":"^1.5.4","tmp":"0.0.33"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"2c5e234da30d7d0ea75175a0587b040f9fecf2d1","_id":"resin-preload@2.0.3","_shasum":"90e85959ee88fb4b1fe112a906a54a0cb0c83cbe","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"90e85959ee88fb4b1fe112a906a54a0cb0c83cbe","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-2.0.3.tgz","integrity":"sha512-Z/eAcQUjZMEbPBQJM8RX4RQ4SZGY9GO2SCWSHsGoaMj58eyb51ZMNX3Lc9mjOy9TBiU/3jGDnznHD5jH1dfykw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFhYYvuC797VPeNdCEGo/3qz7XnHA//d6csT3cxlrd/AIgKPGMMriFWYRK1QwINUOt1UnjunSL4rpfvE9yzk/J4aY="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-2.0.3.tgz_1503318634206_0.8082039554137737"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"3.0.0":{"name":"resin-preload","version":"3.0.0","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"bluebird":"^3.5.0","dockerode":"^2.5.0","lodash":"^4.17.4","request-promise":"^4.2.1","resin-cli-form":"^1.4.1","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","resin-sdk-preconfigured":"^6.4.1","stream-to-promise":"^2.2.0","tar-stream":"^1.5.4","tmp":"0.0.33"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"b3f7311aa58119c9de9d54c2c50889148fa0a225","_id":"resin-preload@3.0.0","_shasum":"b11af4bf5c0caaeef7c48a0b67a34e195667dba6","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"b11af4bf5c0caaeef7c48a0b67a34e195667dba6","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-3.0.0.tgz","integrity":"sha512-5/fvF1qZdevnBDynvLdeRWmSXLWSdcy0QrnOIUzyrMAXDVEuaTFo+1RD+QdAleUm1QHs3gP31YQtJSWCOEYk2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG+RGDLbg7//SPxwV2/qa8UgLGaZWAmEmROgRCqMwkKNAiASXebzLXiSx+240WRxWJkfCcrJF08aDq4Ux0pD7Wj+aA=="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-3.0.0.tgz_1503335947441_0.6421851345803589"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"3.1.0":{"name":"resin-preload","version":"3.1.0","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"bluebird":"^3.5.0","dockerode":"^2.5.0","lodash":"^4.17.4","request-promise":"^4.2.1","resin-cli-form":"^1.4.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","resin-sdk-preconfigured":"^6.4.1","stream-to-promise":"^2.2.0","tar-stream":"^1.5.4","tmp":"0.0.33"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"96910e8cbbe5679eb373b667c7607ac7409c9a12","_id":"resin-preload@3.1.0","_shasum":"31d3975678430615a074aa8b324c70ec8a5c6b56","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"31d3975678430615a074aa8b324c70ec8a5c6b56","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-3.1.0.tgz","integrity":"sha512-DglUZG/dFVfFvV4TXz2GM7Vj5ci6wMtwmouLxQAWGmk3fmiJtEUOl1ga/QGXZMGij8J0w/R8Fo8zmkFc2Vmy3w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+4Eqf2b3m+V5Gtvrg5u2z+h/ahJgaTm88wAISK/I/SgIhAN+Vl4W5G7S/ZanW56PB7wjpa9GsJieF5Oy7L5kHzay0"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-3.1.0.tgz_1503419575226_0.6454172355588526"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"3.1.1":{"name":"resin-preload","version":"3.1.1","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"bluebird":"^3.5.0","dockerode":"^2.5.0","lodash":"^4.17.4","request-promise":"^4.2.1","resin-cli-form":"^1.4.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","resin-sdk-preconfigured":"^6.4.1","stream-to-promise":"^2.2.0","tar-stream":"^1.5.4","tmp":"0.0.33"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"0295754c5b6c7eb53531c3be3f80ff0102fbf75f","_id":"resin-preload@3.1.1","_shasum":"c333712c9d3704d4d4711ac8aabbddf643bbf9cc","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"c333712c9d3704d4d4711ac8aabbddf643bbf9cc","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-3.1.1.tgz","integrity":"sha512-HQONXpsczVaGI3n7cQ0IzEvCzbH5DVMlSYFichBAahBrWU/8rYC79V4sCrzFLH+8+TvPm4YaAWFBlvsBBrIpEA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvCcvEHIVTZ2j2hFrmdqOrhODC7nYJmIDuPcrTPTL69QIhANw8/1eubXOAb3Fs3ntYd+II0AhEZbwXi0pRJZ6fnzEU"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-3.1.1.tgz_1503570670993_0.907707815989852"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"3.1.2":{"name":"resin-preload","version":"3.1.2","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"bluebird":"^3.5.0","dockerode":"^2.5.0","lodash":"^4.17.4","request-promise":"^4.2.1","resin-cli-form":"^1.4.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","resin-sdk-preconfigured":"^6.4.1","stream-to-promise":"^2.2.0","tar-stream":"^1.5.4","tmp":"0.0.33"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"57727f0daf8e4f1b4920fa96505ff0787ec266a2","_id":"resin-preload@3.1.2","_shasum":"6733bb0a20db880cd04f02213b106f576a7cb9de","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"6733bb0a20db880cd04f02213b106f576a7cb9de","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-3.1.2.tgz","integrity":"sha512-jLYnhV61Pv2StiG+v6e+r4vr+8g1Qpvdgvoqv3u7US4oZcQ0t7zwvjM61JK1kjflPJtZQASJ7GOMs764X58n8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1DNDh5ztmLkl4XOUHLVMjibiLiVUGtB0fWzIzWDIvSwIhAO76ituOHSznDU/TqUjrIi/DK8j7O3AIg4t6B4lq5nau"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-3.1.2.tgz_1503655504156_0.7882366487756371"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"3.1.4":{"name":"resin-preload","version":"3.1.4","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"bluebird":"^3.5.0","dockerode":"^2.5.0","lodash":"^4.17.4","request-promise":"^4.2.1","resin-cli-form":"^1.4.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","resin-sdk-preconfigured":"^6.4.1","stream-to-promise":"^2.2.0","tar-stream":"^1.5.4","tmp":"0.0.33"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"66dfa271c94fe38153a47422afaa3bffa1ef18ef","_id":"resin-preload@3.1.4","_shasum":"b89aaf2a2a67c8fd921bdbd5bbd77511f59ac28e","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"b89aaf2a2a67c8fd921bdbd5bbd77511f59ac28e","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-3.1.4.tgz","integrity":"sha512-c4Lu4pCXY79H0x+gPgZ/o/4qiIMxeUSUTr86hWNcXS0mlwlXiTZ4R85aFoLxg/PsPqDzA5UnLEUE3QHce0oaUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYynqHASECx4d5hq/U16APEp1DKx7emThlpgKO+zqlWQIhALg8K/ibXSlZ3X737WyGEPjZxmUH0E8hkm28uUkIllJG"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-3.1.4.tgz_1503665819924_0.7936503256205469"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"3.1.5":{"name":"resin-preload","version":"3.1.5","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"bluebird":"^3.5.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-port":"^3.2.0","lodash":"^4.17.4","request-promise":"^4.2.1","resin-cli-form":"^1.4.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","resin-sdk-preconfigured":"^6.4.1","stream-to-promise":"^2.2.0","tar-stream":"^1.5.4","tmp":"0.0.33"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"3c68e5af8aa02969c8ba9933ca138cfbedc740ae","_id":"resin-preload@3.1.5","_shasum":"daafb723bc4188639ed06e8d63a8a9f40b19dd52","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"daafb723bc4188639ed06e8d63a8a9f40b19dd52","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-3.1.5.tgz","integrity":"sha512-pR2FgDWfRthh7r/5o6xGOJSjUGn2moAtOL9qHrKlbTtKBgtjmc5NENjeNzSauJLfCZxWHW3z1LWCmuFqqa2Dwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCX33n2OvgmJq1s8YfKwDlLdLjsk1pRpqaRtfI75pwyJwIgYJ+u0mVUfd/MIKxUADBWx84Ym2y2tBZaSKx7kvycgTc="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-3.1.5.tgz_1504173532338_0.5073276672046632"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"3.1.6":{"name":"resin-preload","version":"3.1.6","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"bluebird":"^3.5.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-port":"^3.2.0","lodash":"^4.17.4","request-promise":"^4.2.1","resin-cli-form":"^1.4.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","resin-sdk-preconfigured":"^6.4.1","stream-to-promise":"^2.2.0","tar-stream":"^1.5.4","tmp":"0.0.33"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"0e6eb9391da5c0838ad9e0076021d4675e08281d","_id":"resin-preload@3.1.6","_shasum":"7d8177a153faa7d2a47234641e8aaa5aa9086088","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"7d8177a153faa7d2a47234641e8aaa5aa9086088","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-3.1.6.tgz","integrity":"sha512-LZe+Gh9SLUN4eYiPfc76d/DY5XJ1drXltjh9OexRTt+vZXRa7LXhtwddd9PKUFfFp538dkYY8dE+oW+TPuMuMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAVdfZBY3/i3O+ZfQ1oVC9lnyn2D2Ne/w/SzDhd0FWdQIhAIL2eqibqFzGSkIopbaxuXvpSUek2siEc3y3aCTHjppw"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-3.1.6.tgz_1504175860516_0.18429806479252875"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"3.1.7":{"name":"resin-preload","version":"3.1.7","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"bluebird":"^3.5.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-port":"^3.2.0","lodash":"^4.17.4","request-promise":"^4.2.1","resin-cli-form":"^1.4.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","resin-sdk-preconfigured":"^6.4.1","stream-to-promise":"^2.2.0","tar-stream":"^1.5.4","tmp":"0.0.33"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"32105349ce370db56f1081ae13fd70f7e8a34a11","_id":"resin-preload@3.1.7","_shasum":"82b7d58d9ba66018a365a90740a0e13f1c819fe7","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"82b7d58d9ba66018a365a90740a0e13f1c819fe7","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-3.1.7.tgz","integrity":"sha512-ZsyV01BjOGao+pJoD1VErhI16EdBCrebiYhcoU0/XbuoDndy0YwKppECO0RQ9RJbdqYVd3HeXpufouWpzIkRSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQDUXb816ap5S1ysB0DvD/EiTlYLzP69v0XhRRuJDJOJSgIfal8lo/t+N1WRvnbAKnm71ZDlCFIB9agom4Cp2Dd16w=="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-3.1.7.tgz_1504603275642_0.5517757986672223"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"3.1.8":{"name":"resin-preload","version":"3.1.8","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"bluebird":"^3.5.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-port":"^3.2.0","lodash":"^4.17.4","request-promise":"^4.2.1","resin-cli-form":"^1.4.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","resin-sdk-preconfigured":"^6.4.1","stream-to-promise":"^2.2.0","tar-stream":"^1.5.4","tmp":"0.0.33"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"baa6b423a159e832123d54bc9b704e4fba28f589","_id":"resin-preload@3.1.8","_npmVersion":"5.4.2","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-/V22yGFFT0FwNb3IJ0tBZyGmuX+TXO5aHcDvv3Xo+wBee+O2iucUj1BLRRkrZ3NmAwFDSLNsw3zsH5FTMvFnFw==","shasum":"ec41314eb8543d052d1c7530fd9a2c9abb57392d","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-3.1.8.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8DY9S1sPApb3Vo0T3Asb0L1EuXmJmNpoRvCYWkL/huQIhAIotMrvDmtpa67s9NuXRbhxJK4hHcf8JANbpqWsxGYt0"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-3.1.8.tgz_1506593845743_0.4315272883977741"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"3.1.9":{"name":"resin-preload","version":"3.1.9","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"bluebird":"^3.5.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-port":"^3.2.0","lodash":"^4.17.4","request-promise":"^4.2.1","resin-cli-form":"^1.4.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","resin-sdk-preconfigured":"^6.4.1","stream-to-promise":"^2.2.0","tar-stream":"^1.5.4","tmp":"0.0.33"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"95f016e1880e4b3fefce0da8cced61347037a282","_id":"resin-preload@3.1.9","_shasum":"54401995e8ccd4d1141a2dc19ad88bde200df437","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.4","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"54401995e8ccd4d1141a2dc19ad88bde200df437","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-3.1.9.tgz","integrity":"sha512-FOTsy5XoT6lLYOPiux6IwNbeBUhZo0OaZhodK+52SAu6LoOhQpSA+cIyvNczlkB1sUKWsMn2BTSx+BOa3Fmzog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYf/M1Bybz7g8CBd3F0l/hBT3MhJ97hM+6uLZ0LRH7QgIgPctQg7HcfPPMs1dr3+G01RCNt20Vgh3Ih+4xetI60TQ="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-3.1.9.tgz_1507289948325_0.23976783198304474"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"4.0.0":{"name":"resin-preload","version":"4.0.0","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","request":"^2.83.0","request-promise":"^4.2.1","resin-cli-form":"^1.4.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"c680f3aa19425069560015ca941dd90b71acad05","_id":"resin-preload@4.0.0","_shasum":"97d6dc8c81c831f4a5240b4ea007700028a62fa7","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.4","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"97d6dc8c81c831f4a5240b4ea007700028a62fa7","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-4.0.0.tgz","integrity":"sha512-Mp0/kbHCssvfTTMV35IqKd4YW0/Xfzdwj6qAsVbYMUrnbPmAxD7mrss9I6JiUd6XPJk2ENjBBDmRZAAB7wLS8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnD1PhOzBoCJOfYwPtnBud+TIuIGeLKSTWzxLV97u8tgIhANQFTK2KiZsAq666v8i0yNfnNwXRbR9J+9cT+vACRM/l"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-4.0.0.tgz_1507892661920_0.9220185782760382"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"4.0.1":{"name":"resin-preload","version":"4.0.1","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","request":"^2.83.0","request-promise":"^4.2.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"7f952d16c014f1cc8d910e8a9d9214e8e0fe09ab","_id":"resin-preload@4.0.1","_shasum":"a30c15ac18083faf608454d61b7e15c87b33314c","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.4","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"a30c15ac18083faf608454d61b7e15c87b33314c","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-4.0.1.tgz","integrity":"sha512-brmIxKKPolbVygTnkFI7L3hn+BxkVIsYJNg9TjpVKtLhbLaWh28GiTLPpk7TDu7uGBt0S4qw4yAezeFws1O6Og==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmqGdgqQT5bM+gDw4e97azfjj6ZFWRMyp8pLeTvy/htwIhAOGMUGD6ulQk6tit5YdadIGk0vdJl1AG2Rvz0EAsG1J5"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-4.0.1.tgz_1507910910587_0.44770342274568975"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"4.0.2":{"name":"resin-preload","version":"4.0.2","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","request":"^2.83.0","request-promise":"^4.2.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"ce5e6b232bb4a7b8629bd37cacaacfb2b7c8edf8","_id":"resin-preload@4.0.2","_shasum":"53a526f6600f99436ea811ea27dac8227f5771ce","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.4","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"53a526f6600f99436ea811ea27dac8227f5771ce","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-4.0.2.tgz","integrity":"sha512-W5YwHIL0F7fY5WcmdORTr/Ac0NSPQJl/6Wwzi86NYixqcQQm0tJ+ngdknve71VRvDmIkvBxTcysIkxy/h53zSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH7obZYVWUwUETHFYROgnfr8QHRB89R4HowERE84Xgg6AiA0ukxKylxijGRVTd2pofk4ieOYkICs97MgkvXqhAPClQ=="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-4.0.2.tgz_1508151449935_0.938157788477838"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"4.0.3":{"name":"resin-preload","version":"4.0.3","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","request":"^2.83.0","request-promise":"^4.2.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"33c0bb9a3edf99c3e1440fe13215e52e9654bdfa","_id":"resin-preload@4.0.3","_shasum":"faaabf0b5ef9e59b6f7578dc2c2fa93974bc7a04","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.4","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"faaabf0b5ef9e59b6f7578dc2c2fa93974bc7a04","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-4.0.3.tgz","integrity":"sha512-ajcA3TLmUJGqxqxSR4msN/hDfytt0SlMYhDJpwr2xzJIyaMzeKtJDibqiIFLYdd17JEkYIH8KXa2TuYy1EP5qw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsSwiZuIuYHxQWub41ICddRxAq2UGTDKSmFOSvUt7NWgIgZgXUhE93/XMmr5dAJ3P7w6QCLMpPZbmjCweS58uMNlc="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-4.0.3.tgz_1508318169625_0.6597483560908586"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"4.0.4":{"name":"resin-preload","version":"4.0.4","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","request":"^2.83.0","request-promise":"^4.2.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"c680c8f8f9b5cf61fd7a06f86101bd38fd3062e4","_id":"resin-preload@4.0.4","_shasum":"a73a80e03062b92522b72e75d91a052baf1e1616","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.4","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"a73a80e03062b92522b72e75d91a052baf1e1616","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-4.0.4.tgz","integrity":"sha512-n0joTyy95A9zjo/mBT/LnLeKkl9TLeCKHszlYECQnj0wTN8KBWRHxKQ+rNl1w1wniI7YCym+eAt2AeMcD3YhKA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIekmVAzucxKoK1vgPD2Zah5R1Fj8/wUPsdsrpbuczDAIgAIkE1LKQigGaee+HFKMo8TVLPyB8cBDSY4bLFk1UgG4="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-4.0.4.tgz_1508356726256_0.9713392255362123"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"4.0.6":{"name":"resin-preload","version":"4.0.6","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","request":"^2.83.0","request-promise":"^4.2.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"91ca6c403d2eb1303d84ac74b23e8fdfa2b80639","_id":"resin-preload@4.0.6","_shasum":"bd5ba492262eaf12a0acba46f839d96d11049d89","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.4","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"bd5ba492262eaf12a0acba46f839d96d11049d89","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-4.0.6.tgz","integrity":"sha512-hnEiKVv8+SC/Pj35N3rlOJkyXegdUDBOCN3zoccnd/KUAlv3XSq9K272Y1mALgrAGE5V8h5RBhkJKqTl13CofQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDI9uvMn/j4ItwFQrbBsJ/E9uYoszbamdLtNX8fc2ShBAIhAM4osY78ZgqV/5xI2Un45NQLFMGzOdCSDXpP9d9qU4/K"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-4.0.6.tgz_1508499007751_0.03299976675771177"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"4.0.7":{"name":"resin-preload","version":"4.0.7","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","request":"^2.83.0","request-promise":"^4.2.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"c6d0bb18d185296dbb1e7e36e1f8974130545a87","_id":"resin-preload@4.0.7","_shasum":"3922d163681ddd21ca232b17d4c33e1b3c4e85bb","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.4","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"3922d163681ddd21ca232b17d4c33e1b3c4e85bb","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-4.0.7.tgz","integrity":"sha512-EDZZCOi9x/0Z+4Gy56rMyqdjIHnq8kW/XDyOeYttBLKXw9FK/CDcgkSKu0S/4wEjOFgX2t8uOzz+QC784Y3pQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC2bz/ohQKL/bhfDH89s/wXhOOWmg3gKu+SOMWXl+rBhAiAI1RlQa086A0/rnMmV2cW8dl/M1KZsZ+QYKG5vkTFKaQ=="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-4.0.7.tgz_1508841639639_0.6700271863956004"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"4.0.8":{"name":"resin-preload","version":"4.0.8","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","request":"^2.83.0","request-promise":"^4.2.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"f2733c4a4137e4a18d54b530cc1c8d9b99e2d5d2","_id":"resin-preload@4.0.8","_npmVersion":"5.5.1","_nodeVersion":"6.11.4","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-L+96SwpgnguPjZ9u8K/VMIsdAgNSI0KDFrqJ3OSXfMTzob8i9tfGoqI1pnPLmaXoZCiNZuVWvspfMLl7E5oT1g==","shasum":"df81970d957e55363d2f1cdb884afb155d4a6340","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-4.0.8.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD66Jt007+NXgpAo2D7KzUy93bV+RweoRWGt0mEn1xyJAIhAKT0Bp8pIf0KwXPQSUJ9S02VKsM63EGLQdEGlkTBUm8k"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-4.0.8.tgz_1508877291169_0.8237073908094317"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"4.0.9":{"name":"resin-preload","version":"4.0.9","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","request":"^2.83.0","request-promise":"^4.2.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"ed951a9528ff4966a52afdd8312dd45ca661ade0","_id":"resin-preload@4.0.9","_npmVersion":"5.5.1","_nodeVersion":"6.11.4","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-eAvFAOn2gnWGyvN11T2pzhT3biSFU+0+WWhAq18unewOdzx9U/PdfElHCOyDmXKOc4eSWBgQqSkH8Fs7V7r0Ug==","shasum":"470b3eef95d9343938eab79bab343eb0a17e9a44","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-4.0.9.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH25vcsc2K+VA7NgB4VlxlR1GjPGTAxkl44+r/Euq005AiAFs6xM/mCzXwg1y+rKzOUgI7Cqt5vWskPN+gEDZ/Joig=="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-4.0.9.tgz_1508926120743_0.4658077557105571"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"5.0.0":{"name":"resin-preload","version":"5.0.0","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","request":"^2.83.0","request-promise":"^4.2.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"c357ae6855c8286e807a4abbfbb61a7c5a9834e1","_id":"resin-preload@5.0.0","_npmVersion":"5.5.1","_nodeVersion":"6.11.4","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-UUQWfNx+nCbcdZ5u61BdkYm4/sGgQ1B5ZFBj4ta4IzTUWHu/DsZhhinij3k0MvFdvbEl9p4XdmWjKDoxZNua8Q==","shasum":"4593930cc69c50a36881dc5ceb2c099a0b7c43fe","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-5.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzl3n/EUFXNsDj2B/VLQjDLHVnDvuulRNFEDb5cQdQfAIgU03X11JHMco4ujfzqr20T8s11D7jRg2NOccc+C4znnw="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-5.0.0.tgz_1509096764624_0.8691419006790966"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"5.0.1":{"name":"resin-preload","version":"5.0.1","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","request":"^2.83.0","request-promise":"^4.2.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"755a9e0ca53c04883be39ab9a52a29de270e2f41","_id":"resin-preload@5.0.1","_npmVersion":"5.5.1","_nodeVersion":"6.11.4","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-uiQWsh4rmOdOSCG0lWWM30WVC3q5q/2ejw+oJ2V9mkuj8jOzKaNCsFhEqjxLb3rmV365fcP7IN7JDcvgatIgkQ==","shasum":"508432aecda5e25800066487ebe1e0605528cdaf","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-5.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6aYcZS7acheRnk8WWfAYoekCqMzfvNcTom7nm6yIROgIgLL6x9IGCJNLWkZPY2jvC0gTYj3Bn5xlwFU/o3p7uIAg="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-5.0.1.tgz_1510171187500_0.9064669369254261"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"5.0.2":{"name":"resin-preload","version":"5.0.2","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","request":"^2.83.0","request-promise":"^4.2.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"f7056da354a66fb2fc5361213ab334efd2f3ac76","_id":"resin-preload@5.0.2","_npmVersion":"5.5.1","_nodeVersion":"6.11.4","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-OIWUfdlf6fk6zcDHqeeU9Phjk3COksvHjN1lAupfs3aPWBOREreS086CH61QiwuBWAyVmjJHC5u5QHE4/RgROQ==","shasum":"ae5cc278736298d6e877831741c350939fb6ba82","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-5.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEJkqGEsMYIyqb9lKpNC5Zn+DEibRZgyghrk+x6HHMHFAiBBvRGG+EgdUUDqMgxspRgTQVU4YVDNPsPQvfQSf25A2A=="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-5.0.2.tgz_1510867402084_0.1437420784495771"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"5.0.3":{"name":"resin-preload","version":"5.0.3","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","request":"^2.83.0","request-promise":"^4.2.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"aa0cbcd7c132ca6e3c8e5672464d140031c76a49","_id":"resin-preload@5.0.3","_npmVersion":"5.5.1","_nodeVersion":"6.11.4","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-iHtHwyS1s+L8tYAGJTx6Q+zgsLe+2FQ60OY2TaI4mxoXy0qdvMVUZ/GyqTBvxi1/dnnRTGKSwj2dRGn0JvckSg==","shasum":"30fb7e7b6d8ab2537941510f71b6e92ee9c0a04d","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-5.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG2NKLTAgsqGsAX4T8kvyHzNg31oXCinFFcG2wb4QCE2AiEA8r7a/5/u4LUZbC/DQOlEoT7RTW4SIwIIqjEmOGTPZwI="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-5.0.3.tgz_1510870103171_0.8329962943680584"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"5.0.4":{"name":"resin-preload","version":"5.0.4","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","request":"^2.83.0","request-promise":"^4.2.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"72ebf3d236939c86aa49dc8bc0f8e3d22716aca6","_id":"resin-preload@5.0.4","_npmVersion":"5.5.1","_nodeVersion":"6.11.4","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-3ER+0yv0rpjoagXcx0ZubqYL3szvujzVoJQMbUr5B+txH+FouEE3tk1cLTBKSSW6fml4KxoXL7SbteBpk8l5Qw==","shasum":"f9f7add6b96900aa034c5eda07b2c01c5d6b70b7","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-5.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHyTnR37gtyfJYL5QzTIta9/TLr/frRAceIF9AROO2+vAiEAq0QQq4n6yivY73AB/+k6lK4M/leqbVyf9i52UXbq6pk="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-5.0.4.tgz_1510942657792_0.936699251877144"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"5.1.1":{"name":"resin-preload","version":"5.1.1","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","request":"^2.83.0","request-promise":"^4.2.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"937377c2d1983d2b3f4e8d22a22579ec60bb8f49","_id":"resin-preload@5.1.1","_npmVersion":"5.5.1","_nodeVersion":"6.11.4","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-neqhUxseHxErEAjvrqUD0RQKfxG59vaIyhEU80MXjiteAsXZEk/n+0xSx2C4yM7qIAsuFhLq1I/CFAAdpObIqQ==","shasum":"f2e08fe4a84ab2b3c080d2f0cb04bf9eb004b28a","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-5.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1gMZdperlwvxFkGRvANWgnAJce2c+OnHghnTcQyitEAIgKCj5wZAqtRkQe+3UscapMZjhulQEeKvTkbUQKc9pK5Y="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-5.1.1.tgz_1513092055620_0.17397485044784844"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"5.1.2":{"name":"resin-preload","version":"5.1.2","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","request":"^2.83.0","request-promise":"^4.2.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"60fb2869ef583aaea535ba119b4484cc178a0424","_id":"resin-preload@5.1.2","_shasum":"5e69ee4c195c62a6f9f856f3bd7c81e4c60fcf2e","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.9.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"5e69ee4c195c62a6f9f856f3bd7c81e4c60fcf2e","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-5.1.2.tgz","integrity":"sha512-WeZXm5YKCpNTDuDNqytvxEYymZtAqhCXwtqXHFZUSyyt/wgwuVzvQ8J/VcZ7OBVdjg3KY1y/NnPY5xSp2TPSDw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4O9ailbjER3LdFpBrDIe2Amn1psSrtyys1mp03luktAIgDuM8lI3my1owCRMtKoZ6PtZLPlPeUDxfMWQeUo6AOC0="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-5.1.2.tgz_1515758682057_0.1486109320539981"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"6.0.0-beta1":{"name":"resin-preload","version":"6.0.0-beta1","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"beta","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"682754ed64a345521ecb39c5f77a545fb3940bee","_id":"resin-preload@6.0.0-beta1","_shasum":"f8a1759892e2bb7771d8b4548111a552c669ed9c","_from":".","_npmVersion":"4.1.1","_nodeVersion":"8.9.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"f8a1759892e2bb7771d8b4548111a552c669ed9c","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.0.0-beta1.tgz","integrity":"sha512-EQ2bgZXl2iJInPtFHrQJZrXCshUtUcABJ1CsXd3Cpg+2WuTANTLhSMGXplEohA7c+dwBVu8L4w3wreMGyMo0Aw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBFq5pQKW+sQVJyNKaA5upc7W3WKC+8bxLi7q3DiggsvAiAh2OanEzwLDZpMhVsGMvJrHITpbSqbS+EpOgHzmIqvtw=="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-6.0.0-beta1.tgz_1516987353960_0.41783145535737276"},"directories":{}},"6.0.0-beta2":{"name":"resin-preload","version":"6.0.0-beta2","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"beta","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"b4080577b2987f2d71a2044daa4e97dad4e4767f","_id":"resin-preload@6.0.0-beta2","_shasum":"9df8a64caeadf01de9aaca3b4443f2a32306aacf","_from":".","_npmVersion":"4.1.1","_nodeVersion":"8.9.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"9df8a64caeadf01de9aaca3b4443f2a32306aacf","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.0.0-beta2.tgz","integrity":"sha512-LTLE7/KDNkNBPICgn68jmNW+SzWleZT+f6Yy0HS7OWCDUBHzRYUPhLi6nva0xAtI1SJrWu+5ISfxRnmJa7l7Og==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKg5EQdiSAD1VkiboAmTtGkEzr/ORN+X8+rnyDw9TfUgIhALu0J/90LqiJY9z9MvTzM8xLpEjNk3vVKF5O7ZGapL37"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-6.0.0-beta2.tgz_1517329695090_0.20963806146755815"},"directories":{}},"6.0.0-beta3":{"name":"resin-preload","version":"6.0.0-beta3","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"4f37d6e75467a44e27fe8333841e37da2f5d39c5","_id":"resin-preload@6.0.0-beta3","_shasum":"f27c8e0bd886e5589b1c041165bb4b641fe3a4ce","_from":".","_npmVersion":"4.1.1","_nodeVersion":"8.9.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"f27c8e0bd886e5589b1c041165bb4b641fe3a4ce","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.0.0-beta3.tgz","integrity":"sha512-4a6NdPQX/ALCWrs0NHVWUPCfW5OrIRH8eLqipuaoOj1+/Y0oNSCmScYUy19oYkE+AvzqjKBGiIuw+OFoCO/H5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwSgAwOTVPCl7L4ZJjsikeyyvDRg4eXPlr66WMfqslRAIhALkQh6E7fxCmh2hiwqMFBs4aQ3AbtnPfJBupndDvRhXK"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-6.0.0-beta3.tgz_1517343486528_0.8543555790092796"},"directories":{}},"6.0.0-beta4":{"name":"resin-preload","version":"6.0.0-beta4","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta7","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"4b36077f93303043812a1d315fde991c67900ff0","_id":"resin-preload@6.0.0-beta4","_shasum":"5191b3f626f27985e28508ecb25ef9a9940184e6","_from":".","_npmVersion":"4.1.1","_nodeVersion":"8.9.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"5191b3f626f27985e28508ecb25ef9a9940184e6","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.0.0-beta4.tgz","integrity":"sha512-4QzMPZGZKVcgzv9LOGVFwdzBs4z6cEh1nFScd2AbnoQVWGD6W2M7bc72oOmrG/MrmvqNO8YKL8c6xVXQrLnkXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA/rRDVfdIeQWRpwiXqjVvcEQ9hBG4znaZ7M+3OmsjkqAiAFDwgfiquRhRvks5W+DOpXBgFXdAJSqMVVGgPmumtOPg=="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-6.0.0-beta4.tgz_1517344395739_0.1835172779392451"},"directories":{}},"6.0.0-beta5":{"name":"resin-preload","version":"6.0.0-beta5","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta7","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"bc889517fc26da675c7986d6f1cc36698b1c3ff9","_id":"resin-preload@6.0.0-beta5","_shasum":"dc55aa5b621a005cd2fe0f47314674048a2c691b","_from":".","_npmVersion":"4.1.1","_nodeVersion":"8.9.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"dc55aa5b621a005cd2fe0f47314674048a2c691b","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.0.0-beta5.tgz","integrity":"sha512-eoI++JioXMI29iU5/pXvclHSBkR//gMpHCoD9ralmLHpSZywrebNxEHd5qern5agDfUqfww7CXcggNbu0L5poA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIApJ3jZO9VHcZ2sqdy2BvqY6F3A2PBZbCfOjxrtGsYa0AiBE6z8gc+0i2+z+lI25x+8WQhvYWpaRUCZJQdRTU21yYQ=="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-6.0.0-beta5.tgz_1517856003042_0.5649311800953001"},"directories":{}},"5.2.0":{"name":"resin-preload","version":"5.2.0","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","request":"^2.83.0","request-promise":"^4.2.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"9fb06ea07cee9d6454335f0f0c10a2b97431f311","_id":"resin-preload@5.2.0","_shasum":"8c16b2ebfe4b997feaaa015b36f4229bb92aca12","_from":".","_npmVersion":"4.1.1","_nodeVersion":"8.9.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"8c16b2ebfe4b997feaaa015b36f4229bb92aca12","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-5.2.0.tgz","integrity":"sha512-5U3ZT8HKKeIQxMkf+97kkRuNYYZfovrq96wrHHNCMJ+rZSzlyYc5PJRyzwckWibM1rij6ll53kcUcDnipxGExw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiWI6xZXP0XFISJLqJLPTti9rXfI08ce8Yw41X4UJ1XwIhANucaoAfoGYe4bPG1jPAejcjIkjm74VD5alhs9laHris"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-5.2.0.tgz_1517928813963_0.16117860097438097"},"directories":{},"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"6.0.0-beta6":{"name":"resin-preload","version":"6.0.0-beta6","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta7","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"c5bbb0134efd6a36e20ffbcde7d85e4678460bef","_id":"resin-preload@6.0.0-beta6","_shasum":"9dd400b85fa04d0e381a4b2ab44d2cf8062a927c","_from":".","_npmVersion":"4.1.1","_nodeVersion":"8.9.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"9dd400b85fa04d0e381a4b2ab44d2cf8062a927c","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.0.0-beta6.tgz","integrity":"sha512-gcZcikk9nvn7tOnUSs6xDm24S42Atp/uGzIBgWsq0IoTTTK5LyL481KszyvaLgzOuZWZa0ACRzElBGav7okU3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFl1mNa34np2WoYBdN/N8fzXrogOvdjhO4P2N9NRC7tAIhANP56BD9PdTIMhca+uxSR2uqCg7LSnAnLcXGHt8UTFGh"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload-6.0.0-beta6.tgz_1517935231925_0.9518002714030445"},"directories":{}},"5.2.1":{"name":"resin-preload","version":"5.2.1","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","request":"^2.83.0","request-promise":"^4.2.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"554e054a4a01feaf77223068a3c9b399b25aae99","_id":"resin-preload@5.2.1","_shasum":"d5ee21ff014530f4b12ebcfd074b138ba005bb68","_from":".","_npmVersion":"4.1.1","_nodeVersion":"8.9.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"d5ee21ff014530f4b12ebcfd074b138ba005bb68","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-5.2.1.tgz","fileCount":10,"unpackedSize":84811,"integrity":"sha512-FLQ5s3k5zh1/xRjaIk3iwTKWMqL40IoZ0yKEy4QI7Hcy6xycqEqE5EFxFc8dD/Ja6SkoUd2E7MxWoeG8ngn+qA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClJunr5TMO/tJspjcSOVNrVTChO/2z1bM5Mbxd5dv5KAIgDR4RHntS7GxF9BPJxSfKfczG/W8iSjvgkp62pNf2cTU="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_5.2.1_1519318353860_0.41820677791085425"},"_hasShrinkwrap":false,"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"6.0.0-beta7":{"name":"resin-preload","version":"6.0.0-beta7","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta7","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"readme":"# resin-preload\n[![npm](https://img.shields.io/npm/v/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm license](https://img.shields.io/npm/l/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm downloads](https://img.shields.io/npm/dm/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n\nScript for preloading resin.io OS images (`.img`) with a user application container.\n\nUsing this will allow images with supervisor version above 1.0.0 to run the user application without connectivity, and without the need to download the container.\n\n## Warning\n\nIn order to preload images that use the overlay2 Docker storage driver (like\nnvidia jetson tx2 for example), you need to load the `overlay` Linux module:\n\n```sh\nsudo modprobe overlay\n```\n\nFor other images you will need to have the `aufs` module loaded.\n\n\n## Deprecation\n\nThe standalone mode described below (resin-preload) is now deprecated.\nIt will be removed in a future release.\nYou should use [resin-cli](https://www.npmjs.com/package/resin-cli) instead.\n\nInstall [resin-cli](https://www.npmjs.com/package/resin-cli) and run\n`resin help preload`.\n\n\n## Install via [npm](https://npmjs.com)\n\n```sh\n$ npm install --global resin-preload\n```\n\n<!-- MarkdownTOC -->\n\n- [Requirements](#requirements)\n- [Command Line Usage](#command-line-usage)\n    - [Example](#example)\n    - [Additional Options](#additional-options)\n    - [Custom Splash Screen](#custom-splash-screen)\n- [Module usage](#module-usage)\n- [Contributing](#contributing)\n- [Known Issues](#known-issues)\n    - [Speed Issues For Flasher Images on macOS](#speed-issues-for-flasher-images-on-macos)\n    - [Version Compatibility](#version-compatibility)\n    - [BTRFS Support](#btrfs-support)\n\n<!-- /MarkdownTOC -->\n\n\n## Requirements\n\n- [Node](https://nodejs.org)\n- [Docker](https://www.docker.com) tested on 1.12.6 and up but 17.04 or up is recommended especially on macOS, [docker-toolbox](https://www.docker.com/products/docker-toolbox) is not supported.\nOlder versions of resin-preload do support docker-toolbox, see [Version Compatibility](#version-compatibility) below.\n\n## Command Line Usage\n\n```\nUsage: resin-preload [options]\n\nOptions:\n\n  --app            Application ID (required)\n  --img            Disk image (or Edison zip file) to preload into (required)\n  --api-token      API token (required, or api-key)\n  --api-key        API key (required, or api-token)\n  --commit         App commit to be preloaded (default: latest)\n  --api-host       API host (default: \"https://api.resin.io\", the TLD will also be used for registry2 requests)\n  --splash-image   PNG Image for custom splash screen\n\n  --dont-check-device-type          Disables check for matching device types in image and application\n\n  --help, -h       Display resin-preload usage\n  --version, -v    Display resin-preload version\n\nEnvironment variables:\n\n  The following option flags can also be set\n  via the corresponding environment variables:\n\n  --app                               APP_ID\n  --img                               IMAGE\n  --api-token                         API_TOKEN\n  --api-key                           API_KEY\n  --commit                            COMMIT\n  --api-host                          API_HOST\n  --splash-image                      SPLASH_IMAGE\n  --dont-check-device-type            DONT_CHECK_DEVICE_TYPE\n\nExample:\n\n  resin-preload --app 123456 --api-token \"xxxx...\" --img /path/to/resin-os.img\n\n```\n\nIf using environment variables, this program requires the following options to be set:\n\n  * `IMAGE`: The path to the OS image you downloaded for the `APP_ID` you want to target.\n  * `APP_ID`: ID of the App that will be assigned to the device. It can be extracted from the URL in the Resin dashboard,\n     for instance `https://dashboard.resin.io/apps/2167` means the `APP_ID` is `2167`.\n  * `API_TOKEN`: Authentication token for Resin, taken from the [preferences page](https://dashboard.resin.io/preferences/details). \n\n\n### Example\n\n**NOTE:** Before running the example below, make sure that you have successfully pushed to the app and\nthat the `Application commit` is the correct version of the code you intend to preload.\n\nDownload an OS image from the Resin dashboard and then run:\n\n1) Using option flags for configuration:\n\n```bash\n$ resin-preload --app 123456 --api-token \"XXX...\" --img /path/to/resin.img\n```\n\n2) Using environment variables for configuration:\n\n```bash\n# Set the environment variables\n$ export API_TOKEN=... # copy from dashboard preferences\n$ export APP_ID=... # id of your application (you can see it on dashboard URL when you visit your app page)\n$ export IMAGE=/path/to/resin.img\n\n# As all required options have been set via environment variables,\n# there's no need to pass any options, just run\n$ resin-preload\n```\n\nThe `/path/to/resin.img` file, will now have the latest version of your application preloaded.\n\n### Additional Options\n\n* Alternatively to `API_TOKEN`, you can use an `API_KEY` variable with an API key from a config.json file or the [SDK](https://github.com/resin-io/resin-sdk/blob/master/DOCUMENTATION.md#resin.models.application.getApiKey).\n* `API_HOST`: Address of the Resin API. If unsure, use `https://api.resin.io`.\n* `SPLASH_IMAGE`: Path to a custom splash image, to copy into the preloaded OS image\n\n### Custom Splash Screen\n\nAt this time, the custom splash screen image needs to be a PNG.\nFor more details on splash images, see:\n  - [The Resin.io Notes – What are we working on / Revamping Splash Screens](https://forums.resin.io/t/what-are-we-working-on-the-resin-io-notes/414/7)\n  - [Documenting the custom boot splash screen](https://github.com/resin-io/docs/issues/155)\n  - [resin-io/resin-plugin-img](https://github.com/resin-io/resin-plugin-img)\n\n## Module usage\n\nPlease check bin/resin-preload\n\n## Contributing\n\n### Install from github\n\n * Clone this repo: `git clone git@github.com:resin-io/resin-preload.git`\n * Change directory: `cd resin-preload`\n * Install dependencies: `npm i`\n * Run resin-preload: `./bin/resin-preload`\n\n### Issues\n\n If you encounter any problem, you can [open an issue](https://github.com/resin-io/resin-preload/issues)\n\n## Known Issues\n\n### Speed Issues For Flasher Images on macOS\n\nDocker on macOS has [some speed issues with volumes](https://github.com/docker/for-mac/issues/77).\nThis makes this script slow, especially with Flasher Images.\n\n### Version Compatibility\n\nThis version will only work for Resin OS versions 1.2 and later.\nFor versions earlier than 1.2 you will need to checkout commit `5d6d4607bffc98acdf649ce5328e2079dfb9c3d9` of this repo and then follow the steps below. \n\n### BTRFS Support\n\nSince Docker for Mac removed support for the BTRFS storage driver (see [docker/for-mac/issues/388](https://github.com/docker/for-mac/issues/388)), preloading images prior to Resin OS 2.0 will require the older [Docker toolbox](https://docs.docker.com/toolbox/toolbox_install_mac/) setup with [VirtualBox](https://www.virtualbox.org/) to function properly.\n","readmeFilename":"README.md","gitHead":"b3819646036b476d7323873bed86470f4aeb7754","_id":"resin-preload@6.0.0-beta7","_shasum":"68728167622b1bce7b4140fba71ebd2f10ecbaf2","_from":".","_npmVersion":"4.1.1","_nodeVersion":"8.9.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"68728167622b1bce7b4140fba71ebd2f10ecbaf2","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.0.0-beta7.tgz","fileCount":10,"unpackedSize":85924,"integrity":"sha512-NcOIWDgFVpP5b2LNKRoh5qgI1wi6uwXENPILNkbncdVt5zQhykP4hliYgBC5qBsxG8TwxM6wQGmrPTMbVbeHhw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsPTiEdTmzJ+Mk4k/UdxcmVdPoM8FH/emtoJaq8aqkDwIgEcGhDlpgPFP/1KxO9VUfaLUvvEVJQnxg+JzvC5wQyhE="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_6.0.0-beta7_1519318552553_0.49365452225260653"},"_hasShrinkwrap":false},"5.2.2":{"name":"resin-preload","version":"5.2.2","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^2.6.3","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","request":"^2.83.0","request-promise":"^4.2.1","resin-cli-visuals":"^1.4.0","resin-errors":"^2.8.0","resin-sdk":"^6.8.0","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"d50804c6bbd3168e7066bada5a688a63d5cdaaa4","_id":"resin-preload@5.2.2","_shasum":"0cc923388d1646923b6d626f885b2e2e2eb216a3","_from":".","_npmVersion":"4.1.1","_nodeVersion":"8.9.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"0cc923388d1646923b6d626f885b2e2e2eb216a3","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-5.2.2.tgz","fileCount":10,"unpackedSize":85349,"integrity":"sha512-1igIwKWctxB9GXS/mqgvMT8n9dIT/9S+XC8BzUEjcevZpni38swmgoegLEJOkwAw5V0RofafUT1XkGee+fXfkA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcU8WldQpT4xm9uhjQO7oqu7J0GpbPFE04Ypqazv54IAIgFCmyg1Ti0uqiT4x1Ui3NimO5F9S+W9Cqb9dkw2kcPtw="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_5.2.2_1519820994305_0.28848274112715533"},"_hasShrinkwrap":false,"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"6.0.0-beta8":{"name":"resin-preload","version":"6.0.0-beta8","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta7","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"readme":"# resin-preload\n[![npm](https://img.shields.io/npm/v/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm license](https://img.shields.io/npm/l/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm downloads](https://img.shields.io/npm/dm/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n\nScript for preloading resin.io OS images (`.img`) with a user application container.\n\nUsing this will allow images with supervisor version above 1.0.0 to run the user application without connectivity, and without the need to download the container.\n\n## Warning\n\nIn order to preload images that use the overlay2 Docker storage driver (like\nnvidia jetson tx2 for example), you need to load the `overlay` Linux module:\n\n```sh\nsudo modprobe overlay\n```\n\nFor other images you will need to have the `aufs` module loaded.\n\n\n## Deprecation\n\nThe standalone mode described below (resin-preload) is now deprecated.\nIt will be removed in a future release.\nYou should use [resin-cli](https://www.npmjs.com/package/resin-cli) instead.\n\nInstall [resin-cli](https://www.npmjs.com/package/resin-cli) and run\n`resin help preload`.\n\n\n## Install via [npm](https://npmjs.com)\n\n```sh\n$ npm install --global resin-preload\n```\n\n<!-- MarkdownTOC -->\n\n- [Requirements](#requirements)\n- [Command Line Usage](#command-line-usage)\n    - [Example](#example)\n    - [Additional Options](#additional-options)\n    - [Custom Splash Screen](#custom-splash-screen)\n- [Module usage](#module-usage)\n- [Contributing](#contributing)\n- [Known Issues](#known-issues)\n    - [Speed Issues For Flasher Images on macOS](#speed-issues-for-flasher-images-on-macos)\n    - [Version Compatibility](#version-compatibility)\n    - [BTRFS Support](#btrfs-support)\n\n<!-- /MarkdownTOC -->\n\n\n## Requirements\n\n- [Node](https://nodejs.org)\n- [Docker](https://www.docker.com) tested on 1.12.6 and up but 17.04 or up is recommended especially on macOS, [docker-toolbox](https://www.docker.com/products/docker-toolbox) is not supported.\nOlder versions of resin-preload do support docker-toolbox, see [Version Compatibility](#version-compatibility) below.\n\n## Command Line Usage\n\n```\nUsage: resin-preload [options]\n\nOptions:\n\n  --app            Application ID (required)\n  --img            Disk image (or Edison zip file) to preload into (required)\n  --api-token      API token (required, or api-key)\n  --api-key        API key (required, or api-token)\n  --commit         App commit to be preloaded (default: latest)\n  --api-host       API host (default: \"https://api.resin.io\", the TLD will also be used for registry2 requests)\n  --splash-image   PNG Image for custom splash screen\n\n  --dont-check-device-type          Disables check for matching device types in image and application\n\n  --help, -h       Display resin-preload usage\n  --version, -v    Display resin-preload version\n\nEnvironment variables:\n\n  The following option flags can also be set\n  via the corresponding environment variables:\n\n  --app                               APP_ID\n  --img                               IMAGE\n  --api-token                         API_TOKEN\n  --api-key                           API_KEY\n  --commit                            COMMIT\n  --api-host                          API_HOST\n  --splash-image                      SPLASH_IMAGE\n  --dont-check-device-type            DONT_CHECK_DEVICE_TYPE\n\nExample:\n\n  resin-preload --app 123456 --api-token \"xxxx...\" --img /path/to/resin-os.img\n\n```\n\nIf using environment variables, this program requires the following options to be set:\n\n  * `IMAGE`: The path to the OS image you downloaded for the `APP_ID` you want to target.\n  * `APP_ID`: ID of the App that will be assigned to the device. It can be extracted from the URL in the Resin dashboard,\n     for instance `https://dashboard.resin.io/apps/2167` means the `APP_ID` is `2167`.\n  * `API_TOKEN`: Authentication token for Resin, taken from the [preferences page](https://dashboard.resin.io/preferences/details). \n\n\n### Example\n\n**NOTE:** Before running the example below, make sure that you have successfully pushed to the app and\nthat the `Application commit` is the correct version of the code you intend to preload.\n\nDownload an OS image from the Resin dashboard and then run:\n\n1) Using option flags for configuration:\n\n```bash\n$ resin-preload --app 123456 --api-token \"XXX...\" --img /path/to/resin.img\n```\n\n2) Using environment variables for configuration:\n\n```bash\n# Set the environment variables\n$ export API_TOKEN=... # copy from dashboard preferences\n$ export APP_ID=... # id of your application (you can see it on dashboard URL when you visit your app page)\n$ export IMAGE=/path/to/resin.img\n\n# As all required options have been set via environment variables,\n# there's no need to pass any options, just run\n$ resin-preload\n```\n\nThe `/path/to/resin.img` file, will now have the latest version of your application preloaded.\n\n### Additional Options\n\n* Alternatively to `API_TOKEN`, you can use an `API_KEY` variable with an API key from a config.json file or the [SDK](https://github.com/resin-io/resin-sdk/blob/master/DOCUMENTATION.md#resin.models.application.getApiKey).\n* `API_HOST`: Address of the Resin API. If unsure, use `https://api.resin.io`.\n* `SPLASH_IMAGE`: Path to a custom splash image, to copy into the preloaded OS image\n\n### Custom Splash Screen\n\nAt this time, the custom splash screen image needs to be a PNG.\nFor more details on splash images, see:\n  - [The Resin.io Notes – What are we working on / Revamping Splash Screens](https://forums.resin.io/t/what-are-we-working-on-the-resin-io-notes/414/7)\n  - [Documenting the custom boot splash screen](https://github.com/resin-io/docs/issues/155)\n  - [resin-io/resin-plugin-img](https://github.com/resin-io/resin-plugin-img)\n\n## Module usage\n\nPlease check bin/resin-preload\n\n## Contributing\n\n### Install from github\n\n * Clone this repo: `git clone git@github.com:resin-io/resin-preload.git`\n * Change directory: `cd resin-preload`\n * Install dependencies: `npm i`\n * Run resin-preload: `./bin/resin-preload`\n\n### Issues\n\n If you encounter any problem, you can [open an issue](https://github.com/resin-io/resin-preload/issues)\n\n## Known Issues\n\n### Speed Issues For Flasher Images on macOS\n\nDocker on macOS has [some speed issues with volumes](https://github.com/docker/for-mac/issues/77).\nThis makes this script slow, especially with Flasher Images.\n\n### Version Compatibility\n\nThis version will only work for Resin OS versions 1.2 and later.\nFor versions earlier than 1.2 you will need to checkout commit `5d6d4607bffc98acdf649ce5328e2079dfb9c3d9` of this repo and then follow the steps below. \n\n### BTRFS Support\n\nSince Docker for Mac removed support for the BTRFS storage driver (see [docker/for-mac/issues/388](https://github.com/docker/for-mac/issues/388)), preloading images prior to Resin OS 2.0 will require the older [Docker toolbox](https://docs.docker.com/toolbox/toolbox_install_mac/) setup with [VirtualBox](https://www.virtualbox.org/) to function properly.\n","readmeFilename":"README.md","gitHead":"556da9aa41f1ebc2adbdce7472148c476b2e9883","_id":"resin-preload@6.0.0-beta8","_shasum":"bb695672e852394dc0d07e0d10f7c6d0826403dd","_from":".","_npmVersion":"4.1.1","_nodeVersion":"8.9.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"bb695672e852394dc0d07e0d10f7c6d0826403dd","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.0.0-beta8.tgz","fileCount":10,"unpackedSize":86462,"integrity":"sha512-jhSoDXN+L0/0BEcavq/QvrILct5+2mb7O2J/h9n8RfE/qS+v7D8VWEXvTOKg6/9bKjwiU7S+FTE/fo7oseP1lw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpjXyc0RhzcVbHe5/6iFeVJNaWitJCyztWIE+6kXZ27wIhAN9b8sasMpLuuD6/Xkwa4nuGv+lZ63gwaPfS6M9vEzN+"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_6.0.0-beta8_1519821138886_0.9620640925699173"},"_hasShrinkwrap":false},"6.0.0-beta9":{"name":"resin-preload","version":"6.0.0-beta9","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta7","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"readme":"# resin-preload\n[![npm](https://img.shields.io/npm/v/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm license](https://img.shields.io/npm/l/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm downloads](https://img.shields.io/npm/dm/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n\nScript for preloading resin.io OS images (`.img`) with a user application container.\n\nUsing this will allow images with supervisor version above 1.0.0 to run the user application without connectivity, and without the need to download the container.\n\n## Warning\n\nIn order to preload images that use the overlay2 Docker storage driver (like\nnvidia jetson tx2 for example), you need to load the `overlay` Linux module:\n\n```sh\nsudo modprobe overlay\n```\n\nFor other images you will need to have the `aufs` module loaded.\n\n\n## Deprecation\n\nThe standalone mode described below (resin-preload) is now deprecated.\nIt will be removed in a future release.\nYou should use [resin-cli](https://www.npmjs.com/package/resin-cli) instead.\n\nInstall [resin-cli](https://www.npmjs.com/package/resin-cli) and run\n`resin help preload`.\n\n\n## Install via [npm](https://npmjs.com)\n\n```sh\n$ npm install --global resin-preload\n```\n\n<!-- MarkdownTOC -->\n\n- [Requirements](#requirements)\n- [Command Line Usage](#command-line-usage)\n    - [Example](#example)\n    - [Additional Options](#additional-options)\n    - [Custom Splash Screen](#custom-splash-screen)\n- [Module usage](#module-usage)\n- [Contributing](#contributing)\n- [Known Issues](#known-issues)\n    - [Speed Issues For Flasher Images on macOS](#speed-issues-for-flasher-images-on-macos)\n    - [Version Compatibility](#version-compatibility)\n    - [BTRFS Support](#btrfs-support)\n\n<!-- /MarkdownTOC -->\n\n\n## Requirements\n\n- [Node](https://nodejs.org)\n- [Docker](https://www.docker.com) tested on 1.12.6 and up but 17.04 or up is recommended especially on macOS, [docker-toolbox](https://www.docker.com/products/docker-toolbox) is not supported.\nOlder versions of resin-preload do support docker-toolbox, see [Version Compatibility](#version-compatibility) below.\n\n## Command Line Usage\n\n```\nUsage: resin-preload [options]\n\nOptions:\n\n  --app            Application ID (required)\n  --img            Disk image (or Edison zip file) to preload into (required)\n  --api-token      API token (required, or api-key)\n  --api-key        API key (required, or api-token)\n  --commit         App commit to be preloaded (default: latest)\n  --api-host       API host (default: \"https://api.resin.io\", the TLD will also be used for registry2 requests)\n  --splash-image   PNG Image for custom splash screen\n\n  --dont-check-device-type          Disables check for matching device types in image and application\n\n  --help, -h       Display resin-preload usage\n  --version, -v    Display resin-preload version\n\nEnvironment variables:\n\n  The following option flags can also be set\n  via the corresponding environment variables:\n\n  --app                               APP_ID\n  --img                               IMAGE\n  --api-token                         API_TOKEN\n  --api-key                           API_KEY\n  --commit                            COMMIT\n  --api-host                          API_HOST\n  --splash-image                      SPLASH_IMAGE\n  --dont-check-device-type            DONT_CHECK_DEVICE_TYPE\n\nExample:\n\n  resin-preload --app 123456 --api-token \"xxxx...\" --img /path/to/resin-os.img\n\n```\n\nIf using environment variables, this program requires the following options to be set:\n\n  * `IMAGE`: The path to the OS image you downloaded for the `APP_ID` you want to target.\n  * `APP_ID`: ID of the App that will be assigned to the device. It can be extracted from the URL in the Resin dashboard,\n     for instance `https://dashboard.resin.io/apps/2167` means the `APP_ID` is `2167`.\n  * `API_TOKEN`: Authentication token for Resin, taken from the [preferences page](https://dashboard.resin.io/preferences/details). \n\n\n### Example\n\n**NOTE:** Before running the example below, make sure that you have successfully pushed to the app and\nthat the `Application commit` is the correct version of the code you intend to preload.\n\nDownload an OS image from the Resin dashboard and then run:\n\n1) Using option flags for configuration:\n\n```bash\n$ resin-preload --app 123456 --api-token \"XXX...\" --img /path/to/resin.img\n```\n\n2) Using environment variables for configuration:\n\n```bash\n# Set the environment variables\n$ export API_TOKEN=... # copy from dashboard preferences\n$ export APP_ID=... # id of your application (you can see it on dashboard URL when you visit your app page)\n$ export IMAGE=/path/to/resin.img\n\n# As all required options have been set via environment variables,\n# there's no need to pass any options, just run\n$ resin-preload\n```\n\nThe `/path/to/resin.img` file, will now have the latest version of your application preloaded.\n\n### Additional Options\n\n* Alternatively to `API_TOKEN`, you can use an `API_KEY` variable with an API key from a config.json file or the [SDK](https://github.com/resin-io/resin-sdk/blob/master/DOCUMENTATION.md#resin.models.application.getApiKey).\n* `API_HOST`: Address of the Resin API. If unsure, use `https://api.resin.io`.\n* `SPLASH_IMAGE`: Path to a custom splash image, to copy into the preloaded OS image\n\n### Custom Splash Screen\n\nAt this time, the custom splash screen image needs to be a PNG.\nFor more details on splash images, see:\n  - [The Resin.io Notes – What are we working on / Revamping Splash Screens](https://forums.resin.io/t/what-are-we-working-on-the-resin-io-notes/414/7)\n  - [Documenting the custom boot splash screen](https://github.com/resin-io/docs/issues/155)\n  - [resin-io/resin-plugin-img](https://github.com/resin-io/resin-plugin-img)\n\n## Module usage\n\nPlease check bin/resin-preload\n\n## Contributing\n\n### Install from github\n\n * Clone this repo: `git clone git@github.com:resin-io/resin-preload.git`\n * Change directory: `cd resin-preload`\n * Install dependencies: `npm i`\n * Run resin-preload: `./bin/resin-preload`\n\n### Issues\n\n If you encounter any problem, you can [open an issue](https://github.com/resin-io/resin-preload/issues)\n\n## Known Issues\n\n### Speed Issues For Flasher Images on macOS\n\nDocker on macOS has [some speed issues with volumes](https://github.com/docker/for-mac/issues/77).\nThis makes this script slow, especially with Flasher Images.\n\n### Version Compatibility\n\nThis version will only work for Resin OS versions 1.2 and later.\nFor versions earlier than 1.2 you will need to checkout commit `5d6d4607bffc98acdf649ce5328e2079dfb9c3d9` of this repo and then follow the steps below. \n\n### BTRFS Support\n\nSince Docker for Mac removed support for the BTRFS storage driver (see [docker/for-mac/issues/388](https://github.com/docker/for-mac/issues/388)), preloading images prior to Resin OS 2.0 will require the older [Docker toolbox](https://docs.docker.com/toolbox/toolbox_install_mac/) setup with [VirtualBox](https://www.virtualbox.org/) to function properly.\n","readmeFilename":"README.md","gitHead":"d56eeef6e3dd2d12366fe2c8afcfe46c2c78b10b","_id":"resin-preload@6.0.0-beta9","_shasum":"910182b8fd489f69913fde33840d92c5a4f44ab7","_from":".","_npmVersion":"4.1.1","_nodeVersion":"8.9.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"910182b8fd489f69913fde33840d92c5a4f44ab7","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.0.0-beta9.tgz","fileCount":10,"unpackedSize":86460,"integrity":"sha512-Iz3uFP8/T1XPBcyDlD11zdCM9sJZfxF91him4f1FIvIGSzsG3u9/m4sWMid1m2qdzIXd5XYPxiUpsBRfA9gTlQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAMOSEfJif9Jn9fMmZM4/hTUbonsqH98S0W/gIUu88LcAiAU9yhIJoXwsm3jrp8pnFMA3X9mhz8ORLyox4TDSUIZWQ=="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_6.0.0-beta9_1520614926315_0.7610747073881441"},"_hasShrinkwrap":false},"6.0.0-beta10":{"name":"resin-preload","version":"6.0.0-beta10","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta7","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"readme":"# resin-preload\n[![npm](https://img.shields.io/npm/v/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm license](https://img.shields.io/npm/l/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm downloads](https://img.shields.io/npm/dm/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n\nScript for preloading resin.io OS images (`.img`) with a user application container.\n\nUsing this will allow images with supervisor version above 1.0.0 to run the user application without connectivity, and without the need to download the container.\n\n## Warning\n\nIn order to preload images that use the overlay2 Docker storage driver (like\nnvidia jetson tx2 for example), you need to load the `overlay` Linux module:\n\n```sh\nsudo modprobe overlay\n```\n\nFor other images you will need to have the `aufs` module loaded.\n\n\n## Deprecation\n\nThe standalone mode described below (resin-preload) is now deprecated.\nIt will be removed in a future release.\nYou should use [resin-cli](https://www.npmjs.com/package/resin-cli) instead.\n\nInstall [resin-cli](https://www.npmjs.com/package/resin-cli) and run\n`resin help preload`.\n\n\n## Install via [npm](https://npmjs.com)\n\n```sh\n$ npm install --global resin-preload\n```\n\n<!-- MarkdownTOC -->\n\n- [Requirements](#requirements)\n- [Command Line Usage](#command-line-usage)\n    - [Example](#example)\n    - [Additional Options](#additional-options)\n    - [Custom Splash Screen](#custom-splash-screen)\n- [Module usage](#module-usage)\n- [Contributing](#contributing)\n- [Known Issues](#known-issues)\n    - [Speed Issues For Flasher Images on macOS](#speed-issues-for-flasher-images-on-macos)\n    - [Version Compatibility](#version-compatibility)\n    - [BTRFS Support](#btrfs-support)\n\n<!-- /MarkdownTOC -->\n\n\n## Requirements\n\n- [Node](https://nodejs.org)\n- [Docker](https://www.docker.com) tested on 1.12.6 and up but 17.04 or up is recommended especially on macOS, [docker-toolbox](https://www.docker.com/products/docker-toolbox) is not supported.\nOlder versions of resin-preload do support docker-toolbox, see [Version Compatibility](#version-compatibility) below.\n\n## Command Line Usage\n\n```\nUsage: resin-preload [options]\n\nOptions:\n\n  --app            Application ID (required)\n  --img            Disk image (or Edison zip file) to preload into (required)\n  --api-token      API token (required, or api-key)\n  --api-key        API key (required, or api-token)\n  --commit         App commit to be preloaded (default: latest)\n  --api-host       API host (default: \"https://api.resin.io\", the TLD will also be used for registry2 requests)\n  --splash-image   PNG Image for custom splash screen\n\n  --dont-check-device-type          Disables check for matching device types in image and application\n\n  --help, -h       Display resin-preload usage\n  --version, -v    Display resin-preload version\n\nEnvironment variables:\n\n  The following option flags can also be set\n  via the corresponding environment variables:\n\n  --app                               APP_ID\n  --img                               IMAGE\n  --api-token                         API_TOKEN\n  --api-key                           API_KEY\n  --commit                            COMMIT\n  --api-host                          API_HOST\n  --splash-image                      SPLASH_IMAGE\n  --dont-check-device-type            DONT_CHECK_DEVICE_TYPE\n\nExample:\n\n  resin-preload --app 123456 --api-token \"xxxx...\" --img /path/to/resin-os.img\n\n```\n\nIf using environment variables, this program requires the following options to be set:\n\n  * `IMAGE`: The path to the OS image you downloaded for the `APP_ID` you want to target.\n  * `APP_ID`: ID of the App that will be assigned to the device. It can be extracted from the URL in the Resin dashboard,\n     for instance `https://dashboard.resin.io/apps/2167` means the `APP_ID` is `2167`.\n  * `API_TOKEN`: Authentication token for Resin, taken from the [preferences page](https://dashboard.resin.io/preferences/details). \n\n\n### Example\n\n**NOTE:** Before running the example below, make sure that you have successfully pushed to the app and\nthat the `Application commit` is the correct version of the code you intend to preload.\n\nDownload an OS image from the Resin dashboard and then run:\n\n1) Using option flags for configuration:\n\n```bash\n$ resin-preload --app 123456 --api-token \"XXX...\" --img /path/to/resin.img\n```\n\n2) Using environment variables for configuration:\n\n```bash\n# Set the environment variables\n$ export API_TOKEN=... # copy from dashboard preferences\n$ export APP_ID=... # id of your application (you can see it on dashboard URL when you visit your app page)\n$ export IMAGE=/path/to/resin.img\n\n# As all required options have been set via environment variables,\n# there's no need to pass any options, just run\n$ resin-preload\n```\n\nThe `/path/to/resin.img` file, will now have the latest version of your application preloaded.\n\n### Additional Options\n\n* Alternatively to `API_TOKEN`, you can use an `API_KEY` variable with an API key from a config.json file or the [SDK](https://github.com/resin-io/resin-sdk/blob/master/DOCUMENTATION.md#resin.models.application.getApiKey).\n* `API_HOST`: Address of the Resin API. If unsure, use `https://api.resin.io`.\n* `SPLASH_IMAGE`: Path to a custom splash image, to copy into the preloaded OS image\n\n### Custom Splash Screen\n\nAt this time, the custom splash screen image needs to be a PNG.\nFor more details on splash images, see:\n  - [The Resin.io Notes – What are we working on / Revamping Splash Screens](https://forums.resin.io/t/what-are-we-working-on-the-resin-io-notes/414/7)\n  - [Documenting the custom boot splash screen](https://github.com/resin-io/docs/issues/155)\n  - [resin-io/resin-plugin-img](https://github.com/resin-io/resin-plugin-img)\n\n## Module usage\n\nPlease check bin/resin-preload\n\n## Contributing\n\n### Install from github\n\n * Clone this repo: `git clone git@github.com:resin-io/resin-preload.git`\n * Change directory: `cd resin-preload`\n * Install dependencies: `npm i`\n * Run resin-preload: `./bin/resin-preload`\n\n### Issues\n\n If you encounter any problem, you can [open an issue](https://github.com/resin-io/resin-preload/issues)\n\n## Known Issues\n\n### Speed Issues For Flasher Images on macOS\n\nDocker on macOS has [some speed issues with volumes](https://github.com/docker/for-mac/issues/77).\nThis makes this script slow, especially with Flasher Images.\n\n### Version Compatibility\n\nThis version will only work for Resin OS versions 1.2 and later.\nFor versions earlier than 1.2 you will need to checkout commit `5d6d4607bffc98acdf649ce5328e2079dfb9c3d9` of this repo and then follow the steps below. \n\n### BTRFS Support\n\nSince Docker for Mac removed support for the BTRFS storage driver (see [docker/for-mac/issues/388](https://github.com/docker/for-mac/issues/388)), preloading images prior to Resin OS 2.0 will require the older [Docker toolbox](https://docs.docker.com/toolbox/toolbox_install_mac/) setup with [VirtualBox](https://www.virtualbox.org/) to function properly.\n","readmeFilename":"README.md","gitHead":"1d7a1ed1bdfcb18d93e58b776f8b204dce9d4f96","_id":"resin-preload@6.0.0-beta10","_shasum":"850749d2025556000d2d4ac2e0af32b940ec1a5d","_from":".","_npmVersion":"4.1.1","_nodeVersion":"8.9.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"850749d2025556000d2d4ac2e0af32b940ec1a5d","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.0.0-beta10.tgz","fileCount":10,"unpackedSize":86592,"integrity":"sha512-s4fnGDPHRiCHDOjGXth/L6zsQjyjI+mJo+f4pwox19xsYy9uzV7sWAHSlcrz7+038bqkHVY6OK7h7TBR6riGuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHxqiXQwLIEAENmTGZ5zuZK1MzM8Swk4Mdsm0UjZfyGAAiEA4VZ4uiNIB7mY0nToNhWe5VTTiTb8BxzH6+nsEguT1NU="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_6.0.0-beta10_1520617773580_0.771054167295739"},"_hasShrinkwrap":false},"6.0.0-beta11":{"name":"resin-preload","version":"6.0.0-beta11","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta9","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"readme":"# resin-preload\n[![npm](https://img.shields.io/npm/v/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm license](https://img.shields.io/npm/l/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm downloads](https://img.shields.io/npm/dm/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n\nScript for preloading resin.io OS images (`.img`) with a user application container.\n\nUsing this will allow images with supervisor version above 1.0.0 to run the user application without connectivity, and without the need to download the container.\n\n## Warning\n\nIn order to preload images that use the overlay2 Docker storage driver (like\nnvidia jetson tx2 for example), you need to load the `overlay` Linux module:\n\n```sh\nsudo modprobe overlay\n```\n\nFor other images you will need to have the `aufs` module loaded.\n\n\n## Deprecation\n\nThe standalone mode described below (resin-preload) is now deprecated.\nIt will be removed in a future release.\nYou should use [resin-cli](https://www.npmjs.com/package/resin-cli) instead.\n\nInstall [resin-cli](https://www.npmjs.com/package/resin-cli) and run\n`resin help preload`.\n\n\n## Install via [npm](https://npmjs.com)\n\n```sh\n$ npm install --global resin-preload\n```\n\n<!-- MarkdownTOC -->\n\n- [Requirements](#requirements)\n- [Command Line Usage](#command-line-usage)\n    - [Example](#example)\n    - [Additional Options](#additional-options)\n    - [Custom Splash Screen](#custom-splash-screen)\n- [Module usage](#module-usage)\n- [Contributing](#contributing)\n- [Known Issues](#known-issues)\n    - [Speed Issues For Flasher Images on macOS](#speed-issues-for-flasher-images-on-macos)\n    - [Version Compatibility](#version-compatibility)\n    - [BTRFS Support](#btrfs-support)\n\n<!-- /MarkdownTOC -->\n\n\n## Requirements\n\n- [Node](https://nodejs.org)\n- [Docker](https://www.docker.com) tested on 1.12.6 and up but 17.04 or up is recommended especially on macOS, [docker-toolbox](https://www.docker.com/products/docker-toolbox) is not supported.\nOlder versions of resin-preload do support docker-toolbox, see [Version Compatibility](#version-compatibility) below.\n\n## Command Line Usage\n\n```\nUsage: resin-preload [options]\n\nOptions:\n\n  --app            Application ID (required)\n  --img            Disk image (or Edison zip file) to preload into (required)\n  --api-token      API token (required, or api-key)\n  --api-key        API key (required, or api-token)\n  --commit         App commit to be preloaded (default: latest)\n  --api-host       API host (default: \"https://api.resin.io\", the TLD will also be used for registry2 requests)\n  --splash-image   PNG Image for custom splash screen\n\n  --dont-check-device-type          Disables check for matching device types in image and application\n\n  --help, -h       Display resin-preload usage\n  --version, -v    Display resin-preload version\n\nEnvironment variables:\n\n  The following option flags can also be set\n  via the corresponding environment variables:\n\n  --app                               APP_ID\n  --img                               IMAGE\n  --api-token                         API_TOKEN\n  --api-key                           API_KEY\n  --commit                            COMMIT\n  --api-host                          API_HOST\n  --splash-image                      SPLASH_IMAGE\n  --dont-check-device-type            DONT_CHECK_DEVICE_TYPE\n\nExample:\n\n  resin-preload --app 123456 --api-token \"xxxx...\" --img /path/to/resin-os.img\n\n```\n\nIf using environment variables, this program requires the following options to be set:\n\n  * `IMAGE`: The path to the OS image you downloaded for the `APP_ID` you want to target.\n  * `APP_ID`: ID of the App that will be assigned to the device. It can be extracted from the URL in the Resin dashboard,\n     for instance `https://dashboard.resin.io/apps/2167` means the `APP_ID` is `2167`.\n  * `API_TOKEN`: Authentication token for Resin, taken from the [preferences page](https://dashboard.resin.io/preferences/details). \n\n\n### Example\n\n**NOTE:** Before running the example below, make sure that you have successfully pushed to the app and\nthat the `Application commit` is the correct version of the code you intend to preload.\n\nDownload an OS image from the Resin dashboard and then run:\n\n1) Using option flags for configuration:\n\n```bash\n$ resin-preload --app 123456 --api-token \"XXX...\" --img /path/to/resin.img\n```\n\n2) Using environment variables for configuration:\n\n```bash\n# Set the environment variables\n$ export API_TOKEN=... # copy from dashboard preferences\n$ export APP_ID=... # id of your application (you can see it on dashboard URL when you visit your app page)\n$ export IMAGE=/path/to/resin.img\n\n# As all required options have been set via environment variables,\n# there's no need to pass any options, just run\n$ resin-preload\n```\n\nThe `/path/to/resin.img` file, will now have the latest version of your application preloaded.\n\n### Additional Options\n\n* Alternatively to `API_TOKEN`, you can use an `API_KEY` variable with an API key from a config.json file or the [SDK](https://github.com/resin-io/resin-sdk/blob/master/DOCUMENTATION.md#resin.models.application.getApiKey).\n* `API_HOST`: Address of the Resin API. If unsure, use `https://api.resin.io`.\n* `SPLASH_IMAGE`: Path to a custom splash image, to copy into the preloaded OS image\n\n### Custom Splash Screen\n\nAt this time, the custom splash screen image needs to be a PNG.\nFor more details on splash images, see:\n  - [The Resin.io Notes – What are we working on / Revamping Splash Screens](https://forums.resin.io/t/what-are-we-working-on-the-resin-io-notes/414/7)\n  - [Documenting the custom boot splash screen](https://github.com/resin-io/docs/issues/155)\n  - [resin-io/resin-plugin-img](https://github.com/resin-io/resin-plugin-img)\n\n## Module usage\n\nPlease check bin/resin-preload\n\n## Contributing\n\n### Install from github\n\n * Clone this repo: `git clone git@github.com:resin-io/resin-preload.git`\n * Change directory: `cd resin-preload`\n * Install dependencies: `npm i`\n * Run resin-preload: `./bin/resin-preload`\n\n### Issues\n\n If you encounter any problem, you can [open an issue](https://github.com/resin-io/resin-preload/issues)\n\n## Known Issues\n\n### Speed Issues For Flasher Images on macOS\n\nDocker on macOS has [some speed issues with volumes](https://github.com/docker/for-mac/issues/77).\nThis makes this script slow, especially with Flasher Images.\n\n### Version Compatibility\n\nThis version will only work for Resin OS versions 1.2 and later.\nFor versions earlier than 1.2 you will need to checkout commit `5d6d4607bffc98acdf649ce5328e2079dfb9c3d9` of this repo and then follow the steps below. \n\n### BTRFS Support\n\nSince Docker for Mac removed support for the BTRFS storage driver (see [docker/for-mac/issues/388](https://github.com/docker/for-mac/issues/388)), preloading images prior to Resin OS 2.0 will require the older [Docker toolbox](https://docs.docker.com/toolbox/toolbox_install_mac/) setup with [VirtualBox](https://www.virtualbox.org/) to function properly.\n","readmeFilename":"README.md","gitHead":"fedec220669aa0c807334f1dec114d47deecc055","_id":"resin-preload@6.0.0-beta11","_shasum":"aaf2275527e82e1bc6e42355052607cd7fcdd06d","_from":".","_npmVersion":"4.1.1","_nodeVersion":"8.9.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"aaf2275527e82e1bc6e42355052607cd7fcdd06d","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.0.0-beta11.tgz","fileCount":10,"unpackedSize":86818,"integrity":"sha512-v9CU6YloRAipNdpkDs10fn2kCgOCUXaLKOn9VzhGStJ84W0KYaQX9pB5IRNEKWUVxdz63Be8r4yDCNgP5ZolBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFW7p+IJYlJH89cKUYIqnVn5ILsGayli/vo+O6uAOc2oAiBrSZgoAFpOsqNm5EEf4Phl3Vc8wCGuqi55F6ja6GJtvA=="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_6.0.0-beta11_1520627927338_0.8113206324154101"},"_hasShrinkwrap":false},"6.0.0":{"name":"resin-preload","version":"6.0.0","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta9","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"fb9365428a72529207cdc357316464b489f90178","_id":"resin-preload@6.0.0","_shasum":"14cfa12a0c5a24995c37ae19b9fba8c31442c64a","_from":".","_npmVersion":"4.1.1","_nodeVersion":"8.9.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"14cfa12a0c5a24995c37ae19b9fba8c31442c64a","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.0.0.tgz","fileCount":10,"unpackedSize":86888,"integrity":"sha512-TV5G2QuhC8ErPZQ0/MmO8/Lu1GgVD1/QXfZHiYtvd6JgRdIXNe6y6RPPA5u1v4/dPlSq1tXYamYFeZgmJHjFiQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqSxNAs7a2Isf079sEjdvds/XtFT83lWPEv95OAP74nQIgJyGtpxmgMS4P7kPrry1XPbKqwrNIG7vQGsKMlZsNHl8="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_6.0.0_1520632351545_0.8159660767230912"},"_hasShrinkwrap":false,"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"6.1.1":{"name":"resin-preload","version":"6.1.1","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta9","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"974d9e7da2517663318418fba841940b0090f83b","_id":"resin-preload@6.1.1","_shasum":"61e6384db829115d7fb4a55b474d71da85db912a","_from":".","_npmVersion":"4.1.1","_nodeVersion":"8.9.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"61e6384db829115d7fb4a55b474d71da85db912a","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.1.1.tgz","fileCount":10,"unpackedSize":88137,"integrity":"sha512-Xp9VEkg6936qpfq4TvPhgPEy15eKaNdZc84uYb4oY5T4754bScllrdbbcDzLQwTJVOlXn7YV9nn/CYWYTTDURQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCc+FlwZ/3aj/+i+gVqG+ovE1ZK3YDDJuDbhRo+EVgm0QIhAOa7YWG2w9Emv+ikpopR8h4iBULRtw3GwPsWjvPKXdxn"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_6.1.1_1521486530760_0.6566638716988689"},"_hasShrinkwrap":false,"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"6.1.2":{"name":"resin-preload","version":"6.1.2","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta9","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"ad21125004c521b5c247ade42c3147a685a4fad2","_id":"resin-preload@6.1.2","_shasum":"15eaf5edae28921c7679feefb2b2b4480b9a119b","_from":".","_npmVersion":"4.1.1","_nodeVersion":"8.9.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"15eaf5edae28921c7679feefb2b2b4480b9a119b","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.1.2.tgz","fileCount":10,"unpackedSize":88677,"integrity":"sha512-iFI9OAzRdxjNb/8gW+VPGuFCLT60uj+FJadki64BGq6DGGVQuhC748hRsiD+jgrPYTbixAxC+a5tYggHeph29A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC5tjZywmNZggblZH7hX+IfD8yXfsyld8Hp7HbGOzeBEAiEAriwiCBOWcOqh4Ejqrh+WJLjHdIQEZnvl+yeK43TNLnQ="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_6.1.2_1521559195542_0.29427955777416437"},"_hasShrinkwrap":false,"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"6.2.0":{"name":"resin-preload","version":"6.2.0","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"f57c4f2c8d2eb5c8df9aff174faa297bde8e1d5d","_id":"resin-preload@6.2.0","_shasum":"9ad7353de0db7f27a8fe3fa71ccea23109c7feaa","_from":".","_npmVersion":"4.1.1","_nodeVersion":"8.9.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"9ad7353de0db7f27a8fe3fa71ccea23109c7feaa","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.2.0.tgz","fileCount":10,"unpackedSize":88787,"integrity":"sha512-30gF5W+z+xccs1DEs5oFerr/6s/y2iXPR7U3CmRH057VylNy93e/kGAuBKIlRXBXZvWa/ePPOHMw1khbWh2Mfg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUaE05GsO4dp9yP36o0hCFfCeHbfxf2XmvhzzfkWnElwIhALHbIbve+OzcA35axKzUNtDDjRCFFMeF0qDZtqChR8yH"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_6.2.0_1521812276832_0.30488635912950346"},"_hasShrinkwrap":false,"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"6.3.0":{"name":"resin-preload","version":"6.3.0","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"25c862f77938a67f56f842b5ceaee66f61afe820","_id":"resin-preload@6.3.0","_shasum":"1db406b81d2a17c40899ab0622d9be7c5acde5a0","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.11.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"1db406b81d2a17c40899ab0622d9be7c5acde5a0","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.3.0.tgz","fileCount":9,"unpackedSize":81794,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbDqTRCRA9TVsSAnZWagAABTcP/jhHSF1m5qq6d5hXyVuo\nJ4oH9ISe1TZy078/dOrO+18w9sYScpTjL/vnu10579GPuF7XZImUkNI4ZGUt\nvIZ5n2snPry2MkplkyqTVhjO0hSuVVcHKpr7Q7/ustFJOIS0qgOArCRXXtTu\nhKB7uN4Kukf+RNpOdP+4PjxvmDhJbGGcamZJjZtTjr725BSv5qt78wdCOA3r\nP7/kwuFaWe282vX8gr3uA3vAKc7+6PwZoYDOCtF7J7l2g85ecKX07L/2aLH/\nbLbis31Nqkynq10vDuIa9SVxHFv5WL8tmGVPQTV3F+ig+dF5654PvKv/uaZF\nHRGdLKuVvUzBqC0w+blyiy7OkZMwkuQ5sGA0qj7XeDRyc4QyIjsjYE2gSIoY\nbUjIs86Smx08dJzZ5yQo1wPd1Th5fYhnh+DBlX7joEnlmHRdlnyXXiDbs2xY\nclwrForLrS61W/SftTgzwAhxXDvuT9qT5N5P1YWTNCRb0j73RWMCUTwHKT9U\nlmoBWvuGjLb6bp4ldoPqU2J/FhNSix7z1HfkECfKoj0cK0O4gd9LUUiwhd72\n5gr5xZYAzKhouiZoJ82B7HTX5q0U2iwFiUbYvNRSABSKLdurZjEQO7qZt/rx\nAmrfLhdyy4FDJSn6oz0Mfib47c8k8vwiYC5EE3asZIlQICjITapM3DXgZGcZ\nKGE9\r\n=C/u6\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-ijWEErbKmrvAfJd5gy7P8VaB5Vj3noMI9j4HBYBhdrKNvYSWeLXCl1w8vkuz4NdaReh3psUPXNJFchXWlKX4Qw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIClJbzIcAQodWk87CNx/wtgzzaRE7tqgE2AzbE0D9kqeAiEAqkMAL9JOcgzbimsxrxgBA8U7jX+pKIwxmcEJbU0+s2E="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_6.3.0_1527686350996_0.40532297208488743"},"_hasShrinkwrap":false,"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"6.3.1":{"name":"resin-preload","version":"6.3.1","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"194bb4331636741dc1ad8f05d86de888b00d2ca3","_id":"resin-preload@6.3.1","_shasum":"a4559012f35bb1441c134c829d87f7ed37066406","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.11.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"a4559012f35bb1441c134c829d87f7ed37066406","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.3.1.tgz","fileCount":9,"unpackedSize":81889,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbDtcjCRA9TVsSAnZWagAA19kQAJja5pURbRph5LEoJoc+\nNaL3fNvmpxA1an+wmTzRc1ivqs1GQhu2RDOApjQ5SZixblfJgF7JOVuNk+Ch\nv1IvkGFFc+QlJ4hmTEze2KFHAZFbyv1vHwgL86waLluDBhTP0Gv8g3eTYf39\nXECqWheg6C6Zyn3FWT4Ud/CQlAl421NnHXGS2kUggMzPyiyP+0T+PgfZ7heM\ng/0ooSXE3qsCf/N8X/qxQLSJRwZbpao7Wj/iK2brFpnZMVCHQ82mLQBuVCAW\nUj0SIVw8rW5i9kHRgqOluGGihZ8SvYtBxLJW1hSVtKXUf9Rl49ivRoiXDpNC\nKmRSASIBhFDiUp5U3BmWBbmHK2mqxMCoQbUDkP9zLzXL1BNmxCJe3Yvi1RcV\nSvXXjDpZgriA8x98O7RJZn/bM8sbDu8A231sUXRDkbMsa/IbRyolmUB2DU9P\nTjL/zfvzYNM+1KwcPhCEJVI9/kUgQcmeFIm1CPxd5EwgfAWIFQajF7RpBu1M\nFuRHrKWmIy81yoAZ7cKqyrEBDEhUFjK15n6YBuYjB0rxFa+ilfgYB+jRs6Sl\n4Cd6B1LHZzxVWCl0HWY8wlYy1DbwLsBAIEw2lpYeF4MRpRax1dxt1wapOuou\ncJ59C4MBCd1ZTjglvDTO8H0Q29QQwsbvYKrlN9Mp0he5/RxanxuALHUd0YLA\nFsfD\r\n=/JUe\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-3LYX5s0qIdgqc9MlpvHhNFBQyBukzOLlffYSpg/90rYTexgObeKGCejj19MJDhemoXoEiu9vrUSovICJBSzq4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFLpRPvPfWSZCG6w9X/EXrA/FU5cviEjfJ5p7I9xBz0KAiBdQQn0zIHu0A7KeHeIPOau+yWyzXXry/nYSMCgcapOSA=="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_6.3.1_1527699234931_0.14573195891750346"},"_hasShrinkwrap":false,"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"6.3.2":{"name":"resin-preload","version":"6.3.2","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"34f3d5e113731ea8887cc4e09cdd149189962677","_id":"resin-preload@6.3.2","_shasum":"7fdde5cdad1365b340ed15c851d625341e6f2fc3","_from":".","_npmVersion":"3.10.10","_nodeVersion":"8.10.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"7fdde5cdad1365b340ed15c851d625341e6f2fc3","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.3.2.tgz","integrity":"sha512-MwxJEwugofYI6ugAA5a/8bHFJoRXVk6E4Df6QXgps9odBouNc55F/P7MNYKlUxIFKqolf1CVI57ydkynLu88zg==","fileCount":10,"unpackedSize":89285,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbbHEFCRA9TVsSAnZWagAAIagP+QHe2Vs+ER5h7ESUXDiS\n1XNSiw+QR/el6XzFnofjNV70Wpr+HQpBsxMcy3q+2BFPcK3/aNBRvjBg5hme\nk3uo1wsApMYIqu0kCYjdMQ0GtkDfQNCGCVQZmHM/AVUN4ldUPtl1PDsqVAw9\nRymvsHRLumBsPLbygAa9bp/uoug4ugPLJ4W9xeumr+BivjhoZhyd+6M278Zt\njebUp0MhhdY+4Ic3Xqkdy+QM4YlWxWDiX4LAS621QWiglMonkstsLEmQe+VX\nhwLG9hQcJrGQovrNnw8kYnBjzJD3svblSk5Yxu53LyiFb9orRp4VGUa6idXI\ndokq52NKoec3J+p8SrmzJ9zrhfaQYOT+2zlE/ImZEFhqsl+eeBeRrMYVyuYg\nLDt2maYKGddUxVp0GbChblaiRK7wZxY3u8H0mFrJZzk3nqLR5iTJkIU9yveH\nmFQWsOIm7UDLx0MUhsugJJDvmmJxmTsLTWcqoBekKF5+coW0MmwQIr4Vejso\nTrkQ1gY5KAvEOoBxsYin7ZZ0119Y6b2XnbwdY8vSN6XMqhCq75MSVb8kHp4I\nvG3NTj40iJC5QuvofdeJnwVNfmWEgBf01ziq8cyNg5RPqOBnTMfj2j82oPUy\nYVZhtOHI2p4KLskbODDDtC65yfM8yzMKvanr4ukax0DDq5zU0uysEDzPlHtd\nlK0l\r\n=Ojqa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQMKwiiSi5uqMDekhvQvBM898NKWjyuHGgD9c+uDoUNgIhAIefwSTnuIi4SiZ8Je+Ozk15nD+DhI0HeqoQtGTzTx2D"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_6.3.2_1533833476660_0.18956319019259782"},"_hasShrinkwrap":false,"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"7.0.0":{"name":"resin-preload","version":"7.0.0","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"6c7e407926a53612c32b487d4fc07905da17e958","_id":"resin-preload@7.0.0","_shasum":"617045ddd4f41be6d23743d817ed57e1fdc6a3bf","_from":".","_npmVersion":"3.10.10","_nodeVersion":"8.10.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"617045ddd4f41be6d23743d817ed57e1fdc6a3bf","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-7.0.0.tgz","integrity":"sha512-UMOZrLepDzzy+hFZfoeE+zS2f1JpXhSGnYZjrYpvxaZQJyhjX001BXsATwwqoaNBsGavVOE+mZIQIKExbH17UA==","fileCount":9,"unpackedSize":82655,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbeuaACRA9TVsSAnZWagAAjEMP/iMGurrW/A24vebPHMBC\nmgPbSzEdxZCxrJt5pdKizq9AHJNTHfLv3urp6qjGom2vVIMGsTNLMxkuZvD4\n+26/uRFNpo1jAGMuuU3fiF517lesqXt/IMe/+ndIPUxQXjip6FrLimO6I4Kb\nxIEv7zqqWwoxbDyKCN1+dTxd8OEx69uq+Cgdb9fznTWX1GqgLhrK4h5ANwq5\nHHqyVG3fpd3NR/G/0qAGyvsvfIJO9PZ/bWYkT3HdJnZEkijrKSxTqC8FGFc5\ncmCYTk/G9mqkzuuLVkGflsJ43deF/gLkd0q2gEI2xEiQxzvF9fm5QyKSs1pC\njHsX4D4hxdkjlP8ZB3ZPLrF1CtydB0kOUOdFdLK72x55FUKnDUU696ppvdXz\n9YUsHPfQgOXgI0/qy0sMKAP30cPWtSuPYMejzltMmUI6DmnTUFSKndfAvP75\nLboei0/TL76K4/pF6VEkKZJMYWKa1ip4OPqNz9l1m5A+Im4QRU8XiSqOPchz\najI7/7z+uXQBnfnpwabaS6ZVFXgeKKSA1Hb1uMwNg6oavQbX7zrqnpq81iWQ\nP+CSwBtpqlcjZQCLla6XfYrf52mDTrrKo193lzq1UxhfQm5XJjGqGlSQ6fyX\njxL+4s5OHqNl8zl7nxZQ7ynJb3jlq/VqWuyyhyKjnymlO4p83wCafyga3+er\n8ZUk\r\n=47HS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUJM1vD+Y8ReanyUmuj1jjUt3GzvJVq2KUVh1v1HvFhAIhAPv6XG4ChfwS/sD4gDumMycTeKv9VNljLdws3Ekkgb8S"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_7.0.0_1534781056397_0.477604070479273"},"_hasShrinkwrap":false,"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"7.0.1":{"name":"resin-preload","version":"7.0.1","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"e23cd19bcb7616b7c962a7ea575c5cb391eda072","_id":"resin-preload@7.0.1","_shasum":"36743dd35073f5ef6fd64d31001f268789043480","_from":".","_npmVersion":"3.10.10","_nodeVersion":"8.10.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"36743dd35073f5ef6fd64d31001f268789043480","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-7.0.1.tgz","integrity":"sha512-QnMIh1/bVfRkqsi6AOeqF8xKeOjcwwr6gjzSZGZnTPFaG/xgKLmY66tGOhAOu2e+qkdViyu3vDFPQ7a/2XqsBA==","fileCount":9,"unpackedSize":83308,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbfDJnCRA9TVsSAnZWagAAaxUQAJ3pURR54Bs2ZAJ9GC10\npcmFwTHntDHaHOkv30wSjJNbZ/X3Uh0iEGPGF//UkTfHAO028FCme1FTD7Jm\nO4TTU2llqNEm3+gXbf0gSo/Zy7nZDz2008ppipvuWoR3Shn1y2+HE9CROO00\nA6BwQ9iBz4JtdJPTKWsBkzAbPiGfArjKZLtUY4dODBF/PgSidQNro+TQcy9r\nYM72MJJqV5JyD31fmVHYcnrouPIZSxruNmm9Y5fwfKLQs3I+/LtTNVqX0BiM\n/lPvHB0wnPciTCl42RAVkUmgRc7bYzqEYB/ikKODIrEQEVDNw7l+8Igdmgw0\n5rLcUMBfii7oj/gHhaUHQBK9/k/J83oazr4cFlgqqOXGGRmVBnZFF5MIN+NI\nhxE3X7m7jkxNm1oQD7tVovqo2a/7LFY68bJNKqTXSnG++9be4EMgUotgLPXJ\nEI71pMPG4pJS/wQIVxFMznaOehJNVlYAqrCZN/BsVRdtD5guJnHB7GjSmxY4\nA3hotdo/HFrpxPAqLW8R/Ed2mc8eoBoc7urS7S3B05t68WUoFXUaK5TEMt6o\nWhYq3FD/0YPxsHu7IgF6yiHZGxRVUt9NVg1NKLaNcK9pGXkQDXZnQFZ2j9pf\nXyAY632qWhUDUCsrDW+t7lY52kc5SFvkBS588Vw2WoTevaI2+itUPXoqTF8t\ndtxI\r\n=vq4E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBlfuqmeEagWCxSpS0Do4OV+WkwlBT4hGayFqBPgZIfmAiEA5Qjyi+iHAxAFxxSGlBq9ueSdIEAjbDaxshTf/a6GiA0="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_7.0.1_1534866023236_0.26989304661127367"},"_hasShrinkwrap":false,"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"7.0.2-windows-ee057ef":{"name":"resin-preload","version":"7.0.2-windows-ee057ef","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"readme":"# resin-preload\n[![npm](https://img.shields.io/npm/v/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm license](https://img.shields.io/npm/l/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm downloads](https://img.shields.io/npm/dm/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n\nScript for preloading resin.io OS images (`.img`) with a user application container.\n\nUsing this will allow images with supervisor version above 1.0.0 to run the user application without connectivity, and without the need to download the container.\n\n## Warning\n\nIn order to preload images that use the overlay2 Docker storage driver (like\nnvidia jetson tx2 for example), you need to load the `overlay` Linux module:\n\n```sh\nsudo modprobe overlay\n```\n\nFor other images you will need to have the `aufs` module loaded.\n\n\n## Deprecation\n\nThe standalone mode described below (resin-preload) is now deprecated.\nIt will be removed in a future release.\nYou should use [resin-cli](https://www.npmjs.com/package/resin-cli) instead.\n\nInstall [resin-cli](https://www.npmjs.com/package/resin-cli) and run\n`resin help preload`.\n\n\n## Install via [npm](https://npmjs.com)\n\n```sh\n$ npm install --global resin-preload\n```\n\n<!-- MarkdownTOC -->\n\n- [Requirements](#requirements)\n- [Command Line Usage](#command-line-usage)\n    - [Example](#example)\n    - [Additional Options](#additional-options)\n    - [Custom Splash Screen](#custom-splash-screen)\n- [Module usage](#module-usage)\n- [Contributing](#contributing)\n- [Known Issues](#known-issues)\n    - [Speed Issues For Flasher Images on macOS](#speed-issues-for-flasher-images-on-macos)\n    - [Version Compatibility](#version-compatibility)\n    - [BTRFS Support](#btrfs-support)\n\n<!-- /MarkdownTOC -->\n\n\n## Requirements\n\n- [Node](https://nodejs.org)\n- [Docker](https://www.docker.com) tested on 1.12.6 and up but 17.04 or up is recommended especially on macOS, [docker-toolbox](https://www.docker.com/products/docker-toolbox) is not supported.\nOlder versions of resin-preload do support docker-toolbox, see [Version Compatibility](#version-compatibility) below.\n\n## Command Line Usage\n\n```\nUsage: resin-preload [options]\n\nOptions:\n\n  --app            Application ID (required)\n  --img            Disk image (or Edison zip file) to preload into (required)\n  --api-token      API token (required, or api-key)\n  --api-key        API key (required, or api-token)\n  --commit         App commit to be preloaded (default: latest)\n  --api-host       API host (default: \"https://api.resin.io\", the TLD will also be used for registry2 requests)\n  --splash-image   PNG Image for custom splash screen\n\n  --dont-check-arch          Disables check for matching architecture in image and application\n\n  --help, -h       Display resin-preload usage\n  --version, -v    Display resin-preload version\n\nEnvironment variables:\n\n  The following option flags can also be set\n  via the corresponding environment variables:\n\n  --app                               APP_ID\n  --img                               IMAGE\n  --api-token                         API_TOKEN\n  --api-key                           API_KEY\n  --commit                            COMMIT\n  --api-host                          API_HOST\n  --splash-image                      SPLASH_IMAGE\n  --dont-check-arch                   DONT_CHECK_ARCH\n\nExample:\n\n  resin-preload --app 123456 --api-token \"xxxx...\" --img /path/to/resin-os.img\n\n```\n\nIf using environment variables, this program requires the following options to be set:\n\n  * `IMAGE`: The path to the OS image you downloaded for the `APP_ID` you want to target.\n  * `APP_ID`: ID of the App that will be assigned to the device. It can be extracted from the URL in the Resin dashboard,\n     for instance `https://dashboard.resin.io/apps/2167` means the `APP_ID` is `2167`.\n  * `API_TOKEN`: Authentication token for Resin, taken from the [preferences page](https://dashboard.resin.io/preferences/details). \n\n\n### Example\n\n**NOTE:** Before running the example below, make sure that you have successfully pushed to the app and\nthat the `Application commit` is the correct version of the code you intend to preload.\n\nDownload an OS image from the Resin dashboard and then run:\n\n1) Using option flags for configuration:\n\n```bash\n$ resin-preload --app 123456 --api-token \"XXX...\" --img /path/to/resin.img\n```\n\n2) Using environment variables for configuration:\n\n```bash\n# Set the environment variables\n$ export API_TOKEN=... # copy from dashboard preferences\n$ export APP_ID=... # id of your application (you can see it on dashboard URL when you visit your app page)\n$ export IMAGE=/path/to/resin.img\n\n# As all required options have been set via environment variables,\n# there's no need to pass any options, just run\n$ resin-preload\n```\n\nThe `/path/to/resin.img` file, will now have the latest version of your application preloaded.\n\n### Additional Options\n\n* Alternatively to `API_TOKEN`, you can use an `API_KEY` variable with an API key from a config.json file or the [SDK](https://github.com/resin-io/resin-sdk/blob/master/DOCUMENTATION.md#resin.models.application.getApiKey).\n* `API_HOST`: Address of the Resin API. If unsure, use `https://api.resin.io`.\n* `SPLASH_IMAGE`: Path to a custom splash image, to copy into the preloaded OS image\n\n### Custom Splash Screen\n\nAt this time, the custom splash screen image needs to be a PNG.\nFor more details on splash images, see:\n  - [The Resin.io Notes – What are we working on / Revamping Splash Screens](https://forums.resin.io/t/what-are-we-working-on-the-resin-io-notes/414/7)\n  - [Documenting the custom boot splash screen](https://github.com/resin-io/docs/issues/155)\n  - [resin-io/resin-plugin-img](https://github.com/resin-io/resin-plugin-img)\n\n## Module usage\n\nPlease check bin/resin-preload\n\n## Contributing\n\n### Install from github\n\n * Clone this repo: `git clone git@github.com:resin-io/resin-preload.git`\n * Change directory: `cd resin-preload`\n * Install dependencies: `npm i`\n * Run resin-preload: `./bin/resin-preload`\n\n### Issues\n\n If you encounter any problem, you can [open an issue](https://github.com/resin-io/resin-preload/issues)\n\n## Known Issues\n\n### Speed Issues For Flasher Images on macOS\n\nDocker on macOS has [some speed issues with volumes](https://github.com/docker/for-mac/issues/77).\nThis makes this script slow, especially with Flasher Images.\n\n### Version Compatibility\n\nThis version will only work for Resin OS versions 1.2 and later.\nFor versions earlier than 1.2 you will need to checkout commit `5d6d4607bffc98acdf649ce5328e2079dfb9c3d9` of this repo and then follow the steps below. \n\n### BTRFS Support\n\nSince Docker for Mac removed support for the BTRFS storage driver (see [docker/for-mac/issues/388](https://github.com/docker/for-mac/issues/388)), preloading images prior to Resin OS 2.0 will require the older [Docker toolbox](https://docs.docker.com/toolbox/toolbox_install_mac/) setup with [VirtualBox](https://www.virtualbox.org/) to function properly.\n","readmeFilename":"README.md","gitHead":"ee057ef36708ed8da6d7e8bb96422cb3a1f30563","_id":"resin-preload@7.0.2-windows-ee057ef","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-rwvkzVWqQnnJPEENzx6SoLnrLRPCcauAS9Cno6ha6X2q9/RFx64xdNSad0b2tEzAz2kewNUsPvTBMXuMIxSnQw==","shasum":"ed07377a19128a85a65837f68c5c871b580a05b4","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-7.0.2-windows-ee057ef.tgz","fileCount":9,"unpackedSize":83461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhFx2CRA9TVsSAnZWagAAT9wP/iwiaX5wEpAQaTkg1WA7\nqCtzBPz5Lp8OTqbDwYQPB3fVLWrHgxrhtTkrDUhOCx9yV06xx365lZVCBbww\nvx9/17oDJkLIHq4HBSMWS//VmOWem2FII2IcJj/3wxShajSOYE/WXKGnUF0n\nJ/glf9yKVJac8YDB24oH9cL26pBOXgl9Rei7kqyQeRFoaueh5mHoIzhEk8Ly\nccihexO3A314G7D4R+4SZ6j7qnd9qpg3FmHYQI/3lvgkNXN0jyk5fJd/xGhE\n/K6KbZ9Xwvhbn5fvURlvT19xhkxq9IqIDMhhyJmrliRm35a7XY4DwRTboJ50\nz1mqXPP35cObo82kJ/OyioIBX/P9vMnbPPuJhr+ZWPjJeHHI6lOmPj1nNiW3\nbjwVL3v9J/sCqYZh9qntFqjVRDeCsg1cTRhsvnTCqKg2gFOk+xwjKkEmhrQI\n62ou+V+Hqs0Oz5uVQTZRST2y6fk2i7A8FW60ScbNVGQN93k6XKlUsnZZ2EeG\nygiGK0gj2XqnL4pG28xVvN2BOlSPmV/jt8k3c2ftojLnVCik3+ryIYjmz9PF\nbA5vAB5JSKngFUALFEWyCABCC1Hs29cJSkqLTrjgBdBduBvM8rvgZX/jEepg\nAbdGMdB+h6YGB6sjcQ6z7oUm+YGPBw9whH03oZVdvQYG3zN643EICpkCS34F\nZPUb\r\n=MgwV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCApDfYepPMd3VynyIpSgxRVKNSzlq45k+v2q2jrhmR2wIhAL5Hf1o6E9jq3WcnZlkAgpqfAj0fjNB8MmBWPagpzO7E"}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_7.0.2-windows-ee057ef_1535401077554_0.23718919084822265"},"_hasShrinkwrap":false},"7.0.2-windows-82f6f7b":{"name":"resin-preload","version":"7.0.2-windows-82f6f7b","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"readme":"# resin-preload\n[![npm](https://img.shields.io/npm/v/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm license](https://img.shields.io/npm/l/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm downloads](https://img.shields.io/npm/dm/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n\nScript for preloading resin.io OS images (`.img`) with a user application container.\n\nUsing this will allow images with supervisor version above 1.0.0 to run the user application without connectivity, and without the need to download the container.\n\n## Warning\n\nIn order to preload images that use the overlay2 Docker storage driver (like\nnvidia jetson tx2 for example), you need to load the `overlay` Linux module:\n\n```sh\nsudo modprobe overlay\n```\n\nFor other images you will need to have the `aufs` module loaded.\n\n\n## Deprecation\n\nThe standalone mode described below (resin-preload) is now deprecated.\nIt will be removed in a future release.\nYou should use [resin-cli](https://www.npmjs.com/package/resin-cli) instead.\n\nInstall [resin-cli](https://www.npmjs.com/package/resin-cli) and run\n`resin help preload`.\n\n\n## Install via [npm](https://npmjs.com)\n\n```sh\n$ npm install --global resin-preload\n```\n\n<!-- MarkdownTOC -->\n\n- [Requirements](#requirements)\n- [Command Line Usage](#command-line-usage)\n    - [Example](#example)\n    - [Additional Options](#additional-options)\n    - [Custom Splash Screen](#custom-splash-screen)\n- [Module usage](#module-usage)\n- [Contributing](#contributing)\n- [Known Issues](#known-issues)\n    - [Speed Issues For Flasher Images on macOS](#speed-issues-for-flasher-images-on-macos)\n    - [Version Compatibility](#version-compatibility)\n    - [BTRFS Support](#btrfs-support)\n\n<!-- /MarkdownTOC -->\n\n\n## Requirements\n\n- [Node](https://nodejs.org)\n- [Docker](https://www.docker.com) tested on 1.12.6 and up but 17.04 or up is recommended especially on macOS, [docker-toolbox](https://www.docker.com/products/docker-toolbox) is not supported.\nOlder versions of resin-preload do support docker-toolbox, see [Version Compatibility](#version-compatibility) below.\n\n## Command Line Usage\n\n```\nUsage: resin-preload [options]\n\nOptions:\n\n  --app            Application ID (required)\n  --img            Disk image (or Edison zip file) to preload into (required)\n  --api-token      API token (required, or api-key)\n  --api-key        API key (required, or api-token)\n  --commit         App commit to be preloaded (default: latest)\n  --api-host       API host (default: \"https://api.resin.io\", the TLD will also be used for registry2 requests)\n  --splash-image   PNG Image for custom splash screen\n\n  --dont-check-arch          Disables check for matching architecture in image and application\n\n  --help, -h       Display resin-preload usage\n  --version, -v    Display resin-preload version\n\nEnvironment variables:\n\n  The following option flags can also be set\n  via the corresponding environment variables:\n\n  --app                               APP_ID\n  --img                               IMAGE\n  --api-token                         API_TOKEN\n  --api-key                           API_KEY\n  --commit                            COMMIT\n  --api-host                          API_HOST\n  --splash-image                      SPLASH_IMAGE\n  --dont-check-arch                   DONT_CHECK_ARCH\n\nExample:\n\n  resin-preload --app 123456 --api-token \"xxxx...\" --img /path/to/resin-os.img\n\n```\n\nIf using environment variables, this program requires the following options to be set:\n\n  * `IMAGE`: The path to the OS image you downloaded for the `APP_ID` you want to target.\n  * `APP_ID`: ID of the App that will be assigned to the device. It can be extracted from the URL in the Resin dashboard,\n     for instance `https://dashboard.resin.io/apps/2167` means the `APP_ID` is `2167`.\n  * `API_TOKEN`: Authentication token for Resin, taken from the [preferences page](https://dashboard.resin.io/preferences/details). \n\n\n### Example\n\n**NOTE:** Before running the example below, make sure that you have successfully pushed to the app and\nthat the `Application commit` is the correct version of the code you intend to preload.\n\nDownload an OS image from the Resin dashboard and then run:\n\n1) Using option flags for configuration:\n\n```bash\n$ resin-preload --app 123456 --api-token \"XXX...\" --img /path/to/resin.img\n```\n\n2) Using environment variables for configuration:\n\n```bash\n# Set the environment variables\n$ export API_TOKEN=... # copy from dashboard preferences\n$ export APP_ID=... # id of your application (you can see it on dashboard URL when you visit your app page)\n$ export IMAGE=/path/to/resin.img\n\n# As all required options have been set via environment variables,\n# there's no need to pass any options, just run\n$ resin-preload\n```\n\nThe `/path/to/resin.img` file, will now have the latest version of your application preloaded.\n\n### Additional Options\n\n* Alternatively to `API_TOKEN`, you can use an `API_KEY` variable with an API key from a config.json file or the [SDK](https://github.com/resin-io/resin-sdk/blob/master/DOCUMENTATION.md#resin.models.application.getApiKey).\n* `API_HOST`: Address of the Resin API. If unsure, use `https://api.resin.io`.\n* `SPLASH_IMAGE`: Path to a custom splash image, to copy into the preloaded OS image\n\n### Custom Splash Screen\n\nAt this time, the custom splash screen image needs to be a PNG.\nFor more details on splash images, see:\n  - [The Resin.io Notes – What are we working on / Revamping Splash Screens](https://forums.resin.io/t/what-are-we-working-on-the-resin-io-notes/414/7)\n  - [Documenting the custom boot splash screen](https://github.com/resin-io/docs/issues/155)\n  - [resin-io/resin-plugin-img](https://github.com/resin-io/resin-plugin-img)\n\n## Module usage\n\nPlease check bin/resin-preload\n\n## Contributing\n\n### Install from github\n\n * Clone this repo: `git clone git@github.com:resin-io/resin-preload.git`\n * Change directory: `cd resin-preload`\n * Install dependencies: `npm i`\n * Run resin-preload: `./bin/resin-preload`\n\n### Issues\n\n If you encounter any problem, you can [open an issue](https://github.com/resin-io/resin-preload/issues)\n\n## Known Issues\n\n### Speed Issues For Flasher Images on macOS\n\nDocker on macOS has [some speed issues with volumes](https://github.com/docker/for-mac/issues/77).\nThis makes this script slow, especially with Flasher Images.\n\n### Version Compatibility\n\nThis version will only work for Resin OS versions 1.2 and later.\nFor versions earlier than 1.2 you will need to checkout commit `5d6d4607bffc98acdf649ce5328e2079dfb9c3d9` of this repo and then follow the steps below. \n\n### BTRFS Support\n\nSince Docker for Mac removed support for the BTRFS storage driver (see [docker/for-mac/issues/388](https://github.com/docker/for-mac/issues/388)), preloading images prior to Resin OS 2.0 will require the older [Docker toolbox](https://docs.docker.com/toolbox/toolbox_install_mac/) setup with [VirtualBox](https://www.virtualbox.org/) to function properly.\n","readmeFilename":"README.md","gitHead":"82f6f7b75e998a3d0671bbf4fd4f0ef586000d51","_id":"resin-preload@7.0.2-windows-82f6f7b","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-SWumMadkX1t2ohkLkTHCLxZghy67bIKZTswZXe0ecfb7SW1IBEQ6iY6zGbCTOUA1XLpBWHhPildvNf3Lsq6z2w==","shasum":"3df156a54e8de0ff0d81e46165abaa51f73986ae","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-7.0.2-windows-82f6f7b.tgz","fileCount":9,"unpackedSize":83528,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhGTrCRA9TVsSAnZWagAAq/EP+wXseA7bUkOzU8/wo2V/\n26CWYNee2Te77ktNHhYJqHSJP4WWkJ6fbYiVsB+ZyySZ+NARFGdLvVz3he1b\nt5EJUBpHSijBN/yLLOLG7OCPqZ7oQFhU2UEZtfLd6cWNHgT8He/nXpqeGSGC\ntd1pEkefZI+ocE8hOT6aD3UmJyLiUGPdQmVzjkziJLEe4YZyyCITQmFt2R9U\noMW8gVnRfFMYzwTPgTemSXe1/0JqU3EJTfsIUU6DF2a7W8ezff8Fg06TWvhz\n/P1c/1jS2VQMm4EXgrASjxy3Phhamh1N6iFFnJcoCswahqzsCxCI5eP9JvcO\nnHPn2I31qzwtEYMwbZwuFlWEl2M/QIjWr3xdG171fXRnBTc5tjWnu8Ghtaq/\npvwAxH9Va/PLUXL4kk4K3Bz6ar7TdaI6mMN5j0QoBOEPj4XtJxMC1FXRXvzB\nOwRrqwbL4xaaHvGTQxI1pkvMgi6AA6oZE9KijO+6gvvSGp7U+pdJtGovuOOp\nSWJ74n3YkIM40INbgII2a/sEasl5D0wKhG9Z73M8iN1u2voJeXYNVWAf+Q+O\nmT4IMMPrk5s140Rb6B+ZV00NFzPv44pW2sgs35Iynvdmp+hJCGGYQUCBFw8G\nUKoaOTF/8HM2CBus2cDNmKs0e5ZWRPghrmZhvpTS2Xuirdu49sVkTS4gmnF2\nWO0d\r\n=sCDw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGplzGcAcygzKMysQpR9k2H2f+wWbPp37JQZ3ThEoexTAiEA5s8NK3593kdr6oronDkkX9VjBOmyJfNcJ7Lifrah0HU="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_7.0.2-windows-82f6f7b_1535403242931_0.9233633713339249"},"_hasShrinkwrap":false},"7.0.2":{"name":"resin-preload","version":"7.0.2","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"6947651110d665bdd824b5a369c544b812f67718","_id":"resin-preload@7.0.2","_shasum":"a2422a1a3fa97519c1bc33b88ae4308b48282952","_from":".","_npmVersion":"3.10.10","_nodeVersion":"8.10.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"a2422a1a3fa97519c1bc33b88ae4308b48282952","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-7.0.2.tgz","integrity":"sha512-4+g7aeDPmVslKj2urpw8EIT2zgdSyxgtN57fr7Vib6wYFA7R2KxVMECfgWjpND9xEvrpZR+ikG29usRXL/lFHw==","fileCount":9,"unpackedSize":83522,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhRGdCRA9TVsSAnZWagAAVH0P/iLIZVJb83LX3RxL/iyJ\ntkfWqNglQ6dZX1NPsxtHzJKFCnzQMyDv5ZwId06d/ZC/T3b5wYE/EBF4mct9\npx9jFHKcFU+shBw8KIQDENqiHWZldwcapTLC+jU37DbqbZzD/Oj4EE99+lfZ\niN1HyU4aEjXzNyGW6AqHZkr0HJSv+zMBWvM9cKFvjs8lyJsWBbGMpy2oNbSj\nq5suoa2yS/YZN+yH8QKtTUFxCaqGb8nZJWbhcBfLHFRjAAg5ZFfSxU+tDOA5\n3gk/gwEuoMNVFRrkYRcH10sL1FLtC2rqrHnH1/Y8A/GHn0Hq8GZtJ+L2SVcC\nR8bHXpHf++aKFVegmCno7gWRcZkrrjjfa6nr/XbE0UPff1lrzXHAdt2D8pyW\nnyKuAjLdibipz4IU7rlmLLg1GJ62jQlyp9E2vGNrZV2ChtnR2CIV1aYU2nEb\nAk6QQ0xbS0naQKjGvJSqqrczco0v90nN02oTVtIc1jJtDwUFuO4hvLv3qUpG\nhLHrpe2BGmY/YhJcTHqh+IKG6ttaN7arS2H2dM+pqgbuLyh2WXrD9OwOqh0j\ndX/7QPL+ALb/EkeWphHBVQK7dqSU8H+BwlXVfJZSBzJJgDyEJSS1BEo9QaRr\nC5G1Hsz66uMV+0yp3xmp4AE8NeAxVYD+P9w9o8IYQWUAsjqP2FHGzKFbBd7p\nR+Sr\r\n=sI6I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICInDDtMYRao/bh/uN0QxMr1LML/plUqHc2GZFIofTerAiEA4SDLByH4KhJSmDEXAsQynUddkGY0Vh23euEWU4jCGtY="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_7.0.2_1535447453200_0.4063290378157056"},"_hasShrinkwrap":false,"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"6.3.3":{"name":"resin-preload","version":"6.3.3","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","files":["bin/resin-preload","lib/preload.js","src/preload.py","Dockerfile","requirements.txt"],"dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"68aac2fcad0ffda09ad7fb301fdd6a4970f3bae4","_id":"resin-preload@6.3.3","_shasum":"dc4f218f52296422222bcffc16cb5b307e070851","_from":".","_npmVersion":"3.10.10","_nodeVersion":"8.10.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"dc4f218f52296422222bcffc16cb5b307e070851","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.3.3.tgz","integrity":"sha512-crVb/1jbLfkBWRsZvr34S8I0pC2sfMhTCiWbusnqUMGPocUJVCZN+QljVFtxlX0UKOfGl+XtuQkKt6YgDonK1A==","fileCount":10,"unpackedSize":88477,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhVI0CRA9TVsSAnZWagAA3noP/3FsLW5PQUcDIPMJdiao\ntHm4aa3eAUAWjZcBSr/KD31p3o56HsQGSoWGJ3kUbvaZHbE4iiQtvV/cigsq\nG/Holz3QrbvLZUb4r3rRvmK7erO8Vm/HFbLc+RNocMP9Zt7jEYYWmJx6hRWZ\npgkV3Tw4tuX1wV9h8rVhkqeBahbW/iFXGBnn0doa7Lg1+SNm5hKwF2ofS3IY\noL38SNxsurVXsk3fXnS821v9wktGac31tOiMCGJDsqvgiCbinJf2T6tRTN/R\nXnDIhysMl5DZVjlULA6xCEkdF5Ysot6CENSmWudMJRFQllyrpVeYu+CcIsYS\nJUzBLD5L3cJspsLmZ531PTNH0RCQ41NjXE4EC9sKVkqtcxOp45If5I6mon82\nJa+7DFD7pOGXSWskepPgwXFiRvGhCWeYKBm/OJ6itJx+Y+8Ki7T3muVJoVV3\nhJPz/EHNryFQOYqYM2lfXNeOY7spPV74j5DKjntiy8HUQ6dgivFueZFoCO40\nu8deACVk1JDhPC+Hy3an2leVETYaOzPH148emVRjGzp2P4nrKlluJX76bFqQ\naQQiDV54GqMhDPPkcgKz64RS6RuC6+/ixr8Ot5arioAbYVUA9fR9dK8JZPVs\n21X8ZVGvtL2oDMULasFbMqESA9Qe6Wdczbwa8tt+svb672Q2QAgJVt4S3KMi\nICyd\r\n=EU3D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBHvUFrxjPWCuAfqN3RyK+w0iMByR2OwvuoYCDXVkv/GAiEAkjWX4RiCEMiPxM588mSZVDq8Jmo9t1pHN2QzoHjDTjg="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_6.3.3_1535463988151_0.8802300875569924"},"_hasShrinkwrap":false,"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"7.0.3-use-localhost-on-windows-1a4d548":{"name":"resin-preload","version":"7.0.3-use-localhost-on-windows-1a4d548","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"readme":"# resin-preload\n[![npm](https://img.shields.io/npm/v/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm license](https://img.shields.io/npm/l/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm downloads](https://img.shields.io/npm/dm/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n\nScript for preloading resin.io OS images (`.img`) with a user application container.\n\nUsing this will allow images with supervisor version above 1.0.0 to run the user application without connectivity, and without the need to download the container.\n\n## Warning\n\nIn order to preload images that use the overlay2 Docker storage driver (like\nnvidia jetson tx2 for example), you need to load the `overlay` Linux module:\n\n```sh\nsudo modprobe overlay\n```\n\nFor other images you will need to have the `aufs` module loaded.\n\n\n## Deprecation\n\nThe standalone mode described below (resin-preload) is now deprecated.\nIt will be removed in a future release.\nYou should use [resin-cli](https://www.npmjs.com/package/resin-cli) instead.\n\nInstall [resin-cli](https://www.npmjs.com/package/resin-cli) and run\n`resin help preload`.\n\n\n## Install via [npm](https://npmjs.com)\n\n```sh\n$ npm install --global resin-preload\n```\n\n<!-- MarkdownTOC -->\n\n- [Requirements](#requirements)\n- [Command Line Usage](#command-line-usage)\n    - [Example](#example)\n    - [Additional Options](#additional-options)\n    - [Custom Splash Screen](#custom-splash-screen)\n- [Module usage](#module-usage)\n- [Contributing](#contributing)\n- [Known Issues](#known-issues)\n    - [Speed Issues For Flasher Images on macOS](#speed-issues-for-flasher-images-on-macos)\n    - [Version Compatibility](#version-compatibility)\n    - [BTRFS Support](#btrfs-support)\n\n<!-- /MarkdownTOC -->\n\n\n## Requirements\n\n- [Node](https://nodejs.org)\n- [Docker](https://www.docker.com) tested on 1.12.6 and up but 17.04 or up is recommended especially on macOS, [docker-toolbox](https://www.docker.com/products/docker-toolbox) is not supported.\nOlder versions of resin-preload do support docker-toolbox, see [Version Compatibility](#version-compatibility) below.\n\n## Command Line Usage\n\n```\nUsage: resin-preload [options]\n\nOptions:\n\n  --app            Application ID (required)\n  --img            Disk image (or Edison zip file) to preload into (required)\n  --api-token      API token (required, or api-key)\n  --api-key        API key (required, or api-token)\n  --commit         App commit to be preloaded (default: latest)\n  --api-host       API host (default: \"https://api.resin.io\", the TLD will also be used for registry2 requests)\n  --splash-image   PNG Image for custom splash screen\n\n  --dont-check-arch          Disables check for matching architecture in image and application\n\n  --help, -h       Display resin-preload usage\n  --version, -v    Display resin-preload version\n\nEnvironment variables:\n\n  The following option flags can also be set\n  via the corresponding environment variables:\n\n  --app                               APP_ID\n  --img                               IMAGE\n  --api-token                         API_TOKEN\n  --api-key                           API_KEY\n  --commit                            COMMIT\n  --api-host                          API_HOST\n  --splash-image                      SPLASH_IMAGE\n  --dont-check-arch                   DONT_CHECK_ARCH\n\nExample:\n\n  resin-preload --app 123456 --api-token \"xxxx...\" --img /path/to/resin-os.img\n\n```\n\nIf using environment variables, this program requires the following options to be set:\n\n  * `IMAGE`: The path to the OS image you downloaded for the `APP_ID` you want to target.\n  * `APP_ID`: ID of the App that will be assigned to the device. It can be extracted from the URL in the Resin dashboard,\n     for instance `https://dashboard.resin.io/apps/2167` means the `APP_ID` is `2167`.\n  * `API_TOKEN`: Authentication token for Resin, taken from the [preferences page](https://dashboard.resin.io/preferences/details). \n\n\n### Example\n\n**NOTE:** Before running the example below, make sure that you have successfully pushed to the app and\nthat the `Application commit` is the correct version of the code you intend to preload.\n\nDownload an OS image from the Resin dashboard and then run:\n\n1) Using option flags for configuration:\n\n```bash\n$ resin-preload --app 123456 --api-token \"XXX...\" --img /path/to/resin.img\n```\n\n2) Using environment variables for configuration:\n\n```bash\n# Set the environment variables\n$ export API_TOKEN=... # copy from dashboard preferences\n$ export APP_ID=... # id of your application (you can see it on dashboard URL when you visit your app page)\n$ export IMAGE=/path/to/resin.img\n\n# As all required options have been set via environment variables,\n# there's no need to pass any options, just run\n$ resin-preload\n```\n\nThe `/path/to/resin.img` file, will now have the latest version of your application preloaded.\n\n### Additional Options\n\n* Alternatively to `API_TOKEN`, you can use an `API_KEY` variable with an API key from a config.json file or the [SDK](https://github.com/resin-io/resin-sdk/blob/master/DOCUMENTATION.md#resin.models.application.getApiKey).\n* `API_HOST`: Address of the Resin API. If unsure, use `https://api.resin.io`.\n* `SPLASH_IMAGE`: Path to a custom splash image, to copy into the preloaded OS image\n\n### Custom Splash Screen\n\nAt this time, the custom splash screen image needs to be a PNG.\nFor more details on splash images, see:\n  - [The Resin.io Notes – What are we working on / Revamping Splash Screens](https://forums.resin.io/t/what-are-we-working-on-the-resin-io-notes/414/7)\n  - [Documenting the custom boot splash screen](https://github.com/resin-io/docs/issues/155)\n  - [resin-io/resin-plugin-img](https://github.com/resin-io/resin-plugin-img)\n\n## Module usage\n\nPlease check bin/resin-preload\n\n## Contributing\n\n### Install from github\n\n * Clone this repo: `git clone git@github.com:resin-io/resin-preload.git`\n * Change directory: `cd resin-preload`\n * Install dependencies: `npm i`\n * Run resin-preload: `./bin/resin-preload`\n\n### Issues\n\n If you encounter any problem, you can [open an issue](https://github.com/resin-io/resin-preload/issues)\n\n## Known Issues\n\n### Speed Issues For Flasher Images on macOS\n\nDocker on macOS has [some speed issues with volumes](https://github.com/docker/for-mac/issues/77).\nThis makes this script slow, especially with Flasher Images.\n\n### Version Compatibility\n\nThis version will only work for Resin OS versions 1.2 and later.\nFor versions earlier than 1.2 you will need to checkout commit `5d6d4607bffc98acdf649ce5328e2079dfb9c3d9` of this repo and then follow the steps below. \n\n### BTRFS Support\n\nSince Docker for Mac removed support for the BTRFS storage driver (see [docker/for-mac/issues/388](https://github.com/docker/for-mac/issues/388)), preloading images prior to Resin OS 2.0 will require the older [Docker toolbox](https://docs.docker.com/toolbox/toolbox_install_mac/) setup with [VirtualBox](https://www.virtualbox.org/) to function properly.\n","readmeFilename":"README.md","gitHead":"1a4d548dcc26aa5b15aee937189b60405e56b3cb","_id":"resin-preload@7.0.3-use-localhost-on-windows-1a4d548","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-3iFsa3sSDw0dyFUJFaEgl80vFRu19EWU15vQ26Di/QygpnM4sfl0Isf3lVpn/d6yYpSmrLduOiyZqRotOJJxvw==","shasum":"dda1b80e055ac7a349648f6d3e62e5abb1d08b1d","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-7.0.3-use-localhost-on-windows-1a4d548.tgz","fileCount":9,"unpackedSize":83843,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhq6/CRA9TVsSAnZWagAAfJMP+gI8piAfX7Id1sCKbtRY\nm2qz9Gpa0UGrvWbF3GJWf/Om244GiWTl3OVtzZA+jRxMgsrTrAu6kQEJIWMg\nHU0PYlo04UflXn9VI4ywdRosFf9hJqFiTc8a/u1YodiLnh2gHkVUJ2MbySw3\nulTdfsh6PUVA7/bv9MoY3dJOknSIyX3HtS0gMc/I/E4vm393DGnblndgOX4J\nDbllrnGoDYdAzX0TMJWPglaRWEZCrH9qIC7su887gjaiB6Sj6+I5J22obSst\n2F8WKNzoPX1dE80eTWLll8LffpXLSTULN4BShYluCuOnFsvqi9HMBErJNBAa\neanfNjlSbjWrCOiNiaaqoF7mAn81rq1llPg5j4odmU6K9ZiZP9CpH6gN4fyU\ngtcv8Uwr/Knj7ujPMh93Xhtj/wBzU3y8HDtHfatbX0MctfQb3slYgfXJ2DbQ\ncQ6X+rADdhh0Xcb1OlM8Ww/ZBWZFmo67s031xWZfW0N9+RwB49V00oGP2ht6\nP045diGdz2QzSA1QZgZZ/Soz8VQY+Ltn6iiPav/yu3ehDFRuz70KBF090Ew9\nfzZtKUBNdDvFZFtvfDTRqbuqlBs5J/wdQ+AJ1k+VR15QmKivoSRedkZkzwQO\nP75760M1Vy2ynFR5CkvXKsD+FSPHJEVPhiUwb2OxCSPmXZS91xw2SxZUYkdZ\nbsEU\r\n=kt2l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCADWQevQkdyh1D/9WIKaSJ6fza5gOzB0N/o74KrMapvwIgSlZ3vu+nQQpTgVk7NI/ufRYpLcnB6XdWkurLqban9SU="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_7.0.3-use-localhost-on-windows-1a4d548_1535553214364_0.4862616307240202"},"_hasShrinkwrap":false},"7.0.3-use-localhost-on-windows-540ea0c":{"name":"resin-preload","version":"7.0.3-use-localhost-on-windows-540ea0c","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"readme":"# resin-preload\n[![npm](https://img.shields.io/npm/v/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm license](https://img.shields.io/npm/l/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm downloads](https://img.shields.io/npm/dm/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n\nScript for preloading resin.io OS images (`.img`) with a user application container.\n\nUsing this will allow images with supervisor version above 1.0.0 to run the user application without connectivity, and without the need to download the container.\n\n## Warning\n\nIn order to preload images that use the overlay2 Docker storage driver (like\nnvidia jetson tx2 for example), you need to load the `overlay` Linux module:\n\n```sh\nsudo modprobe overlay\n```\n\nFor other images you will need to have the `aufs` module loaded.\n\n\n## Deprecation\n\nThe standalone mode described below (resin-preload) is now deprecated.\nIt will be removed in a future release.\nYou should use [resin-cli](https://www.npmjs.com/package/resin-cli) instead.\n\nInstall [resin-cli](https://www.npmjs.com/package/resin-cli) and run\n`resin help preload`.\n\n\n## Install via [npm](https://npmjs.com)\n\n```sh\n$ npm install --global resin-preload\n```\n\n<!-- MarkdownTOC -->\n\n- [Requirements](#requirements)\n- [Command Line Usage](#command-line-usage)\n    - [Example](#example)\n    - [Additional Options](#additional-options)\n    - [Custom Splash Screen](#custom-splash-screen)\n- [Module usage](#module-usage)\n- [Contributing](#contributing)\n- [Known Issues](#known-issues)\n    - [Speed Issues For Flasher Images on macOS](#speed-issues-for-flasher-images-on-macos)\n    - [Version Compatibility](#version-compatibility)\n    - [BTRFS Support](#btrfs-support)\n\n<!-- /MarkdownTOC -->\n\n\n## Requirements\n\n- [Node](https://nodejs.org)\n- [Docker](https://www.docker.com) tested on 1.12.6 and up but 17.04 or up is recommended especially on macOS, [docker-toolbox](https://www.docker.com/products/docker-toolbox) is not supported.\nOlder versions of resin-preload do support docker-toolbox, see [Version Compatibility](#version-compatibility) below.\n\n## Command Line Usage\n\n```\nUsage: resin-preload [options]\n\nOptions:\n\n  --app            Application ID (required)\n  --img            Disk image (or Edison zip file) to preload into (required)\n  --api-token      API token (required, or api-key)\n  --api-key        API key (required, or api-token)\n  --commit         App commit to be preloaded (default: latest)\n  --api-host       API host (default: \"https://api.resin.io\", the TLD will also be used for registry2 requests)\n  --splash-image   PNG Image for custom splash screen\n\n  --dont-check-arch          Disables check for matching architecture in image and application\n\n  --help, -h       Display resin-preload usage\n  --version, -v    Display resin-preload version\n\nEnvironment variables:\n\n  The following option flags can also be set\n  via the corresponding environment variables:\n\n  --app                               APP_ID\n  --img                               IMAGE\n  --api-token                         API_TOKEN\n  --api-key                           API_KEY\n  --commit                            COMMIT\n  --api-host                          API_HOST\n  --splash-image                      SPLASH_IMAGE\n  --dont-check-arch                   DONT_CHECK_ARCH\n\nExample:\n\n  resin-preload --app 123456 --api-token \"xxxx...\" --img /path/to/resin-os.img\n\n```\n\nIf using environment variables, this program requires the following options to be set:\n\n  * `IMAGE`: The path to the OS image you downloaded for the `APP_ID` you want to target.\n  * `APP_ID`: ID of the App that will be assigned to the device. It can be extracted from the URL in the Resin dashboard,\n     for instance `https://dashboard.resin.io/apps/2167` means the `APP_ID` is `2167`.\n  * `API_TOKEN`: Authentication token for Resin, taken from the [preferences page](https://dashboard.resin.io/preferences/details). \n\n\n### Example\n\n**NOTE:** Before running the example below, make sure that you have successfully pushed to the app and\nthat the `Application commit` is the correct version of the code you intend to preload.\n\nDownload an OS image from the Resin dashboard and then run:\n\n1) Using option flags for configuration:\n\n```bash\n$ resin-preload --app 123456 --api-token \"XXX...\" --img /path/to/resin.img\n```\n\n2) Using environment variables for configuration:\n\n```bash\n# Set the environment variables\n$ export API_TOKEN=... # copy from dashboard preferences\n$ export APP_ID=... # id of your application (you can see it on dashboard URL when you visit your app page)\n$ export IMAGE=/path/to/resin.img\n\n# As all required options have been set via environment variables,\n# there's no need to pass any options, just run\n$ resin-preload\n```\n\nThe `/path/to/resin.img` file, will now have the latest version of your application preloaded.\n\n### Additional Options\n\n* Alternatively to `API_TOKEN`, you can use an `API_KEY` variable with an API key from a config.json file or the [SDK](https://github.com/resin-io/resin-sdk/blob/master/DOCUMENTATION.md#resin.models.application.getApiKey).\n* `API_HOST`: Address of the Resin API. If unsure, use `https://api.resin.io`.\n* `SPLASH_IMAGE`: Path to a custom splash image, to copy into the preloaded OS image\n\n### Custom Splash Screen\n\nAt this time, the custom splash screen image needs to be a PNG.\nFor more details on splash images, see:\n  - [The Resin.io Notes – What are we working on / Revamping Splash Screens](https://forums.resin.io/t/what-are-we-working-on-the-resin-io-notes/414/7)\n  - [Documenting the custom boot splash screen](https://github.com/resin-io/docs/issues/155)\n  - [resin-io/resin-plugin-img](https://github.com/resin-io/resin-plugin-img)\n\n## Module usage\n\nPlease check bin/resin-preload\n\n## Contributing\n\n### Install from github\n\n * Clone this repo: `git clone git@github.com:resin-io/resin-preload.git`\n * Change directory: `cd resin-preload`\n * Install dependencies: `npm i`\n * Run resin-preload: `./bin/resin-preload`\n\n### Issues\n\n If you encounter any problem, you can [open an issue](https://github.com/resin-io/resin-preload/issues)\n\n## Known Issues\n\n### Speed Issues For Flasher Images on macOS\n\nDocker on macOS has [some speed issues with volumes](https://github.com/docker/for-mac/issues/77).\nThis makes this script slow, especially with Flasher Images.\n\n### Version Compatibility\n\nThis version will only work for Resin OS versions 1.2 and later.\nFor versions earlier than 1.2 you will need to checkout commit `5d6d4607bffc98acdf649ce5328e2079dfb9c3d9` of this repo and then follow the steps below. \n\n### BTRFS Support\n\nSince Docker for Mac removed support for the BTRFS storage driver (see [docker/for-mac/issues/388](https://github.com/docker/for-mac/issues/388)), preloading images prior to Resin OS 2.0 will require the older [Docker toolbox](https://docs.docker.com/toolbox/toolbox_install_mac/) setup with [VirtualBox](https://www.virtualbox.org/) to function properly.\n","readmeFilename":"README.md","gitHead":"540ea0c49e13fbdd5401098a254925a7e535a587","_id":"resin-preload@7.0.3-use-localhost-on-windows-540ea0c","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-9u9ROa3ewA5+yfek8MQzW/XPGw2Bfu2czr9azhGV59L5Y7nvDzuhH6gL3YyJ85unVw+PqvJCmJa0dmwRNC/jIQ==","shasum":"ca04d594c2c9ca10543d5b6ee3cfc89ece845e33","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-7.0.3-use-localhost-on-windows-540ea0c.tgz","fileCount":9,"unpackedSize":83839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhrMuCRA9TVsSAnZWagAAYXAP/3ItB1dVG9iPit/f+yaM\nJf+mKwR1yZPds1WbWX61eUj7HtM73tIJtYuC375WJqo3oCfncdPp/BdXlv1K\nrTLsLNKKR9cYgIPfNgOd7Nfnbn4NJ0BzDzqkBNd/MKnaQGh3GnnU5D2P7hRl\nC5BSbtOwE+p+fKt2sjMT18yeb0MAMqlg/WGwwwjIhlJLl/y0/2ljAYcrqNgf\nIcaqBUUS2Oy6ixKOg7ewp77Z5cDBXkKawZsaf15pOT0VftbWGD1LUedNJ/73\nopXmMCEke6gRuLaIowl4IncRRC0lv9wV9CccXs0eTl1IChhGeDerRwV7lIsx\njg/DwHb5G0wqNyzNPSuIymTkar0STSV/YkjRsvEvvpC0H12QGJZe7nWmG+d4\nHFqHNVWgw1Ia4saO1T25IaPaWlFhgE0KwN129PZwm6iRmc6AdPeM18nsJm5C\nO5fr4nrvKaGER3ozI/zlZ3QSJBi490W1q8FjZIco0AbyrPl8NsXoWA+QqMwO\nnkl/qey5WtZ/LYxUehANdHTwhnvt3CzkecoD/FBtWwbKlJ4yqZ5MA7e/5mkL\nM/FtMNhe8rd6f7fErCyXKp20bEv6a01cwiEj9xZ0cURWh8fNbX3aCru71DWI\nLG7AHFxwWFPwEss4Nf9otFIEu3mIdJONHIngtjvKfO+3immsAU0sLEa+PFOi\ne1kN\r\n=TBUx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCnFm+5c08PJb/Tt5NzmUTfQZbjoiISpDv1sepMKh0reQIgNriR/32MEYKfxHC8egK6Elz0bGHSRZ5M2G7savwhAxA="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_7.0.3-use-localhost-on-windows-540ea0c_1535554349966_0.17847468089694152"},"_hasShrinkwrap":false},"7.0.3":{"name":"resin-preload","version":"7.0.3","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"f82530545c52e3582306b192f162be3a919c8694","_id":"resin-preload@7.0.3","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-LmLh1jpyhCramxWWkd9kq3Oz+Zci7SbvbBg9G2DU4xxPIP7HTB+heb3bfq0UYINiX7V5rmJ18PHHQ7W2DG/YOg==","shasum":"143971ff83dc94410f65d4e48962cb228dfc3f18","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-7.0.3.tgz","fileCount":9,"unpackedSize":83806,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhtTMCRA9TVsSAnZWagAA7uEP/A3MCG3WDi3LqyVGbK3x\nvvAJEZjudC3spu4HpJ3q6G+4kljrigbm2P7G5tnQNVe2twxWLtZhR7YQAsmO\nSG4Ie1bCIuz1aA458jdGUNNwnQlKbYaRhjp0bsTOaDxgrhnnIEfgQ9/3yjES\nG4cBKKHrFsMD9gwRUeJZK1kATueS6Ol/d9NdA38LV61iF9+/u5AYfYKHvTsm\nBYAIJ5pdKjxFm1nHYVhQ+AMGZkTsegaUP8HY7uP0nvjWAVvSfun7ZUumqj45\nDjoLJRuFHtSOQSvakDUkA8O6gIWJRyI33t+AXXMvfR/mTbhbeHzAmGedZJ3D\n5a8tgPTrsrWIm94fYTwWEgzuBgYCgEtSYaT769FAqv1qqk1owmWXK4aLQadb\nUowYIFEbY9EXeBivE7vbWK1CLPSAp9UfOHrmMr8w8dbDJ4CEok6BDIZI6D+0\naciYpTve7QnSVXuEFpvhWrhEjKWToCZjaV+1bHhLq9ne65DDQ5ib3aUBYRzr\nQOI9WSRB0KKBAaIvLbVIs2PH689eFKPx+63zWSn3RnpgVDHo8vjzzo4g6OzM\nsda4iz5v8JKeuwnuFbxjRBcgEO/8SLivZehp03t20vLL/1L9qARJnXvVVsMI\nv7XfC4StgRlfS5TPROAs4cVORLdW4ymHCGPwtT493e+cnwbvvkTFvItDlBmP\nC/r6\r\n=9vmf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFrlRnF9oBEcGnJc68l39uY2cGH8fhMkIV/aoFdLJQ6RAiEAjGlFn4HMoLUABqWuRSfpAPJwSKo8CuAf7RJPIAZ4rB4="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_7.0.3_1535562956151_0.3505895317630958"},"_hasShrinkwrap":false,"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"6.3.4":{"name":"resin-preload","version":"6.3.4","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"c04d9d2957bf7abc3c503e6f2e48fca8d478c73d","_id":"resin-preload@6.3.4","_shasum":"944badf9f01e0e94791760600e769198ad0282be","_from":".","_npmVersion":"3.10.10","_nodeVersion":"8.10.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"944badf9f01e0e94791760600e769198ad0282be","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.3.4.tgz","integrity":"sha512-SA60M458zpm7/Og+mjK4UNh6HHNWTEJEMvenpYLADf1/jPY7B8T7CNwMK584FYm/9CkZsOdRm03R4T4kMmJ8gQ==","fileCount":10,"unpackedSize":88649,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhtTWCRA9TVsSAnZWagAARe8P/RLYy/Q+6yjGrPsA8idt\nSTlmMuO6fsMthpi7J/T5MU9q6AMo7r4/CYm/qpFgj8pCUCnmsJ6hV+xXt6Dg\n1Ix0L0f4WnIT/isnrVP6iV1vQgTMnf5GMaIVC+yoq3jeCb45Fvq077QvCPCp\nH0SJ3nY00JXpBz+RM/zoP+e4Wb9j40Luut7Ec2HBt3fCZT33Jpn2twlJEtvP\nQcmjvDM/kP/io9r8qvZSZ+Jo69w47Xxc65C7/QT28rKazaEcNeSUKFGju6dT\n2Azg79LRS98u5D9c0+F4n1dW408hlTxm5Y131oXI50mh4iHzcrtXGUKoaWn5\nuAKx569NN7nJh0aRVwQbbija5AmnvXMDD1LXoq8mYtD4KC9bWj1JN7rEz8ha\nOjnyuJh50UjDdG9uQouxQg3ose732qqJLCbsN2t+BGpPZhjV8znD7eCocpTc\n2XShOZlKwFgGWvtwElNyNmI1UkEhDkdiQrNvCWcgN7/MVGJXFapSbqXDd8ZX\nXYhZTXdqOYaZO8NCOuGOjFrQGU7XhgNvYaWMXXJzltvSLWLdZaqrGjdjTYKe\natEhpsdFIf0IjunZiG0lX8EWjoMOUUK5u81BCPF4ryZHjEWVaQkYSk8sBuVh\nKqK1asyZ4wIz8hbUpCWENPlcZCTSShVSlubt6TXNsth4Hj4RHtkGSgPHUQ69\nm/G5\r\n=xOjK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGI+ZeZOglsBU8xY3gIyjywozLnBN1XBTn7wiFUyYjebAiB+7xUjnLD93Qv1Mj6VhykFYx50Iy9bKNHnVKgjuplOQg=="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_6.3.4_1535562966362_0.8470143550241991"},"_hasShrinkwrap":false,"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"7.0.4-fix-3231e6d2964ab880ad03871f2cdf0f5c128e0dd7":{"name":"resin-preload","version":"7.0.4-fix-3231e6d2964ab880ad03871f2cdf0f5c128e0dd7","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"readme":"# resin-preload\n[![npm](https://img.shields.io/npm/v/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm license](https://img.shields.io/npm/l/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm downloads](https://img.shields.io/npm/dm/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n\nScript for preloading resin.io OS images (`.img`) with a user application container.\n\nUsing this will allow images with supervisor version above 1.0.0 to run the user application without connectivity, and without the need to download the container.\n\n## Warning\n\nIn order to preload images that use the overlay2 Docker storage driver (like\nnvidia jetson tx2 for example), you need to load the `overlay` Linux module:\n\n```sh\nsudo modprobe overlay\n```\n\nFor other images you will need to have the `aufs` module loaded.\n\n\n## Deprecation\n\nThe standalone mode described below (resin-preload) is now deprecated.\nIt will be removed in a future release.\nYou should use [resin-cli](https://www.npmjs.com/package/resin-cli) instead.\n\nInstall [resin-cli](https://www.npmjs.com/package/resin-cli) and run\n`resin help preload`.\n\n\n## Install via [npm](https://npmjs.com)\n\n```sh\n$ npm install --global resin-preload\n```\n\n<!-- MarkdownTOC -->\n\n- [Requirements](#requirements)\n- [Command Line Usage](#command-line-usage)\n    - [Example](#example)\n    - [Additional Options](#additional-options)\n    - [Custom Splash Screen](#custom-splash-screen)\n- [Module usage](#module-usage)\n- [Contributing](#contributing)\n- [Known Issues](#known-issues)\n    - [Speed Issues For Flasher Images on macOS](#speed-issues-for-flasher-images-on-macos)\n    - [Version Compatibility](#version-compatibility)\n    - [BTRFS Support](#btrfs-support)\n\n<!-- /MarkdownTOC -->\n\n\n## Requirements\n\n- [Node](https://nodejs.org)\n- [Docker](https://www.docker.com) tested on 1.12.6 and up but 17.04 or up is recommended especially on macOS, [docker-toolbox](https://www.docker.com/products/docker-toolbox) is not supported.\nOlder versions of resin-preload do support docker-toolbox, see [Version Compatibility](#version-compatibility) below.\n\n## Command Line Usage\n\n```\nUsage: resin-preload [options]\n\nOptions:\n\n  --app            Application ID (required)\n  --img            Disk image (or Edison zip file) to preload into (required)\n  --api-token      API token (required, or api-key)\n  --api-key        API key (required, or api-token)\n  --commit         App commit to be preloaded (default: latest)\n  --api-host       API host (default: \"https://api.resin.io\", the TLD will also be used for registry2 requests)\n  --splash-image   PNG Image for custom splash screen\n\n  --dont-check-arch          Disables check for matching architecture in image and application\n\n  --help, -h       Display resin-preload usage\n  --version, -v    Display resin-preload version\n\nEnvironment variables:\n\n  The following option flags can also be set\n  via the corresponding environment variables:\n\n  --app                               APP_ID\n  --img                               IMAGE\n  --api-token                         API_TOKEN\n  --api-key                           API_KEY\n  --commit                            COMMIT\n  --api-host                          API_HOST\n  --splash-image                      SPLASH_IMAGE\n  --dont-check-arch                   DONT_CHECK_ARCH\n\nExample:\n\n  resin-preload --app 123456 --api-token \"xxxx...\" --img /path/to/resin-os.img\n\n```\n\nIf using environment variables, this program requires the following options to be set:\n\n  * `IMAGE`: The path to the OS image you downloaded for the `APP_ID` you want to target.\n  * `APP_ID`: ID of the App that will be assigned to the device. It can be extracted from the URL in the Resin dashboard,\n     for instance `https://dashboard.resin.io/apps/2167` means the `APP_ID` is `2167`.\n  * `API_TOKEN`: Authentication token for Resin, taken from the [preferences page](https://dashboard.resin.io/preferences/details). \n\n\n### Example\n\n**NOTE:** Before running the example below, make sure that you have successfully pushed to the app and\nthat the `Application commit` is the correct version of the code you intend to preload.\n\nDownload an OS image from the Resin dashboard and then run:\n\n1) Using option flags for configuration:\n\n```bash\n$ resin-preload --app 123456 --api-token \"XXX...\" --img /path/to/resin.img\n```\n\n2) Using environment variables for configuration:\n\n```bash\n# Set the environment variables\n$ export API_TOKEN=... # copy from dashboard preferences\n$ export APP_ID=... # id of your application (you can see it on dashboard URL when you visit your app page)\n$ export IMAGE=/path/to/resin.img\n\n# As all required options have been set via environment variables,\n# there's no need to pass any options, just run\n$ resin-preload\n```\n\nThe `/path/to/resin.img` file, will now have the latest version of your application preloaded.\n\n### Additional Options\n\n* Alternatively to `API_TOKEN`, you can use an `API_KEY` variable with an API key from a config.json file or the [SDK](https://github.com/resin-io/resin-sdk/blob/master/DOCUMENTATION.md#resin.models.application.getApiKey).\n* `API_HOST`: Address of the Resin API. If unsure, use `https://api.resin.io`.\n* `SPLASH_IMAGE`: Path to a custom splash image, to copy into the preloaded OS image\n\n### Custom Splash Screen\n\nAt this time, the custom splash screen image needs to be a PNG.\nFor more details on splash images, see:\n  - [The Resin.io Notes – What are we working on / Revamping Splash Screens](https://forums.resin.io/t/what-are-we-working-on-the-resin-io-notes/414/7)\n  - [Documenting the custom boot splash screen](https://github.com/resin-io/docs/issues/155)\n  - [resin-io/resin-plugin-img](https://github.com/resin-io/resin-plugin-img)\n\n## Module usage\n\nPlease check bin/resin-preload\n\n## Contributing\n\n### Install from github\n\n * Clone this repo: `git clone git@github.com:resin-io/resin-preload.git`\n * Change directory: `cd resin-preload`\n * Install dependencies: `npm i`\n * Run resin-preload: `./bin/resin-preload`\n\n### Issues\n\n If you encounter any problem, you can [open an issue](https://github.com/resin-io/resin-preload/issues)\n\n## Known Issues\n\n### Speed Issues For Flasher Images on macOS\n\nDocker on macOS has [some speed issues with volumes](https://github.com/docker/for-mac/issues/77).\nThis makes this script slow, especially with Flasher Images.\n\n### Version Compatibility\n\nThis version will only work for Resin OS versions 1.2 and later.\nFor versions earlier than 1.2 you will need to checkout commit `5d6d4607bffc98acdf649ce5328e2079dfb9c3d9` of this repo and then follow the steps below. \n\n### BTRFS Support\n\nSince Docker for Mac removed support for the BTRFS storage driver (see [docker/for-mac/issues/388](https://github.com/docker/for-mac/issues/388)), preloading images prior to Resin OS 2.0 will require the older [Docker toolbox](https://docs.docker.com/toolbox/toolbox_install_mac/) setup with [VirtualBox](https://www.virtualbox.org/) to function properly.\n","readmeFilename":"README.md","gitHead":"3231e6d2964ab880ad03871f2cdf0f5c128e0dd7","_id":"resin-preload@7.0.4-fix-3231e6d2964ab880ad03871f2cdf0f5c128e0dd7","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-MqbqtTDR5jSIL/9501E/iaYLAzyAVYCrAgOGNcj+PnFskX3sNVNJGutDbNlfkp+8n/dui18IqKhGgwHLsPbygA==","shasum":"06c04c22a9509dfab3e3772b90c6461f5567ff0a","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-7.0.4-fix-3231e6d2964ab880ad03871f2cdf0f5c128e0dd7.tgz","fileCount":9,"unpackedSize":83965,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbh+4nCRA9TVsSAnZWagAAJc4QAJBouAWKzF2SqOWL3tqE\nHX9JwLj+SuRCXugKbz/85QP/MbdJoJ1gTZBXUIyZZ+2I35t1z3FLab0zaAEh\nVnQv5TqKkgP7WMIrtCPROExJWzbkPPeLBSI3iW9hJZJIdG805tsm1uR4nPQb\njknUIUvw8uwAH9SOEx/rQryEsFh4RtWcxAsIx6Up66WR1hN8ViB/7UYD90Jn\nUxjRc/BV44SwCLbRBSra7l10Cpid8ivrGKeLmxor5lkS75pn/I9DQ5cV6wkX\nm0W8+t+eDcWE653Rtl2psOWHwrNZviaAC2ZpRUCEQilw/AI3xFxtdpbswe7I\nEqNDNnxu63VLgHosb12/9bI4gUFoDW3BnqC2aeUrwzeSvCjSJPs6eLlZXlPM\n8fT5O8hAS0Zpjlek6B90xTGgkmAe29TmxR7DJ71F163Wat4pNgSyYW6pleAY\nFBPYJgo5/JrpFgczDWpEyDlatFayYFnMp8LjhUiK8HD1g92Ar7RN94u+0Crb\nL6N4xp6xZeOgHw1YamVPhI5fIWaw1a8rGN5AhKmR5pqqSbOqpbI9NpUA/Y/h\nwUaA6OrOPnxfQKgKhfrTbSr7eX4N4yWCrbUVzAiJxzGiazV7S6A3wR4c4N8U\nKvshPWdvE+ngUFnYYzL0S3JBsu70EHFOhbjWzpwuY/6pfuCxRTGBQYXpllXf\naJJj\r\n=Fq5a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGnAUyiLMKsghCW/XolLQSIaatKHq0SCqE8F8KaXFJlgAiEA7UxIWvqjYrWPZ9eFFbFo02UPYWqUKmc9xH+vooDV1TU="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_7.0.4-fix-3231e6d2964ab880ad03871f2cdf0f5c128e0dd7_1535634982546_0.7712342706141155"},"_hasShrinkwrap":false},"7.0.4-fix-c72439ab8b928bd50b5a0eab43604cb3665ff076":{"name":"resin-preload","version":"7.0.4-fix-c72439ab8b928bd50b5a0eab43604cb3665ff076","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"readme":"# resin-preload\n[![npm](https://img.shields.io/npm/v/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm license](https://img.shields.io/npm/l/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm downloads](https://img.shields.io/npm/dm/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n\nScript for preloading resin.io OS images (`.img`) with a user application container.\n\nUsing this will allow images with supervisor version above 1.0.0 to run the user application without connectivity, and without the need to download the container.\n\n## Warning\n\nIn order to preload images that use the overlay2 Docker storage driver (like\nnvidia jetson tx2 for example), you need to load the `overlay` Linux module:\n\n```sh\nsudo modprobe overlay\n```\n\nFor other images you will need to have the `aufs` module loaded.\n\n\n## Deprecation\n\nThe standalone mode described below (resin-preload) is now deprecated.\nIt will be removed in a future release.\nYou should use [resin-cli](https://www.npmjs.com/package/resin-cli) instead.\n\nInstall [resin-cli](https://www.npmjs.com/package/resin-cli) and run\n`resin help preload`.\n\n\n## Install via [npm](https://npmjs.com)\n\n```sh\n$ npm install --global resin-preload\n```\n\n<!-- MarkdownTOC -->\n\n- [Requirements](#requirements)\n- [Command Line Usage](#command-line-usage)\n    - [Example](#example)\n    - [Additional Options](#additional-options)\n    - [Custom Splash Screen](#custom-splash-screen)\n- [Module usage](#module-usage)\n- [Contributing](#contributing)\n- [Known Issues](#known-issues)\n    - [Speed Issues For Flasher Images on macOS](#speed-issues-for-flasher-images-on-macos)\n    - [Version Compatibility](#version-compatibility)\n    - [BTRFS Support](#btrfs-support)\n\n<!-- /MarkdownTOC -->\n\n\n## Requirements\n\n- [Node](https://nodejs.org)\n- [Docker](https://www.docker.com) tested on 1.12.6 and up but 17.04 or up is recommended especially on macOS, [docker-toolbox](https://www.docker.com/products/docker-toolbox) is not supported.\nOlder versions of resin-preload do support docker-toolbox, see [Version Compatibility](#version-compatibility) below.\n\n## Command Line Usage\n\n```\nUsage: resin-preload [options]\n\nOptions:\n\n  --app            Application ID (required)\n  --img            Disk image (or Edison zip file) to preload into (required)\n  --api-token      API token (required, or api-key)\n  --api-key        API key (required, or api-token)\n  --commit         App commit to be preloaded (default: latest)\n  --api-host       API host (default: \"https://api.resin.io\", the TLD will also be used for registry2 requests)\n  --splash-image   PNG Image for custom splash screen\n\n  --dont-check-arch          Disables check for matching architecture in image and application\n\n  --help, -h       Display resin-preload usage\n  --version, -v    Display resin-preload version\n\nEnvironment variables:\n\n  The following option flags can also be set\n  via the corresponding environment variables:\n\n  --app                               APP_ID\n  --img                               IMAGE\n  --api-token                         API_TOKEN\n  --api-key                           API_KEY\n  --commit                            COMMIT\n  --api-host                          API_HOST\n  --splash-image                      SPLASH_IMAGE\n  --dont-check-arch                   DONT_CHECK_ARCH\n\nExample:\n\n  resin-preload --app 123456 --api-token \"xxxx...\" --img /path/to/resin-os.img\n\n```\n\nIf using environment variables, this program requires the following options to be set:\n\n  * `IMAGE`: The path to the OS image you downloaded for the `APP_ID` you want to target.\n  * `APP_ID`: ID of the App that will be assigned to the device. It can be extracted from the URL in the Resin dashboard,\n     for instance `https://dashboard.resin.io/apps/2167` means the `APP_ID` is `2167`.\n  * `API_TOKEN`: Authentication token for Resin, taken from the [preferences page](https://dashboard.resin.io/preferences/details). \n\n\n### Example\n\n**NOTE:** Before running the example below, make sure that you have successfully pushed to the app and\nthat the `Application commit` is the correct version of the code you intend to preload.\n\nDownload an OS image from the Resin dashboard and then run:\n\n1) Using option flags for configuration:\n\n```bash\n$ resin-preload --app 123456 --api-token \"XXX...\" --img /path/to/resin.img\n```\n\n2) Using environment variables for configuration:\n\n```bash\n# Set the environment variables\n$ export API_TOKEN=... # copy from dashboard preferences\n$ export APP_ID=... # id of your application (you can see it on dashboard URL when you visit your app page)\n$ export IMAGE=/path/to/resin.img\n\n# As all required options have been set via environment variables,\n# there's no need to pass any options, just run\n$ resin-preload\n```\n\nThe `/path/to/resin.img` file, will now have the latest version of your application preloaded.\n\n### Additional Options\n\n* Alternatively to `API_TOKEN`, you can use an `API_KEY` variable with an API key from a config.json file or the [SDK](https://github.com/resin-io/resin-sdk/blob/master/DOCUMENTATION.md#resin.models.application.getApiKey).\n* `API_HOST`: Address of the Resin API. If unsure, use `https://api.resin.io`.\n* `SPLASH_IMAGE`: Path to a custom splash image, to copy into the preloaded OS image\n\n### Custom Splash Screen\n\nAt this time, the custom splash screen image needs to be a PNG.\nFor more details on splash images, see:\n  - [The Resin.io Notes – What are we working on / Revamping Splash Screens](https://forums.resin.io/t/what-are-we-working-on-the-resin-io-notes/414/7)\n  - [Documenting the custom boot splash screen](https://github.com/resin-io/docs/issues/155)\n  - [resin-io/resin-plugin-img](https://github.com/resin-io/resin-plugin-img)\n\n## Module usage\n\nPlease check bin/resin-preload\n\n## Contributing\n\n### Install from github\n\n * Clone this repo: `git clone git@github.com:resin-io/resin-preload.git`\n * Change directory: `cd resin-preload`\n * Install dependencies: `npm i`\n * Run resin-preload: `./bin/resin-preload`\n\n### Issues\n\n If you encounter any problem, you can [open an issue](https://github.com/resin-io/resin-preload/issues)\n\n## Known Issues\n\n### Speed Issues For Flasher Images on macOS\n\nDocker on macOS has [some speed issues with volumes](https://github.com/docker/for-mac/issues/77).\nThis makes this script slow, especially with Flasher Images.\n\n### Version Compatibility\n\nThis version will only work for Resin OS versions 1.2 and later.\nFor versions earlier than 1.2 you will need to checkout commit `5d6d4607bffc98acdf649ce5328e2079dfb9c3d9` of this repo and then follow the steps below. \n\n### BTRFS Support\n\nSince Docker for Mac removed support for the BTRFS storage driver (see [docker/for-mac/issues/388](https://github.com/docker/for-mac/issues/388)), preloading images prior to Resin OS 2.0 will require the older [Docker toolbox](https://docs.docker.com/toolbox/toolbox_install_mac/) setup with [VirtualBox](https://www.virtualbox.org/) to function properly.\n","readmeFilename":"README.md","gitHead":"c72439ab8b928bd50b5a0eab43604cb3665ff076","_id":"resin-preload@7.0.4-fix-c72439ab8b928bd50b5a0eab43604cb3665ff076","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-B5ZtH4wkiTVHZIsesEeemiMIPfbdtkXmhYlKvCqlUpXiX24IQaAWh98pJhRXw5bTj+cCsJ7pKHaTcTOCd7/L2w==","shasum":"a2c37cbaa3ad954e27083fc60407f9183d75f4c4","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-7.0.4-fix-c72439ab8b928bd50b5a0eab43604cb3665ff076.tgz","fileCount":9,"unpackedSize":83957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbiAICCRA9TVsSAnZWagAACdIP/RyhYEK6GS5X9toy6D43\n0Im3qfm/Jydu2eZR3u0K20kCZxvTHy6xAzw1PslkbMOjsi5xQVClf3jJO3aM\nugneog8BluM3qvuKXlgr4TlXdU7iWQlAtymCBH5QnbIvq8ygCreaQEn9n20R\nQYOP8oVUyppUdAvn4Z0h2li6emuMr9FB6Hq8GFu/7omqZ33VMJN/rXWUaChQ\ndgUet8Rq+9dm8jlaxVUPeViYkm0Af1cREyY9vmG6ZsRHVHSh5WQVQG8LLjAq\nzohK9dumEVV0aoj8EMW3rmS0v8w/TLb4XqTHd+7Kyj5td9Igs/e5gxPIz6Ft\nZJqsxCn5eiYEm3EFE6gEtlgXANH9iu6CxZRmPWA0AhaopF/XFuZRSEBRVI5A\nKCFnbhK8T8QIxX0HRAswH2wbBjS1l+oCBwzSmSPCQiTkVVaBcEXc/mWm5S5/\n2lA08xahtXeoREhm6Cca+aW+s7wuoq5dDPLmkw/wsxSvwudFSOM0/oxGT5Mt\nfsN3NrhW87egNlQQu+bYu6iF9UTeSzpKzcoh5NPLiRuShyLQ+ccY92w2DM9U\nXIEMRegLPABl0a6smTvsv9i3zmZP4Ea6DapUIG9pDG1OrjvF1JD3o/ilgqE4\n1z3ZR44fzpo+fhOYW5nj7gsRvMdSIbQF/c9r0Qll8WyvejU8G/32RS9Q9wjz\n7dsO\r\n=8Cyi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCASO4oI6MhYNY/Uh0L1GfQ8xNxHjCIJG7cfc4j2L2gXQIgLlA2E348uRE2j17FuL0McdSuhgaHAx8OwfdCIMy4TUs="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_7.0.4-fix-c72439ab8b928bd50b5a0eab43604cb3665ff076_1535640065578_0.8447418185549695"},"_hasShrinkwrap":false},"7.0.4-fix-40e9c44b99f0556fe7f845654248262a856b3d55":{"name":"resin-preload","version":"7.0.4-fix-40e9c44b99f0556fe7f845654248262a856b3d55","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"readme":"# resin-preload\n[![npm](https://img.shields.io/npm/v/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm license](https://img.shields.io/npm/l/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm downloads](https://img.shields.io/npm/dm/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n\nScript for preloading resin.io OS images (`.img`) with a user application container.\n\nUsing this will allow images with supervisor version above 1.0.0 to run the user application without connectivity, and without the need to download the container.\n\n## Warning\n\nIn order to preload images that use the overlay2 Docker storage driver (like\nnvidia jetson tx2 for example), you need to load the `overlay` Linux module:\n\n```sh\nsudo modprobe overlay\n```\n\nFor other images you will need to have the `aufs` module loaded.\n\n\n## Deprecation\n\nThe standalone mode described below (resin-preload) is now deprecated.\nIt will be removed in a future release.\nYou should use [resin-cli](https://www.npmjs.com/package/resin-cli) instead.\n\nInstall [resin-cli](https://www.npmjs.com/package/resin-cli) and run\n`resin help preload`.\n\n\n## Install via [npm](https://npmjs.com)\n\n```sh\n$ npm install --global resin-preload\n```\n\n<!-- MarkdownTOC -->\n\n- [Requirements](#requirements)\n- [Command Line Usage](#command-line-usage)\n    - [Example](#example)\n    - [Additional Options](#additional-options)\n    - [Custom Splash Screen](#custom-splash-screen)\n- [Module usage](#module-usage)\n- [Contributing](#contributing)\n- [Known Issues](#known-issues)\n    - [Speed Issues For Flasher Images on macOS](#speed-issues-for-flasher-images-on-macos)\n    - [Version Compatibility](#version-compatibility)\n    - [BTRFS Support](#btrfs-support)\n\n<!-- /MarkdownTOC -->\n\n\n## Requirements\n\n- [Node](https://nodejs.org)\n- [Docker](https://www.docker.com) tested on 1.12.6 and up but 17.04 or up is recommended especially on macOS, [docker-toolbox](https://www.docker.com/products/docker-toolbox) is not supported.\nOlder versions of resin-preload do support docker-toolbox, see [Version Compatibility](#version-compatibility) below.\n\n## Command Line Usage\n\n```\nUsage: resin-preload [options]\n\nOptions:\n\n  --app            Application ID (required)\n  --img            Disk image (or Edison zip file) to preload into (required)\n  --api-token      API token (required, or api-key)\n  --api-key        API key (required, or api-token)\n  --commit         App commit to be preloaded (default: latest)\n  --api-host       API host (default: \"https://api.resin.io\", the TLD will also be used for registry2 requests)\n  --splash-image   PNG Image for custom splash screen\n\n  --dont-check-arch          Disables check for matching architecture in image and application\n\n  --help, -h       Display resin-preload usage\n  --version, -v    Display resin-preload version\n\nEnvironment variables:\n\n  The following option flags can also be set\n  via the corresponding environment variables:\n\n  --app                               APP_ID\n  --img                               IMAGE\n  --api-token                         API_TOKEN\n  --api-key                           API_KEY\n  --commit                            COMMIT\n  --api-host                          API_HOST\n  --splash-image                      SPLASH_IMAGE\n  --dont-check-arch                   DONT_CHECK_ARCH\n\nExample:\n\n  resin-preload --app 123456 --api-token \"xxxx...\" --img /path/to/resin-os.img\n\n```\n\nIf using environment variables, this program requires the following options to be set:\n\n  * `IMAGE`: The path to the OS image you downloaded for the `APP_ID` you want to target.\n  * `APP_ID`: ID of the App that will be assigned to the device. It can be extracted from the URL in the Resin dashboard,\n     for instance `https://dashboard.resin.io/apps/2167` means the `APP_ID` is `2167`.\n  * `API_TOKEN`: Authentication token for Resin, taken from the [preferences page](https://dashboard.resin.io/preferences/details). \n\n\n### Example\n\n**NOTE:** Before running the example below, make sure that you have successfully pushed to the app and\nthat the `Application commit` is the correct version of the code you intend to preload.\n\nDownload an OS image from the Resin dashboard and then run:\n\n1) Using option flags for configuration:\n\n```bash\n$ resin-preload --app 123456 --api-token \"XXX...\" --img /path/to/resin.img\n```\n\n2) Using environment variables for configuration:\n\n```bash\n# Set the environment variables\n$ export API_TOKEN=... # copy from dashboard preferences\n$ export APP_ID=... # id of your application (you can see it on dashboard URL when you visit your app page)\n$ export IMAGE=/path/to/resin.img\n\n# As all required options have been set via environment variables,\n# there's no need to pass any options, just run\n$ resin-preload\n```\n\nThe `/path/to/resin.img` file, will now have the latest version of your application preloaded.\n\n### Additional Options\n\n* Alternatively to `API_TOKEN`, you can use an `API_KEY` variable with an API key from a config.json file or the [SDK](https://github.com/resin-io/resin-sdk/blob/master/DOCUMENTATION.md#resin.models.application.getApiKey).\n* `API_HOST`: Address of the Resin API. If unsure, use `https://api.resin.io`.\n* `SPLASH_IMAGE`: Path to a custom splash image, to copy into the preloaded OS image\n\n### Custom Splash Screen\n\nAt this time, the custom splash screen image needs to be a PNG.\nFor more details on splash images, see:\n  - [The Resin.io Notes – What are we working on / Revamping Splash Screens](https://forums.resin.io/t/what-are-we-working-on-the-resin-io-notes/414/7)\n  - [Documenting the custom boot splash screen](https://github.com/resin-io/docs/issues/155)\n  - [resin-io/resin-plugin-img](https://github.com/resin-io/resin-plugin-img)\n\n## Module usage\n\nPlease check bin/resin-preload\n\n## Contributing\n\n### Install from github\n\n * Clone this repo: `git clone git@github.com:resin-io/resin-preload.git`\n * Change directory: `cd resin-preload`\n * Install dependencies: `npm i`\n * Run resin-preload: `./bin/resin-preload`\n\n### Issues\n\n If you encounter any problem, you can [open an issue](https://github.com/resin-io/resin-preload/issues)\n\n## Known Issues\n\n### Speed Issues For Flasher Images on macOS\n\nDocker on macOS has [some speed issues with volumes](https://github.com/docker/for-mac/issues/77).\nThis makes this script slow, especially with Flasher Images.\n\n### Version Compatibility\n\nThis version will only work for Resin OS versions 1.2 and later.\nFor versions earlier than 1.2 you will need to checkout commit `5d6d4607bffc98acdf649ce5328e2079dfb9c3d9` of this repo and then follow the steps below. \n\n### BTRFS Support\n\nSince Docker for Mac removed support for the BTRFS storage driver (see [docker/for-mac/issues/388](https://github.com/docker/for-mac/issues/388)), preloading images prior to Resin OS 2.0 will require the older [Docker toolbox](https://docs.docker.com/toolbox/toolbox_install_mac/) setup with [VirtualBox](https://www.virtualbox.org/) to function properly.\n","readmeFilename":"README.md","gitHead":"40e9c44b99f0556fe7f845654248262a856b3d55","_id":"resin-preload@7.0.4-fix-40e9c44b99f0556fe7f845654248262a856b3d55","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-LEpp99fbPNg9/TUuPlUOR7Iqi9uuQLKFc3K8DOunkAWfcRTI9lVVwbwVX3VRaeb8bifCd/mBhNglH0XONYxLXw==","shasum":"f49502167087768cdc716d47ae3d73bf15c3f4ef","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-7.0.4-fix-40e9c44b99f0556fe7f845654248262a856b3d55.tgz","fileCount":9,"unpackedSize":83957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbiOumCRA9TVsSAnZWagAA6NQP/3SPsqbuDnSqauopMSan\nuv+ktPJEP6QPpxfT/IFG5QqoPjXH/3wURJJmnqcdWIZPG8/DfABZ0vqXzOiD\nUuFdQLLA24ZX0wiwZxX3hz59CMojwt+m+SzV3f04TEryKng23VU2f/RMBjZ0\nWg4+EOH5mAWJA8U1d1YO+UbhPpVG2qOFyNiIL806XnPAJFfd+k4iF4EtYjmO\nr2xog+4oz65jFpNq+PMsmuZyXzkWjECytfVmf0kqf6fI/Efs+fh8l/eoG7Jj\ngC1n7yv8o5c5LLcibKtAHcnt/vcl7ggoFPfvLZQK44R+10YBN8wkJ4xv2gCv\njFypOWHbLnqYi3WlGs8uBZ4LhPkwrcOZR+DRD9BYMfwMkVQPAmqZWuhUpsXF\nN7QkHqSPaENtEbr+wgGdZrzeOlxrewcKY7qqfgL1C0uXfuzsmPG9zdMFA+s0\nelkjJmyMT8zOrkux+rS45vWT1g08g4j2cACLSYezFjSInTrPo99y3g0h72O8\n1sclNhTBcE8ZAAGPy+/jX7dcY0SG+otYnEULUHk42VRuZ1UEexyaxN5GbaL8\nUBomvt6eh8Wgs/7Xv3JS3MH7EngldrE7dh/SMJoQpkrIFmiOkN7RFmn5yNV8\nkUjZyGLX8l+96tbVB1gu3VCYZ90qWz/vPQypL0rbDTxowYW7GvhYX6/xlbDe\n3qE4\r\n=dBzf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDq7LPjKhfS5kshivhUWIU33IMLEWyag8WQvcef72ZqSwIgf+v+xUha/IfVbDgyF+tdAnJw+2nBSfHK9aK8abcWNhE="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_7.0.4-fix-40e9c44b99f0556fe7f845654248262a856b3d55_1535699877843_0.8343876978360008"},"_hasShrinkwrap":false},"7.0.4":{"name":"resin-preload","version":"7.0.4","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"74c51d5b858e64229fd488676b5c6c1d42475f12","_id":"resin-preload@7.0.4","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-ZnqSk54AkLAOY+Nf/WoZfjhvYuiq3zI+g5bKkyKVlcvHtU0c3xJu0T95F0wjDtM72lQUcTZjtfVkfuo91+/TYw==","shasum":"0420ecb900db29180272c20e36b772f2fa221625","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-7.0.4.tgz","fileCount":9,"unpackedSize":83912,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbiTKPCRA9TVsSAnZWagAAjSQP/3Y8D/t+T6QxziPSVcGE\nnFikVz2+gQj7GC7jOp6+3mDGugM7+tiyaQmlR0aSOaU6gkusExS8B8rb/MWg\nnS0OjdSRwapyzq0UUaFCXHgkV+l4BZNuYlDKFtGpgcupsUMf6Ese3t1gWuKL\nJxQTt4Qz8g4jSd9ng89V3+3NXrN/gvr+H5xjSTou9jvxeMvHo+9bGfLXrv82\nBRr1EbYE+axH11gCKRXk7mXsT8mlD2xiSVz0ONqHpK7yM1o+JhiZ0DBQctfK\nY4hwseznZAthNSEieo1lnJ6PlFZGVoyiDkpnbx7ZtWTT8SLuqoDYTkVJmnlC\nSYeK9V1pi5EcBGJx6BQ4dIdkdSLByaHHtG2/FWdGOVXUW9ODdMQHn5rhlsIz\nT8XRDw0H2v3ey+Elwn6MX0mCIuB9bthghYpmHctCiqAjf+5Yo8GoSbKKkUaI\nWjMoyBYIdFDvIiTBeod8EovFdLkSheKc2wZqphCWU1uujHpj0jZ8CN142HBU\nnYMZXujpTVXHZzrjCd81ObMO0mR+7Reg9n8e1So5IHEM+vTXBIqj/AB0GYyv\n7q724d4b9WZ/EMnhfs6PCZHGpKHfrosnfVMo0GmBT5ekEdpHJhdByT6BWK3r\nPtX5XXv84mmjL9G84abpMbJeBHSXmts2Y1I/kr8QwG20eImQgnz6f3OfiHVc\na21f\r\n=1cRj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICeA1H7hiQUQUIrEZDLM6b/q1Vkl+P5/c2dLxn89mCLlAiEA72XVORd53m0hqsEM51ie6b5jjTWr8xZg0xMWqc58rD4="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_7.0.4_1535718030789_0.9505199507874107"},"_hasShrinkwrap":false,"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"7.0.5-filter-out-service-id-e74c24fa529edc96c5025df954f0cc3696cb3ad3":{"name":"resin-preload","version":"7.0.5-filter-out-service-id-e74c24fa529edc96c5025df954f0cc3696cb3ad3","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"readme":"# resin-preload\n[![npm](https://img.shields.io/npm/v/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm license](https://img.shields.io/npm/l/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm downloads](https://img.shields.io/npm/dm/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n\nScript for preloading resin.io OS images (`.img`) with a user application container.\n\nUsing this will allow images with supervisor version above 1.0.0 to run the user application without connectivity, and without the need to download the container.\n\n## Warning\n\nIn order to preload images that use the overlay2 Docker storage driver (like\nnvidia jetson tx2 for example), you need to load the `overlay` Linux module:\n\n```sh\nsudo modprobe overlay\n```\n\nFor other images you will need to have the `aufs` module loaded.\n\n\n## Deprecation\n\nThe standalone mode described below (resin-preload) is now deprecated.\nIt will be removed in a future release.\nYou should use [resin-cli](https://www.npmjs.com/package/resin-cli) instead.\n\nInstall [resin-cli](https://www.npmjs.com/package/resin-cli) and run\n`resin help preload`.\n\n\n## Install via [npm](https://npmjs.com)\n\n```sh\n$ npm install --global resin-preload\n```\n\n<!-- MarkdownTOC -->\n\n- [Requirements](#requirements)\n- [Command Line Usage](#command-line-usage)\n    - [Example](#example)\n    - [Additional Options](#additional-options)\n    - [Custom Splash Screen](#custom-splash-screen)\n- [Module usage](#module-usage)\n- [Contributing](#contributing)\n- [Known Issues](#known-issues)\n    - [Speed Issues For Flasher Images on macOS](#speed-issues-for-flasher-images-on-macos)\n    - [Version Compatibility](#version-compatibility)\n    - [BTRFS Support](#btrfs-support)\n\n<!-- /MarkdownTOC -->\n\n\n## Requirements\n\n- [Node](https://nodejs.org)\n- [Docker](https://www.docker.com) tested on 1.12.6 and up but 17.04 or up is recommended especially on macOS, [docker-toolbox](https://www.docker.com/products/docker-toolbox) is not supported.\nOlder versions of resin-preload do support docker-toolbox, see [Version Compatibility](#version-compatibility) below.\n\n## Command Line Usage\n\n```\nUsage: resin-preload [options]\n\nOptions:\n\n  --app            Application ID (required)\n  --img            Disk image (or Edison zip file) to preload into (required)\n  --api-token      API token (required, or api-key)\n  --api-key        API key (required, or api-token)\n  --commit         App commit to be preloaded (default: latest)\n  --api-host       API host (default: \"https://api.resin.io\", the TLD will also be used for registry2 requests)\n  --splash-image   PNG Image for custom splash screen\n\n  --dont-check-arch          Disables check for matching architecture in image and application\n\n  --help, -h       Display resin-preload usage\n  --version, -v    Display resin-preload version\n\nEnvironment variables:\n\n  The following option flags can also be set\n  via the corresponding environment variables:\n\n  --app                               APP_ID\n  --img                               IMAGE\n  --api-token                         API_TOKEN\n  --api-key                           API_KEY\n  --commit                            COMMIT\n  --api-host                          API_HOST\n  --splash-image                      SPLASH_IMAGE\n  --dont-check-arch                   DONT_CHECK_ARCH\n\nExample:\n\n  resin-preload --app 123456 --api-token \"xxxx...\" --img /path/to/resin-os.img\n\n```\n\nIf using environment variables, this program requires the following options to be set:\n\n  * `IMAGE`: The path to the OS image you downloaded for the `APP_ID` you want to target.\n  * `APP_ID`: ID of the App that will be assigned to the device. It can be extracted from the URL in the Resin dashboard,\n     for instance `https://dashboard.resin.io/apps/2167` means the `APP_ID` is `2167`.\n  * `API_TOKEN`: Authentication token for Resin, taken from the [preferences page](https://dashboard.resin.io/preferences/details). \n\n\n### Example\n\n**NOTE:** Before running the example below, make sure that you have successfully pushed to the app and\nthat the `Application commit` is the correct version of the code you intend to preload.\n\nDownload an OS image from the Resin dashboard and then run:\n\n1) Using option flags for configuration:\n\n```bash\n$ resin-preload --app 123456 --api-token \"XXX...\" --img /path/to/resin.img\n```\n\n2) Using environment variables for configuration:\n\n```bash\n# Set the environment variables\n$ export API_TOKEN=... # copy from dashboard preferences\n$ export APP_ID=... # id of your application (you can see it on dashboard URL when you visit your app page)\n$ export IMAGE=/path/to/resin.img\n\n# As all required options have been set via environment variables,\n# there's no need to pass any options, just run\n$ resin-preload\n```\n\nThe `/path/to/resin.img` file, will now have the latest version of your application preloaded.\n\n### Additional Options\n\n* Alternatively to `API_TOKEN`, you can use an `API_KEY` variable with an API key from a config.json file or the [SDK](https://github.com/resin-io/resin-sdk/blob/master/DOCUMENTATION.md#resin.models.application.getApiKey).\n* `API_HOST`: Address of the Resin API. If unsure, use `https://api.resin.io`.\n* `SPLASH_IMAGE`: Path to a custom splash image, to copy into the preloaded OS image\n\n### Custom Splash Screen\n\nAt this time, the custom splash screen image needs to be a PNG.\nFor more details on splash images, see:\n  - [The Resin.io Notes – What are we working on / Revamping Splash Screens](https://forums.resin.io/t/what-are-we-working-on-the-resin-io-notes/414/7)\n  - [Documenting the custom boot splash screen](https://github.com/resin-io/docs/issues/155)\n  - [resin-io/resin-plugin-img](https://github.com/resin-io/resin-plugin-img)\n\n## Module usage\n\nPlease check bin/resin-preload\n\n## Contributing\n\n### Install from github\n\n * Clone this repo: `git clone git@github.com:resin-io/resin-preload.git`\n * Change directory: `cd resin-preload`\n * Install dependencies: `npm i`\n * Run resin-preload: `./bin/resin-preload`\n\n### Issues\n\n If you encounter any problem, you can [open an issue](https://github.com/resin-io/resin-preload/issues)\n\n## Known Issues\n\n### Speed Issues For Flasher Images on macOS\n\nDocker on macOS has [some speed issues with volumes](https://github.com/docker/for-mac/issues/77).\nThis makes this script slow, especially with Flasher Images.\n\n### Version Compatibility\n\nThis version will only work for Resin OS versions 1.2 and later.\nFor versions earlier than 1.2 you will need to checkout commit `5d6d4607bffc98acdf649ce5328e2079dfb9c3d9` of this repo and then follow the steps below. \n\n### BTRFS Support\n\nSince Docker for Mac removed support for the BTRFS storage driver (see [docker/for-mac/issues/388](https://github.com/docker/for-mac/issues/388)), preloading images prior to Resin OS 2.0 will require the older [Docker toolbox](https://docs.docker.com/toolbox/toolbox_install_mac/) setup with [VirtualBox](https://www.virtualbox.org/) to function properly.\n","readmeFilename":"README.md","gitHead":"e74c24fa529edc96c5025df954f0cc3696cb3ad3","_id":"resin-preload@7.0.5-filter-out-service-id-e74c24fa529edc96c5025df954f0cc3696cb3ad3","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-CO0o6M4kLzXQWNJqLMB9BjqEna3KYRPfEf+8KzqMf+Mx6gWwvKB4APFAVeO56mLgsiSEyFj106cVvO02s039JQ==","shasum":"83dd7d4b120388408b3a1cedf47f0be6afa7965a","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-7.0.5-filter-out-service-id-e74c24fa529edc96c5025df954f0cc3696cb3ad3.tgz","fileCount":9,"unpackedSize":84104,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbkVH6CRA9TVsSAnZWagAAPqkP/jXS6Det/RTWROT88YLD\nM0/6hXd6mkwFLUiatcdf/H6UEhbLbos3V71ugOzk6QGQuQBYulpImCks+LVh\n2cwbecesbpv0YxO4t5phhPrCwGz5jNASnvjHyveiB1NOA64zCbfushHc5tuo\nX1q1/Xe8TXpQdHR93D+NVQ81zZA/hP2el2XPjEB7Tudp9HJ/DBKJtL85YQ1x\nm/zwQOQ/HAsvLyO8QqkYU/VfYOmZNtSqPxW7CuBDYY82oV9v0vzf0y3A/C6b\nNDr69hNh+5RvN4oI8Hi4kVpQBGK5uXKZZnbAiitf4qcdbC6SDtjqceJXDrCi\nMziMiLsNVnlvuoJY2BcN+KVCYoG+rBnzyGFpDVzSiEAu8R+lJM8Q6VtJTKKd\nHK+Ci4apikOyQXm9HpmWXPregjRKMo/S+v98ht9eB/LHJuz95lyDMvUUCswV\n/5foUuril2PETA2Gx/2gCtRvjAqJRyBQcrTGd3LMRHlxwAenahmFlC/sYy7V\nB0q7RF9FeQ8vr9c1/AWRTplSus3WbyvT785agZeuZjRLT/OpOwMsDGoKcM37\n5FyDT5W5SByfTBWylTs7DKl7IFzvnwq4GB4e0NRHW3RmA9TNSjy1sTifTtzL\nRWTsxw9mMFTtuZuk+X5GYcTlc2p5bSqlEGhC59PP9mnuUanbGW/6LaLLSAbu\nQDds\r\n=xQTr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAueE5/KMMGW4nVF5G6N1+y9sYlSjbheGgf+iwxff60eAiEAmZecl48HDdlpzDk1W2cZm7ZL5CsS9vi6ROqbmt3tRkw="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_7.0.5-filter-out-service-id-e74c24fa529edc96c5025df954f0cc3696cb3ad3_1536250361963_0.7762260549324587"},"_hasShrinkwrap":false},"7.0.5":{"name":"resin-preload","version":"7.0.5","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"e6df7a22e2077c7cd3edbefe4c49aa4a8f33e988","_id":"resin-preload@7.0.5","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"integrity":"sha512-cTo1HcdB5m5hvpRwzcfMbkJefrNT4XbGLWw/1PiKzN0y2Khscte1w8EapLxqE4+ck1w4BuoYT5LwGfujLsM+pA==","shasum":"2619e3035232cb11ac4e71dd1a6620c1f2666d3b","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-7.0.5.tgz","fileCount":9,"unpackedSize":84041,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbkVUbCRA9TVsSAnZWagAA5QYP/RE7kNjJqxaiftwTPUW3\nP3tTF45Vs+Ap0Mh5xFo8K7w7JNTsQ5d0Cz2gKJqQFYVHP7RHjUr0flSrx2M+\n5aGdygdNBi3kWAklaLk0GDu5HihdI5kkPnfT0kMiAhfkNQleLahzqmdSb9+C\n0cswrUBsKEwi/TLH6VI9zmE1YZInW5EAy9ePJOghJbASgTB9lcJM8ms9zRzw\nwKaCsorPdkujizsLA9CIsrCwTIvjMnZMAlvhh5QTrXkNgjub7WhZX1ztjeXe\nwPtkiydjW1syG0u+v3gYSfoNGDEu9m+sfjheXa5UYSCVXvdKJAR7ymuD28MR\n/NGcGWPezaTikeSTD9iWdeO3lpoQ/6qC1qR75wyFNMkUyVS6EruANAGikKwW\nPDlbcBHoKYUC1dm778wwACvBxUJE8Kle+JQpw1ri8tXkXxFrl2vG9lJgKRmK\n+z5ZERw7V+IQVauND6xzGEheXEt3+Nwj94LQ4ny9W5eUuPG5SJ6Qgvyi1YLe\nOYIShWgNyEoHOAh5oypQGAcHQu+8S+8Bi5gnZuLK97gCXPo0bg0WQieDzXle\nqTuUO+OuqwkIufv9SFwetdbeb3HhDqYCzcxZk7rJcsp6NsIR61PFFXZDDSGX\nxJ7FWiQaRpOBpa8CoTN8FP1D04a0463vfkln8uHT88KYPrihcazjGO4BWXDq\n3/O3\r\n=NcM8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFZEcDXy5ctmA09kZiFfVocAdB6ssNzd6MXmqapmZyTYAiEAuE95WLYbl+eFr5RUjP3IIdyjUvyQn1HtjKv/ODmycdE="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_7.0.5_1536251162541_0.6835511847315425"},"_hasShrinkwrap":false,"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"6.3.5":{"name":"resin-preload","version":"6.3.5","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"74cc2d9632fdc3df9fdb853519943bd68e10580e","_id":"resin-preload@6.3.5","_shasum":"11667f5547cbcfc611a3288b9901c0989eb5898c","_from":".","_npmVersion":"3.10.10","_nodeVersion":"8.10.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"11667f5547cbcfc611a3288b9901c0989eb5898c","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-6.3.5.tgz","integrity":"sha512-sFRMG7B+Igg//YtfU8Cx6DaEDz8Lb7dyVl4HeDUUBDT6W2qU42hGOJhzfCu3qn5u/4orGh84tejx38Wqsp3/MQ==","fileCount":10,"unpackedSize":89174,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbkVYhCRA9TVsSAnZWagAAQ70P/AkmPIt9oEphWBOTcUxI\nIc/Js/+mbjRjx3SD55McAdrAadmeSLtODjdbrDSMgSi6fh8xaS6PSmXCu9CA\nLnrjkKFm4qiHdo/ZTMHZz8vMQzsc77jITJz6rFINyoc8uX5MXGUVDjZvpYdC\ngLt3aLSgT0OynvKF9w9KgUssfQzM0Zi7NzXm5hAYXHy+YQFoxFfreKAKASJe\nm2QvkMo4vf7r8Q61Bbpyx1tse7Ap/W7/FPoAsa6vC29HEmAwGwur4gvEtq0a\nBZGKA1DxrST4nW5MZ1yNnqTHE5A+aDLNuUUfWOPnwgITAIP5+b5nfNOSXyuz\nhB+4vc+0aUEymWsPz0Gw/QpL3oXCN9uVHt2xvoOsdR/EYkhiMVeRlp5mXRZu\nkdMj5rjrBx9U6Vq9m6ID3lfwtKvx0Uxxj06jOAgkmr/6KFDLyPnIMtxFTf7N\naJPBZxZUDDSStJ/BNTM+nOvrSTzQQk5D5sjeBXG6upZGhhvVyxmO7VhSB345\nEx5jmmAU/cku3YGa/zdpuMIEv5M4expJ60nL/mcqjyTfoTu3/LkidzHO4ZOX\n19f3boxIq6TwNaQ6uXrO6aRCyoohMxPozJP82peNGDW7RmyORNmJj6/9B6Eo\nqQVOW+/EDjfmydJ3gajJdv68VtudiFWK84QCd8cb8XUOtRr7knazESbxosFa\nzejS\r\n=LZ1E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC52+U2JCPw8LAytx+1VHgzMh23BITsXjPnqFFcjk/grgIgHOeP1oKvC44dZTP4eJqwHZfCesOQYLtGtzaxsguJgiA="}]},"maintainers":[{"name":"resin.io","email":"accounts@resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_6.3.5_1536251425132_0.9204616115203337"},"_hasShrinkwrap":false,"deprecated":"resin-preload is deprecated, please use balena-preload instead"},"7.0.6-rename-dockerfile-f943763d694029e08514132a695f4cfcddf96445":{"name":"resin-preload","version":"7.0.6-rename-dockerfile-f943763d694029e08514132a695f4cfcddf96445","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"readme":"# resin-preload\n[![npm](https://img.shields.io/npm/v/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm license](https://img.shields.io/npm/l/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm downloads](https://img.shields.io/npm/dm/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n\nScript for preloading resin.io OS images (`.img`) with a user application container.\n\nUsing this will allow images with supervisor version above 1.0.0 to run the user application without connectivity, and without the need to download the container.\n\n## Warning\n\nIn order to preload images that use the overlay2 Docker storage driver (like\nnvidia jetson tx2 for example), you need to load the `overlay` Linux module:\n\n```sh\nsudo modprobe overlay\n```\n\nFor other images you will need to have the `aufs` module loaded.\n\n\n## Deprecation\n\nThe standalone mode described below (resin-preload) is now deprecated.\nIt will be removed in a future release.\nYou should use [resin-cli](https://www.npmjs.com/package/resin-cli) instead.\n\nInstall [resin-cli](https://www.npmjs.com/package/resin-cli) and run\n`resin help preload`.\n\n\n## Install via [npm](https://npmjs.com)\n\n```sh\n$ npm install --global resin-preload\n```\n\n<!-- MarkdownTOC -->\n\n- [Requirements](#requirements)\n- [Command Line Usage](#command-line-usage)\n    - [Example](#example)\n    - [Additional Options](#additional-options)\n    - [Custom Splash Screen](#custom-splash-screen)\n- [Module usage](#module-usage)\n- [Contributing](#contributing)\n- [Known Issues](#known-issues)\n    - [Speed Issues For Flasher Images on macOS](#speed-issues-for-flasher-images-on-macos)\n    - [Version Compatibility](#version-compatibility)\n    - [BTRFS Support](#btrfs-support)\n\n<!-- /MarkdownTOC -->\n\n\n## Requirements\n\n- [Node](https://nodejs.org)\n- [Docker](https://www.docker.com) tested on 1.12.6 and up but 17.04 or up is recommended especially on macOS, [docker-toolbox](https://www.docker.com/products/docker-toolbox) is not supported.\nOlder versions of resin-preload do support docker-toolbox, see [Version Compatibility](#version-compatibility) below.\n\n## Command Line Usage\n\n```\nUsage: resin-preload [options]\n\nOptions:\n\n  --app            Application ID (required)\n  --img            Disk image (or Edison zip file) to preload into (required)\n  --api-token      API token (required, or api-key)\n  --api-key        API key (required, or api-token)\n  --commit         App commit to be preloaded (default: latest)\n  --api-host       API host (default: \"https://api.resin.io\", the TLD will also be used for registry2 requests)\n  --splash-image   PNG Image for custom splash screen\n\n  --dont-check-arch          Disables check for matching architecture in image and application\n\n  --help, -h       Display resin-preload usage\n  --version, -v    Display resin-preload version\n\nEnvironment variables:\n\n  The following option flags can also be set\n  via the corresponding environment variables:\n\n  --app                               APP_ID\n  --img                               IMAGE\n  --api-token                         API_TOKEN\n  --api-key                           API_KEY\n  --commit                            COMMIT\n  --api-host                          API_HOST\n  --splash-image                      SPLASH_IMAGE\n  --dont-check-arch                   DONT_CHECK_ARCH\n\nExample:\n\n  resin-preload --app 123456 --api-token \"xxxx...\" --img /path/to/resin-os.img\n\n```\n\nIf using environment variables, this program requires the following options to be set:\n\n  * `IMAGE`: The path to the OS image you downloaded for the `APP_ID` you want to target.\n  * `APP_ID`: ID of the App that will be assigned to the device. It can be extracted from the URL in the Resin dashboard,\n     for instance `https://dashboard.resin.io/apps/2167` means the `APP_ID` is `2167`.\n  * `API_TOKEN`: Authentication token for Resin, taken from the [preferences page](https://dashboard.resin.io/preferences/details). \n\n\n### Example\n\n**NOTE:** Before running the example below, make sure that you have successfully pushed to the app and\nthat the `Application commit` is the correct version of the code you intend to preload.\n\nDownload an OS image from the Resin dashboard and then run:\n\n1) Using option flags for configuration:\n\n```bash\n$ resin-preload --app 123456 --api-token \"XXX...\" --img /path/to/resin.img\n```\n\n2) Using environment variables for configuration:\n\n```bash\n# Set the environment variables\n$ export API_TOKEN=... # copy from dashboard preferences\n$ export APP_ID=... # id of your application (you can see it on dashboard URL when you visit your app page)\n$ export IMAGE=/path/to/resin.img\n\n# As all required options have been set via environment variables,\n# there's no need to pass any options, just run\n$ resin-preload\n```\n\nThe `/path/to/resin.img` file, will now have the latest version of your application preloaded.\n\n### Additional Options\n\n* Alternatively to `API_TOKEN`, you can use an `API_KEY` variable with an API key from a config.json file or the [SDK](https://github.com/resin-io/resin-sdk/blob/master/DOCUMENTATION.md#resin.models.application.getApiKey).\n* `API_HOST`: Address of the Resin API. If unsure, use `https://api.resin.io`.\n* `SPLASH_IMAGE`: Path to a custom splash image, to copy into the preloaded OS image\n\n### Custom Splash Screen\n\nAt this time, the custom splash screen image needs to be a PNG.\nFor more details on splash images, see:\n  - [The Resin.io Notes – What are we working on / Revamping Splash Screens](https://forums.resin.io/t/what-are-we-working-on-the-resin-io-notes/414/7)\n  - [Documenting the custom boot splash screen](https://github.com/resin-io/docs/issues/155)\n  - [resin-io/resin-plugin-img](https://github.com/resin-io/resin-plugin-img)\n\n## Module usage\n\nPlease check bin/resin-preload\n\n## Contributing\n\n### Install from github\n\n * Clone this repo: `git clone git@github.com:resin-io/resin-preload.git`\n * Change directory: `cd resin-preload`\n * Install dependencies: `npm i`\n * Run resin-preload: `./bin/resin-preload`\n\n### Issues\n\n If you encounter any problem, you can [open an issue](https://github.com/resin-io/resin-preload/issues)\n\n## Known Issues\n\n### Speed Issues For Flasher Images on macOS\n\nDocker on macOS has [some speed issues with volumes](https://github.com/docker/for-mac/issues/77).\nThis makes this script slow, especially with Flasher Images.\n\n### Version Compatibility\n\nThis version will only work for Resin OS versions 1.2 and later.\nFor versions earlier than 1.2 you will need to checkout commit `5d6d4607bffc98acdf649ce5328e2079dfb9c3d9` of this repo and then follow the steps below. \n\n### BTRFS Support\n\nSince Docker for Mac removed support for the BTRFS storage driver (see [docker/for-mac/issues/388](https://github.com/docker/for-mac/issues/388)), preloading images prior to Resin OS 2.0 will require the older [Docker toolbox](https://docs.docker.com/toolbox/toolbox_install_mac/) setup with [VirtualBox](https://www.virtualbox.org/) to function properly.\n","readmeFilename":"README.md","gitHead":"f943763d694029e08514132a695f4cfcddf96445","_id":"resin-preload@7.0.6-rename-dockerfile-f943763d694029e08514132a695f4cfcddf96445","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"balena.io","email":"accounts+npm@balena.io"},"dist":{"integrity":"sha512-KMobc+aHwJbTwBolYFvw9Blr3IR0d75JSjB/uhu24i+goahiSMYc4efc27ZFwCXS4viYxEsVoZeuLtpQkG98SQ==","shasum":"044fb03e7967bb273ab2ee0287b08eda4f5b54e6","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-7.0.6-rename-dockerfile-f943763d694029e08514132a695f4cfcddf96445.tgz","fileCount":9,"unpackedSize":84279,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbx1UpCRA9TVsSAnZWagAAUZUQAKCx+eX2j4FCZVNm2kNr\nVpZGLO5R2BpmCXknAym0CsK6kmcBSyxXYLYBJ3HR0nvKaK2c15kKLioXh3Ub\nvWSVYl/ol3ixO+DKiWpo4yMq+4Nsf7iRw1ihMFjK4NKQ2hjP0bbpjjuitULH\np3myTQTY5Z4/xbcu9+nTZ7p1eZ2NhmHG9lmGynSRYTlrENwZ1DUZVHIghRea\nrLUFqMAaHGNrpbnYW2jlzrdEULiTD9ciHi1DqKIXADps3sr+xeSa51Zcc+4G\nkK4z4iMf/QleHyjqjOGaiEC0kC8M/ngy62oIIRwhNineSsQzUFaS5Nx6QGxJ\ndjeX8L8myTZz4fPyXhX/oho9SCk/3N1v6tEB8e/TNjP/PTioGRXnGdte7O4M\nlg/25qFdZRdYt/PNwgXBx5qSclkXwkzv9qVz7JkbLukLhab10gpnSqyGQrwH\nTq9HJ1q98d621Mpqa94/qeejb26UcaDZ+3IDJowM3vtFfxWwNvQlN/VVL8xJ\n3eUCQoNS65Lsv5VflR1j0VYxkRmMvwyJ8uvRJAFEc18PK+QtmELVAATeAo96\n+24uXShCAdozUANFtbBhzAW/4n4XaSCkJuiL6rZgL8THQUqLyDgjiyZEM0xL\nOPj4aDKw4xDjdHB01fgq10gS4hZ75wWrEvlrGXl/v3xPkv2YTZW1IqVeXqP6\nB91e\r\n=to4B\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE+LRqZ+uMvSd1sQsLahBKk3CwegBy86Ak15eT4ZiNhtAiAmWSEpImWHMtY5VhK0dlusjRrGYuUy4YKn3ViSGqBhKw=="}]},"maintainers":[{"email":"accounts+npm@balena.io","name":"balena.io"},{"email":"accounts+npm-ci@resin.io","name":"resin-ci"},{"email":"accounts@resin.io","name":"resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_7.0.6-rename-dockerfile-f943763d694029e08514132a695f4cfcddf96445_1539790120564_0.23218483563895576"},"_hasShrinkwrap":false},"7.0.6-rename-dockerfile-7a9f45b53b5d514354136a5caecc6aaf56d13a94":{"name":"resin-preload","version":"7.0.6-rename-dockerfile-7a9f45b53b5d514354136a5caecc6aaf56d13a94","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"readme":"# resin-preload\n[![npm](https://img.shields.io/npm/v/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm license](https://img.shields.io/npm/l/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm downloads](https://img.shields.io/npm/dm/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n\nScript for preloading resin.io OS images (`.img`) with a user application container.\n\nUsing this will allow images with supervisor version above 1.0.0 to run the user application without connectivity, and without the need to download the container.\n\n## Warning\n\nIn order to preload images that use the overlay2 Docker storage driver (like\nnvidia jetson tx2 for example), you need to load the `overlay` Linux module:\n\n```sh\nsudo modprobe overlay\n```\n\nFor other images you will need to have the `aufs` module loaded.\n\n\n## Deprecation\n\nThe standalone mode described below (resin-preload) is now deprecated.\nIt will be removed in a future release.\nYou should use [resin-cli](https://www.npmjs.com/package/resin-cli) instead.\n\nInstall [resin-cli](https://www.npmjs.com/package/resin-cli) and run\n`resin help preload`.\n\n\n## Install via [npm](https://npmjs.com)\n\n```sh\n$ npm install --global resin-preload\n```\n\n<!-- MarkdownTOC -->\n\n- [Requirements](#requirements)\n- [Command Line Usage](#command-line-usage)\n    - [Example](#example)\n    - [Additional Options](#additional-options)\n    - [Custom Splash Screen](#custom-splash-screen)\n- [Module usage](#module-usage)\n- [Contributing](#contributing)\n- [Known Issues](#known-issues)\n    - [Speed Issues For Flasher Images on macOS](#speed-issues-for-flasher-images-on-macos)\n    - [Version Compatibility](#version-compatibility)\n    - [BTRFS Support](#btrfs-support)\n\n<!-- /MarkdownTOC -->\n\n\n## Requirements\n\n- [Node](https://nodejs.org)\n- [Docker](https://www.docker.com) tested on 1.12.6 and up but 17.04 or up is recommended especially on macOS, [docker-toolbox](https://www.docker.com/products/docker-toolbox) is not supported.\nOlder versions of resin-preload do support docker-toolbox, see [Version Compatibility](#version-compatibility) below.\n\n## Command Line Usage\n\n```\nUsage: resin-preload [options]\n\nOptions:\n\n  --app            Application ID (required)\n  --img            Disk image (or Edison zip file) to preload into (required)\n  --api-token      API token (required, or api-key)\n  --api-key        API key (required, or api-token)\n  --commit         App commit to be preloaded (default: latest)\n  --api-host       API host (default: \"https://api.resin.io\", the TLD will also be used for registry2 requests)\n  --splash-image   PNG Image for custom splash screen\n\n  --dont-check-arch          Disables check for matching architecture in image and application\n\n  --help, -h       Display resin-preload usage\n  --version, -v    Display resin-preload version\n\nEnvironment variables:\n\n  The following option flags can also be set\n  via the corresponding environment variables:\n\n  --app                               APP_ID\n  --img                               IMAGE\n  --api-token                         API_TOKEN\n  --api-key                           API_KEY\n  --commit                            COMMIT\n  --api-host                          API_HOST\n  --splash-image                      SPLASH_IMAGE\n  --dont-check-arch                   DONT_CHECK_ARCH\n\nExample:\n\n  resin-preload --app 123456 --api-token \"xxxx...\" --img /path/to/resin-os.img\n\n```\n\nIf using environment variables, this program requires the following options to be set:\n\n  * `IMAGE`: The path to the OS image you downloaded for the `APP_ID` you want to target.\n  * `APP_ID`: ID of the App that will be assigned to the device. It can be extracted from the URL in the Resin dashboard,\n     for instance `https://dashboard.resin.io/apps/2167` means the `APP_ID` is `2167`.\n  * `API_TOKEN`: Authentication token for Resin, taken from the [preferences page](https://dashboard.resin.io/preferences/details). \n\n\n### Example\n\n**NOTE:** Before running the example below, make sure that you have successfully pushed to the app and\nthat the `Application commit` is the correct version of the code you intend to preload.\n\nDownload an OS image from the Resin dashboard and then run:\n\n1) Using option flags for configuration:\n\n```bash\n$ resin-preload --app 123456 --api-token \"XXX...\" --img /path/to/resin.img\n```\n\n2) Using environment variables for configuration:\n\n```bash\n# Set the environment variables\n$ export API_TOKEN=... # copy from dashboard preferences\n$ export APP_ID=... # id of your application (you can see it on dashboard URL when you visit your app page)\n$ export IMAGE=/path/to/resin.img\n\n# As all required options have been set via environment variables,\n# there's no need to pass any options, just run\n$ resin-preload\n```\n\nThe `/path/to/resin.img` file, will now have the latest version of your application preloaded.\n\n### Additional Options\n\n* Alternatively to `API_TOKEN`, you can use an `API_KEY` variable with an API key from a config.json file or the [SDK](https://github.com/resin-io/resin-sdk/blob/master/DOCUMENTATION.md#resin.models.application.getApiKey).\n* `API_HOST`: Address of the Resin API. If unsure, use `https://api.resin.io`.\n* `SPLASH_IMAGE`: Path to a custom splash image, to copy into the preloaded OS image\n\n### Custom Splash Screen\n\nAt this time, the custom splash screen image needs to be a PNG.\nFor more details on splash images, see:\n  - [The Resin.io Notes – What are we working on / Revamping Splash Screens](https://forums.resin.io/t/what-are-we-working-on-the-resin-io-notes/414/7)\n  - [Documenting the custom boot splash screen](https://github.com/resin-io/docs/issues/155)\n  - [resin-io/resin-plugin-img](https://github.com/resin-io/resin-plugin-img)\n\n## Module usage\n\nPlease check bin/resin-preload\n\n## Contributing\n\n### Install from github\n\n * Clone this repo: `git clone git@github.com:resin-io/resin-preload.git`\n * Change directory: `cd resin-preload`\n * Install dependencies: `npm i`\n * Run resin-preload: `./bin/resin-preload`\n\n### Issues\n\n If you encounter any problem, you can [open an issue](https://github.com/resin-io/resin-preload/issues)\n\n## Known Issues\n\n### Speed Issues For Flasher Images on macOS\n\nDocker on macOS has [some speed issues with volumes](https://github.com/docker/for-mac/issues/77).\nThis makes this script slow, especially with Flasher Images.\n\n### Version Compatibility\n\nThis version will only work for Resin OS versions 1.2 and later.\nFor versions earlier than 1.2 you will need to checkout commit `5d6d4607bffc98acdf649ce5328e2079dfb9c3d9` of this repo and then follow the steps below. \n\n### BTRFS Support\n\nSince Docker for Mac removed support for the BTRFS storage driver (see [docker/for-mac/issues/388](https://github.com/docker/for-mac/issues/388)), preloading images prior to Resin OS 2.0 will require the older [Docker toolbox](https://docs.docker.com/toolbox/toolbox_install_mac/) setup with [VirtualBox](https://www.virtualbox.org/) to function properly.\n","readmeFilename":"README.md","gitHead":"7a9f45b53b5d514354136a5caecc6aaf56d13a94","_id":"resin-preload@7.0.6-rename-dockerfile-7a9f45b53b5d514354136a5caecc6aaf56d13a94","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"balena.io","email":"accounts+npm@balena.io"},"dist":{"integrity":"sha512-yL02CE7nPoRwKhupeM6wcuytF6kcvBPY7wprs/gnaVuIDFNXejRKQp3VwwCicHNdiClyUe8pRPxTuAuYXvwXIA==","shasum":"53aba70bd48b26f69c53f893b597022db937524d","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-7.0.6-rename-dockerfile-7a9f45b53b5d514354136a5caecc6aaf56d13a94.tgz","fileCount":9,"unpackedSize":84182,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb0NYGCRA9TVsSAnZWagAAgEEQAJAkLFPWM9ah2g5ho1Wi\nU6BB7610ArlmsmwvVsbLajgXOWMQevTmRkUSeEk9UMvx1UKwY+1s/X8Bs/6s\nz8iydrJL9+may/ygE7FrTYIX/LBWA3wahgjiBOB13bTo+USlGT1bY/yds/pq\n87OmQye5CdMsr5e38a+emw+JnTlnxqwiKDWZfq8VdMTBa8sth9y4aUy5fs/D\no1VPi9Q8s6939LO5E+vutj+/ph4DQV0/KwDsCNzunorZS9CRsis1/uv9MzJd\n8AHppMb4qWQBFQY7+Uu+RT0vsSf1i/ECX7Wy24TZD2BFDya6lmvzulyoSv0y\nZgGckZdvFJFG29jZ4QKUtoz46d/mPLQR0FYlMpdxqtZlhSCiRHGsAIXPfdVq\ni8d+lRafatDBk70BZ3zY5HT6roYUZHRHVOgfCiBF0ImGxZilHli+evxBJtfb\nx92s04E+vv8Y91laJ6J05NIKLcNjq0sYhuVu0rKRVUtjQMiWYsc1YFxlAGjJ\nbJ7y8mw0ERK58HsgLXsmq6kj2vyKxrNpfu25aqtRQ2RJhYw7z9rMOFC6twjl\n/N+3kYfGeKyMXgDpDA8dxK9gopz3BJ9OIkRdn9OiRp2deVyB+wOddueoNbrx\nw8QfJ21N+0rkp9edHisyvUxZO/rcbUSQ5pSEciXN0Gg8dGJesYLRehpQfbpa\nsLZ7\r\n=hf5E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAqc6+o6NDJJ7XGaxYmRPeFOlKmgcEjg+PgPdjKXGul+AiEA2Mped24lOkEZbXUF+3z53Hv7bbgVVMs9VebYphv0v1g="}]},"maintainers":[{"email":"accounts+npm@balena.io","name":"balena.io"},{"email":"accounts+npm-ci@resin.io","name":"resin-ci"},{"email":"accounts@resin.io","name":"resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_7.0.6-rename-dockerfile-7a9f45b53b5d514354136a5caecc6aaf56d13a94_1540412933515_0.13351311032721314"},"_hasShrinkwrap":false},"7.0.6-rename-dockerfile-70cab519b4b559887731bb1ad2b1e470de3137be":{"name":"resin-preload","version":"7.0.6-rename-dockerfile-70cab519b4b559887731bb1ad2b1e470de3137be","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"readme":"# resin-preload\n[![npm](https://img.shields.io/npm/v/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm license](https://img.shields.io/npm/l/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm downloads](https://img.shields.io/npm/dm/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n\nScript for preloading resin.io OS images (`.img`) with a user application container.\n\nUsing this will allow images with supervisor version above 1.0.0 to run the user application without connectivity, and without the need to download the container.\n\n## Warning\n\nIn order to preload images that use the overlay2 Docker storage driver (like\nnvidia jetson tx2 for example), you need to load the `overlay` Linux module:\n\n```sh\nsudo modprobe overlay\n```\n\nFor other images you will need to have the `aufs` module loaded.\n\n\n## Deprecation\n\nThe standalone mode described below (resin-preload) is now deprecated.\nIt will be removed in a future release.\nYou should use [resin-cli](https://www.npmjs.com/package/resin-cli) instead.\n\nInstall [resin-cli](https://www.npmjs.com/package/resin-cli) and run\n`resin help preload`.\n\n\n## Install via [npm](https://npmjs.com)\n\n```sh\n$ npm install --global resin-preload\n```\n\n<!-- MarkdownTOC -->\n\n- [Requirements](#requirements)\n- [Command Line Usage](#command-line-usage)\n    - [Example](#example)\n    - [Additional Options](#additional-options)\n    - [Custom Splash Screen](#custom-splash-screen)\n- [Module usage](#module-usage)\n- [Contributing](#contributing)\n- [Known Issues](#known-issues)\n    - [Speed Issues For Flasher Images on macOS](#speed-issues-for-flasher-images-on-macos)\n    - [Version Compatibility](#version-compatibility)\n    - [BTRFS Support](#btrfs-support)\n\n<!-- /MarkdownTOC -->\n\n\n## Requirements\n\n- [Node](https://nodejs.org)\n- [Docker](https://www.docker.com) tested on 1.12.6 and up but 17.04 or up is recommended especially on macOS, [docker-toolbox](https://www.docker.com/products/docker-toolbox) is not supported.\nOlder versions of resin-preload do support docker-toolbox, see [Version Compatibility](#version-compatibility) below.\n\n## Command Line Usage\n\n```\nUsage: resin-preload [options]\n\nOptions:\n\n  --app            Application ID (required)\n  --img            Disk image (or Edison zip file) to preload into (required)\n  --api-token      API token (required, or api-key)\n  --api-key        API key (required, or api-token)\n  --commit         App commit to be preloaded (default: latest)\n  --api-host       API host (default: \"https://api.resin.io\", the TLD will also be used for registry2 requests)\n  --splash-image   PNG Image for custom splash screen\n\n  --dont-check-arch          Disables check for matching architecture in image and application\n\n  --help, -h       Display resin-preload usage\n  --version, -v    Display resin-preload version\n\nEnvironment variables:\n\n  The following option flags can also be set\n  via the corresponding environment variables:\n\n  --app                               APP_ID\n  --img                               IMAGE\n  --api-token                         API_TOKEN\n  --api-key                           API_KEY\n  --commit                            COMMIT\n  --api-host                          API_HOST\n  --splash-image                      SPLASH_IMAGE\n  --dont-check-arch                   DONT_CHECK_ARCH\n\nExample:\n\n  resin-preload --app 123456 --api-token \"xxxx...\" --img /path/to/resin-os.img\n\n```\n\nIf using environment variables, this program requires the following options to be set:\n\n  * `IMAGE`: The path to the OS image you downloaded for the `APP_ID` you want to target.\n  * `APP_ID`: ID of the App that will be assigned to the device. It can be extracted from the URL in the Resin dashboard,\n     for instance `https://dashboard.resin.io/apps/2167` means the `APP_ID` is `2167`.\n  * `API_TOKEN`: Authentication token for Resin, taken from the [preferences page](https://dashboard.resin.io/preferences/details). \n\n\n### Example\n\n**NOTE:** Before running the example below, make sure that you have successfully pushed to the app and\nthat the `Application commit` is the correct version of the code you intend to preload.\n\nDownload an OS image from the Resin dashboard and then run:\n\n1) Using option flags for configuration:\n\n```bash\n$ resin-preload --app 123456 --api-token \"XXX...\" --img /path/to/resin.img\n```\n\n2) Using environment variables for configuration:\n\n```bash\n# Set the environment variables\n$ export API_TOKEN=... # copy from dashboard preferences\n$ export APP_ID=... # id of your application (you can see it on dashboard URL when you visit your app page)\n$ export IMAGE=/path/to/resin.img\n\n# As all required options have been set via environment variables,\n# there's no need to pass any options, just run\n$ resin-preload\n```\n\nThe `/path/to/resin.img` file, will now have the latest version of your application preloaded.\n\n### Additional Options\n\n* Alternatively to `API_TOKEN`, you can use an `API_KEY` variable with an API key from a config.json file or the [SDK](https://github.com/resin-io/resin-sdk/blob/master/DOCUMENTATION.md#resin.models.application.getApiKey).\n* `API_HOST`: Address of the Resin API. If unsure, use `https://api.resin.io`.\n* `SPLASH_IMAGE`: Path to a custom splash image, to copy into the preloaded OS image\n\n### Custom Splash Screen\n\nAt this time, the custom splash screen image needs to be a PNG.\nFor more details on splash images, see:\n  - [The Resin.io Notes – What are we working on / Revamping Splash Screens](https://forums.resin.io/t/what-are-we-working-on-the-resin-io-notes/414/7)\n  - [Documenting the custom boot splash screen](https://github.com/resin-io/docs/issues/155)\n  - [resin-io/resin-plugin-img](https://github.com/resin-io/resin-plugin-img)\n\n## Module usage\n\nPlease check bin/resin-preload\n\n## Contributing\n\n### Install from github\n\n * Clone this repo: `git clone git@github.com:resin-io/resin-preload.git`\n * Change directory: `cd resin-preload`\n * Install dependencies: `npm i`\n * Run resin-preload: `./bin/resin-preload`\n\n### Issues\n\n If you encounter any problem, you can [open an issue](https://github.com/resin-io/resin-preload/issues)\n\n## Known Issues\n\n### Speed Issues For Flasher Images on macOS\n\nDocker on macOS has [some speed issues with volumes](https://github.com/docker/for-mac/issues/77).\nThis makes this script slow, especially with Flasher Images.\n\n### Version Compatibility\n\nThis version will only work for Resin OS versions 1.2 and later.\nFor versions earlier than 1.2 you will need to checkout commit `5d6d4607bffc98acdf649ce5328e2079dfb9c3d9` of this repo and then follow the steps below. \n\n### BTRFS Support\n\nSince Docker for Mac removed support for the BTRFS storage driver (see [docker/for-mac/issues/388](https://github.com/docker/for-mac/issues/388)), preloading images prior to Resin OS 2.0 will require the older [Docker toolbox](https://docs.docker.com/toolbox/toolbox_install_mac/) setup with [VirtualBox](https://www.virtualbox.org/) to function properly.\n","readmeFilename":"README.md","gitHead":"70cab519b4b559887731bb1ad2b1e470de3137be","_id":"resin-preload@7.0.6-rename-dockerfile-70cab519b4b559887731bb1ad2b1e470de3137be","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"balena.io","email":"accounts+npm@balena.io"},"dist":{"integrity":"sha512-DcfJLfGs7N7lL2IIYhY6f4euYIZ5Nt1IyMOYopFiL0QD7yq1W0x2K2LoTxRJ7HohXoj0sL6pNDkWaQ+/8aqPgA==","shasum":"9a39f5a523a750a6f357913b1306cc0bd1222f53","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-7.0.6-rename-dockerfile-70cab519b4b559887731bb1ad2b1e470de3137be.tgz","fileCount":9,"unpackedSize":84182,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb12udCRA9TVsSAnZWagAAcJkP/Rb4s9qOKW2cjuiZUq1b\nX+MKNE3YOi3Aqm7YIM74ajDnlcA8bpTqIlsrNO6CQ5yhVL8auQxdvkoDJqWV\nZSpZQVizsLYbhJnmaKUKi5cfxXRXBTJk5O2RCz5n0WS0UWS0hGdDH9SfSLG+\n+2fquHhV4uHnD1Rfb9D0lKb4Qano+Y7NNn1JlYviehTm5EDOx9NqQFfKCBVA\nzNO1VL70Z/5KGByNEG9J73oam85Ex59S3+PCkv32ei/SAxBHivAhEOxeXU7/\nZMWAWiaZxs4Pr6YBB1F+4GD0Fzz/aEDPUyWWwumNxAH3j1To5dNjM7v7/rxB\nkdBe4enkRzQ0Qu/zXlujXgOu5o55up5q1L5RlvClTBmPZzdCBjdaBXwAaOuf\nCa6hRI7KKouNSzA9YUr4kC1bhKQSCrQzI3OoWmypmP9uThh/rADC1fb0VIbO\nBvoqzz1suinFXkNXIeiw0/xX+AnRAuYtxoQ4PMr42oSw7xTSmUmEf065ayq8\nvXwqZd2MaXtMswpryd8m6zOaHPDTZNOEtKWtNVHdUeLCcYyDiPXc0cMgeNu9\nE/joA6wMmzojakCJ5vxuPyclyo5HhlCQDtaN4tLabZt4wFIPbwg7WULvPYRT\n0qx2MKN2Vh7Vn1racLVjyt/PXrSpYYqAVTOSJslezV87k/IQg4qtGPoR75gl\ncW80\r\n=zvHo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAQJ38Dil5NNbAb+SpoDQThHMBWEYpJyfO6WpigOeDfgIhAKBSjju4wDY+0nh6ExFuYNV4pca1AkjcW8x8tFo+YL2b"}]},"maintainers":[{"email":"accounts+npm@balena.io","name":"balena.io"},{"email":"accounts+npm-ci@resin.io","name":"resin-ci"},{"email":"accounts@resin.io","name":"resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_7.0.6-rename-dockerfile-70cab519b4b559887731bb1ad2b1e470de3137be_1540844445159_0.7189601856294869"},"_hasShrinkwrap":false},"7.0.6":{"name":"resin-preload","version":"7.0.6","description":"Preload resinOS images with a user application container","license":"Apache-2.0","author":{"name":"Resin.io Ltd","url":"https://resin.io"},"keywords":["resin","resinos","image","docker","container"],"main":"lib/preload.js","dependencies":{"archiver":"^2.0.3","bluebird":"^3.5.0","compare-versions":"^3.1.0","docker-progress":"^3.0.1","dockerode":"^2.5.0","get-folder-size":"^1.0.0","get-port":"^3.2.0","lodash":"^4.17.4","node-cleanup":"^2.1.2","resin-cli-visuals":"^1.4.0","resin-sdk":"9.0.0-beta16","tar-stream":"^1.5.4","tmp":"0.0.33","unzipper":"^0.8.9"},"devDependencies":{"standard":"^10.0.2"},"peerDependencies":{},"optionalDependencies":{},"homepage":"https://github.com/resin-io/resin-preload","repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"scripts":{"pretest":"standard lib/*.js bin/resin-preload"},"bin":{"resin-preload":"bin/resin-preload"},"gitHead":"b4190a65c58918d29fc22b0f0f27e44055577f6a","_id":"resin-preload@7.0.6","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"balena.io","email":"accounts+npm@balena.io"},"dist":{"integrity":"sha512-FsaPDH7xQj2e37PujBtmfU0yc+NW1SLkfP2FyY5MoGI6zLPo7G4PUjrHnCzaW4Xr5Thi/6Aizqx/NRswsvPjRA==","shasum":"a10c66bbb477fab3295d3570aef043ee202f05e6","tarball":"https://registry.npmjs.org/resin-preload/-/resin-preload-7.0.6.tgz","fileCount":9,"unpackedSize":84123,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb12z3CRA9TVsSAnZWagAA0tAP/0xcgot9WGzDDnfC5D75\nU3hGZ9Kwfwa+zs+QBbqa/WPElK/TeXE4Zq5mL3InQjfjRvS+Xfpi7D5YxsCz\nZmPhzEg7Q/cYnVbQwDYxWjpaxp7cINZk2iZUMCro4uRmuwAc9kV7tv5AaEEj\nfMyDCe2fco/VSqw8SVcWWSFHZqoBHApO2P3jvT18F6Bs6JlsvGsqThCugrpc\nIreROo6kPzLjkghwYtrvyrOStfEle+0LgShVjbxnqkAbOs6Nj+RikAUD6Pr8\nGNT4R6wW14ZDiftA8FAr0ZPrXQNVo1s9Xnxy5mqEvSba7bjXUJQGibfdsK+f\n1d+bbG7DmLojOM3t8ejjAMOTMcFmEojnQ0uJnunsv+8St8mKYcJkzkp+voim\np8sqPr02r3IenDlFKefzKWm0QbaV2q1GUyTNc230fxY9WWXDqxfpOtNY/mcY\n664MOrxtFSwB6r5pCMbYbPwb0sNcimsIUcAGZlTvI6hymGjygyza6q/e5mzQ\nmKXZh9aBV2MbFutYxBu2xeKsVUhnAi0smRYrh7EEGI/krf++TPP4sEKrRlJI\n1n51yqYbdX5GY7uH9FnrEJgEIyn3bPBcpQ1U+UI1apUYTgaZQ2emGNz6U9uk\nM4MkQAgQhdW0Akt/CRiEPsXxdZ1KgYTJiAb31A13NG93SmBsTSVSwJF02RQQ\nbQRm\r\n=Yg/x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDlD3KpuMM/mxq4ZF82fhKiZHrfthrcNDmucUd5B77awAiEA5z8W/9X5fRx6EwIskUxqtN7VopT+yQ5BpZdEWTI49M0="}]},"maintainers":[{"email":"accounts+npm@balena.io","name":"balena.io"},{"email":"accounts+npm-ci@resin.io","name":"resin-ci"},{"email":"accounts@resin.io","name":"resin.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-preload_7.0.6_1540844791252_0.08199738651866983"},"_hasShrinkwrap":false,"deprecated":"resin-preload is deprecated, please use balena-preload instead"}},"readme":"# resin-preload\n[![npm](https://img.shields.io/npm/v/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm license](https://img.shields.io/npm/l/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n[![npm downloads](https://img.shields.io/npm/dm/resin-preload.svg?style=flat-square)](https://npmjs.com/package/resin-preload)\n\nScript for preloading resin.io OS images (`.img`) with a user application container.\n\nUsing this will allow images with supervisor version above 1.0.0 to run the user application without connectivity, and without the need to download the container.\n\n## Warning\n\nIn order to preload images that use the overlay2 Docker storage driver (like\nnvidia jetson tx2 for example), you need to load the `overlay` Linux module:\n\n```sh\nsudo modprobe overlay\n```\n\nFor other images you will need to have the `aufs` module loaded.\n\n\n## Deprecation\n\nThe standalone mode described below (resin-preload) is now deprecated.\nIt will be removed in a future release.\nYou should use [resin-cli](https://www.npmjs.com/package/resin-cli) instead.\n\nInstall [resin-cli](https://www.npmjs.com/package/resin-cli) and run\n`resin help preload`.\n\n\n## Install via [npm](https://npmjs.com)\n\n```sh\n$ npm install --global resin-preload\n```\n\n<!-- MarkdownTOC -->\n\n- [Requirements](#requirements)\n- [Command Line Usage](#command-line-usage)\n    - [Example](#example)\n    - [Additional Options](#additional-options)\n    - [Custom Splash Screen](#custom-splash-screen)\n- [Module usage](#module-usage)\n- [Contributing](#contributing)\n- [Known Issues](#known-issues)\n    - [Speed Issues For Flasher Images on macOS](#speed-issues-for-flasher-images-on-macos)\n    - [Version Compatibility](#version-compatibility)\n    - [BTRFS Support](#btrfs-support)\n\n<!-- /MarkdownTOC -->\n\n\n## Requirements\n\n- [Node](https://nodejs.org)\n- [Docker](https://www.docker.com) tested on 1.12.6 and up but 17.04 or up is recommended especially on macOS, [docker-toolbox](https://www.docker.com/products/docker-toolbox) is not supported.\nOlder versions of resin-preload do support docker-toolbox, see [Version Compatibility](#version-compatibility) below.\n\n## Command Line Usage\n\n```\nUsage: resin-preload [options]\n\nOptions:\n\n  --app            Application ID (required)\n  --img            Disk image (or Edison zip file) to preload into (required)\n  --api-token      API token (required, or api-key)\n  --api-key        API key (required, or api-token)\n  --commit         App commit to be preloaded (default: latest)\n  --api-host       API host (default: \"https://api.resin.io\", the TLD will also be used for registry2 requests)\n  --splash-image   PNG Image for custom splash screen\n\n  --dont-check-arch          Disables check for matching architecture in image and application\n\n  --help, -h       Display resin-preload usage\n  --version, -v    Display resin-preload version\n\nEnvironment variables:\n\n  The following option flags can also be set\n  via the corresponding environment variables:\n\n  --app                               APP_ID\n  --img                               IMAGE\n  --api-token                         API_TOKEN\n  --api-key                           API_KEY\n  --commit                            COMMIT\n  --api-host                          API_HOST\n  --splash-image                      SPLASH_IMAGE\n  --dont-check-arch                   DONT_CHECK_ARCH\n\nExample:\n\n  resin-preload --app 123456 --api-token \"xxxx...\" --img /path/to/resin-os.img\n\n```\n\nIf using environment variables, this program requires the following options to be set:\n\n  * `IMAGE`: The path to the OS image you downloaded for the `APP_ID` you want to target.\n  * `APP_ID`: ID of the App that will be assigned to the device. It can be extracted from the URL in the Resin dashboard,\n     for instance `https://dashboard.resin.io/apps/2167` means the `APP_ID` is `2167`.\n  * `API_TOKEN`: Authentication token for Resin, taken from the [preferences page](https://dashboard.resin.io/preferences/details). \n\n\n### Example\n\n**NOTE:** Before running the example below, make sure that you have successfully pushed to the app and\nthat the `Application commit` is the correct version of the code you intend to preload.\n\nDownload an OS image from the Resin dashboard and then run:\n\n1) Using option flags for configuration:\n\n```bash\n$ resin-preload --app 123456 --api-token \"XXX...\" --img /path/to/resin.img\n```\n\n2) Using environment variables for configuration:\n\n```bash\n# Set the environment variables\n$ export API_TOKEN=... # copy from dashboard preferences\n$ export APP_ID=... # id of your application (you can see it on dashboard URL when you visit your app page)\n$ export IMAGE=/path/to/resin.img\n\n# As all required options have been set via environment variables,\n# there's no need to pass any options, just run\n$ resin-preload\n```\n\nThe `/path/to/resin.img` file, will now have the latest version of your application preloaded.\n\n### Additional Options\n\n* Alternatively to `API_TOKEN`, you can use an `API_KEY` variable with an API key from a config.json file or the [SDK](https://github.com/resin-io/resin-sdk/blob/master/DOCUMENTATION.md#resin.models.application.getApiKey).\n* `API_HOST`: Address of the Resin API. If unsure, use `https://api.resin.io`.\n* `SPLASH_IMAGE`: Path to a custom splash image, to copy into the preloaded OS image\n\n### Custom Splash Screen\n\nAt this time, the custom splash screen image needs to be a PNG.\nFor more details on splash images, see:\n  - [The Resin.io Notes – What are we working on / Revamping Splash Screens](https://forums.resin.io/t/what-are-we-working-on-the-resin-io-notes/414/7)\n  - [Documenting the custom boot splash screen](https://github.com/resin-io/docs/issues/155)\n  - [resin-io/resin-plugin-img](https://github.com/resin-io/resin-plugin-img)\n\n## Module usage\n\nPlease check bin/resin-preload\n\n## Contributing\n\n### Install from github\n\n * Clone this repo: `git clone git@github.com:resin-io/resin-preload.git`\n * Change directory: `cd resin-preload`\n * Install dependencies: `npm i`\n * Run resin-preload: `./bin/resin-preload`\n\n### Issues\n\n If you encounter any problem, you can [open an issue](https://github.com/resin-io/resin-preload/issues)\n\n## Known Issues\n\n### Speed Issues For Flasher Images on macOS\n\nDocker on macOS has [some speed issues with volumes](https://github.com/docker/for-mac/issues/77).\nThis makes this script slow, especially with Flasher Images.\n\n### Version Compatibility\n\nThis version will only work for Resin OS versions 1.2 and later.\nFor versions earlier than 1.2 you will need to checkout commit `5d6d4607bffc98acdf649ce5328e2079dfb9c3d9` of this repo and then follow the steps below. \n\n### BTRFS Support\n\nSince Docker for Mac removed support for the BTRFS storage driver (see [docker/for-mac/issues/388](https://github.com/docker/for-mac/issues/388)), preloading images prior to Resin OS 2.0 will require the older [Docker toolbox](https://docs.docker.com/toolbox/toolbox_install_mac/) setup with [VirtualBox](https://www.virtualbox.org/) to function properly.\n","maintainers":[{"email":"accounts+npm@balena.io","name":"balena.io"}],"time":{"modified":"2022-06-26T11:49:36.064Z","created":"2017-07-05T16:22:30.507Z","1.0.0":"2017-07-05T16:22:30.507Z","1.0.1":"2017-07-07T16:25:31.472Z","1.1.0":"2017-07-25T13:30:02.041Z","1.2.0":"2017-07-25T18:44:17.975Z","1.3.0":"2017-08-04T10:07:36.160Z","1.3.1":"2017-08-04T10:17:04.630Z","1.4.0":"2017-08-04T12:34:56.459Z","1.4.1":"2017-08-09T10:16:01.825Z","2.0.0":"2017-08-11T13:29:59.901Z","2.0.1":"2017-08-16T15:27:11.882Z","2.0.2":"2017-08-18T17:11:51.797Z","2.0.3":"2017-08-21T12:30:35.325Z","3.0.0":"2017-08-21T17:19:08.656Z","3.1.0":"2017-08-22T16:32:56.322Z","3.1.1":"2017-08-24T10:31:12.113Z","3.1.2":"2017-08-25T10:05:05.194Z","3.1.4":"2017-08-25T12:57:01.082Z","3.1.5":"2017-08-31T09:58:53.613Z","3.1.6":"2017-08-31T10:37:41.808Z","3.1.7":"2017-09-05T09:21:16.714Z","3.1.8":"2017-09-28T10:17:26.860Z","3.1.9":"2017-10-06T11:39:09.399Z","4.0.0":"2017-10-13T11:04:22.990Z","4.0.1":"2017-10-13T16:08:31.675Z","4.0.2":"2017-10-16T10:57:31.137Z","4.0.3":"2017-10-18T09:16:10.730Z","4.0.4":"2017-10-18T19:58:48.518Z","4.0.6":"2017-10-20T11:30:08.787Z","4.0.7":"2017-10-24T10:40:40.781Z","4.0.8":"2017-10-24T20:34:52.304Z","4.0.9":"2017-10-25T10:08:41.928Z","5.0.0":"2017-10-27T09:32:45.742Z","5.0.1":"2017-11-08T19:59:48.562Z","5.0.2":"2017-11-16T21:23:23.101Z","5.0.3":"2017-11-16T22:08:24.294Z","5.0.4":"2017-11-17T18:17:38.886Z","5.1.1":"2017-12-12T15:20:56.753Z","5.1.2":"2018-01-12T12:04:43.166Z","6.0.0-beta1":"2018-01-26T17:22:35.477Z","6.0.0-beta2":"2018-01-30T16:28:16.569Z","6.0.0-beta3":"2018-01-30T20:18:07.653Z","6.0.0-beta4":"2018-01-30T20:33:15.808Z","6.0.0-beta5":"2018-02-05T18:40:04.139Z","5.2.0":"2018-02-06T14:53:34.988Z","6.0.0-beta6":"2018-02-06T16:40:39.238Z","5.2.1":"2018-02-22T16:52:33.935Z","6.0.0-beta7":"2018-02-22T16:55:52.671Z","5.2.2":"2018-02-28T12:29:54.360Z","6.0.0-beta8":"2018-02-28T12:32:18.992Z","6.0.0-beta9":"2018-03-09T17:02:06.424Z","6.0.0-beta10":"2018-03-09T17:49:33.716Z","6.0.0-beta11":"2018-03-09T20:38:47.502Z","6.0.0":"2018-03-09T21:52:31.676Z","6.1.0":"2018-03-19T17:44:02.990Z","6.1.1":"2018-03-19T19:08:50.865Z","6.1.2":"2018-03-20T15:19:56.296Z","6.2.0":"2018-03-23T13:37:57.222Z","6.3.0":"2018-05-30T13:19:11.084Z","6.3.1":"2018-05-30T16:53:55.060Z","6.3.2":"2018-08-09T16:51:16.808Z","7.0.0":"2018-08-20T16:04:16.477Z","7.0.1":"2018-08-21T15:40:23.335Z","7.0.2-windows-ee057ef":"2018-08-27T20:17:57.660Z","7.0.2-windows-82f6f7b":"2018-08-27T20:54:03.015Z","7.0.2":"2018-08-28T09:10:53.339Z","6.3.3":"2018-08-28T13:46:28.265Z","7.0.3-use-localhost-on-windows-1a4d548":"2018-08-29T14:33:34.493Z","7.0.3-use-localhost-on-windows-540ea0c":"2018-08-29T14:52:30.160Z","7.0.3":"2018-08-29T17:15:56.293Z","6.3.4":"2018-08-29T17:16:06.528Z","7.0.4-fix-3231e6d2964ab880ad03871f2cdf0f5c128e0dd7":"2018-08-30T13:16:22.683Z","7.0.4-fix-c72439ab8b928bd50b5a0eab43604cb3665ff076":"2018-08-30T14:41:05.748Z","7.0.4-fix-40e9c44b99f0556fe7f845654248262a856b3d55":"2018-08-31T07:17:58.154Z","7.0.4":"2018-08-31T12:20:30.915Z","7.0.5-filter-out-service-id-e74c24fa529edc96c5025df954f0cc3696cb3ad3":"2018-09-06T16:12:42.097Z","7.0.5":"2018-09-06T16:26:02.699Z","6.3.5":"2018-09-06T16:30:25.299Z","7.0.6-rename-dockerfile-f943763d694029e08514132a695f4cfcddf96445":"2018-10-17T15:28:40.677Z","7.0.6-rename-dockerfile-7a9f45b53b5d514354136a5caecc6aaf56d13a94":"2018-10-24T20:28:53.621Z","7.0.6-rename-dockerfile-70cab519b4b559887731bb1ad2b1e470de3137be":"2018-10-29T20:20:45.289Z","7.0.6":"2018-10-29T20:26:31.379Z"},"homepage":"https://github.com/resin-io/resin-preload","keywords":["resin","resinos","image","docker","container"],"repository":{"type":"git","url":"git+https://github.com/resin-io/resin-preload.git"},"author":{"name":"Resin.io Ltd","url":"https://resin.io"},"bugs":{"url":"https://github.com/resin-io/resin-preload/issues"},"license":"Apache-2.0","readmeFilename":"README.md"}