diff options
author | hwajeong.son <hwajeong.son@samsung.com> | 2018-08-20 13:30:55 +0900 |
---|---|---|
committer | hwajeong.son <hwajeong.son@samsung.com> | 2018-08-20 13:30:55 +0900 |
commit | 0b51891e5977b87f986f4db2cbbe09295cfdbedc (patch) | |
tree | c35ac732cb1dffccee5a32131431f753481077c2 /landr.conf.js | |
parent | eea0e89806b2cf59af3dccabc67014bd19b91b82 (diff) | |
download | docker-engine-0b51891e5977b87f986f4db2cbbe09295cfdbedc.tar.gz docker-engine-0b51891e5977b87f986f4db2cbbe09295cfdbedc.tar.bz2 docker-engine-0b51891e5977b87f986f4db2cbbe09295cfdbedc.zip |
Tizen_4.0 baseHEADsubmit/trunk/20180820.043221master
Signed-off-by: hwajeong.son <hwajeong.son@samsung.com>
Diffstat (limited to 'landr.conf.js')
-rw-r--r-- | landr.conf.js | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/landr.conf.js b/landr.conf.js new file mode 100644 index 0000000..e8248d2 --- /dev/null +++ b/landr.conf.js @@ -0,0 +1,88 @@ +const fs = require('fs') + +const getArch = (str) => { + const [ _, arch ] = str.match(/-([^-]+)\.tar\.gz$/) + return arch +} + +const packagePrettyName = (str) => `Docker for ${getArch(str)}` + +const prepAssets = (release) => { + release.assets = release.assets.map((asset) => { + return Object.assign({}, asset, { + prettyName: packagePrettyName(asset.name), + arch: getArch(asset.name), + os: 'Linux' + }) + }) + + return release +} + +module.exports = { + theme: 'landr-theme-basic', + hooks: { + 'post-build': ({ config }) => { + const data = fs.readFileSync(`${__dirname}/contrib/install.sh`, 'utf-8') + return fs.writeFileSync(`${config.distDir}/install.sh`, data) + } + }, + middleware: (store, action, next) => { + if (action.type === 'ADD_RELEASE') { + // intercept all releases and add pretty labels to assets + action.payload = prepAssets(action.payload) + } + + return next(action) + }, + settings: { + lead: 'A Moby-based container engine for IoT', + analytics: { + mixpanelToken: '81dd4ca517f8bd50d46aa8fe057882ac', // mixpanelToken + gosquaredId: 'GSN-122115-A', // gosquared Id + gaSite: 'balena.io', // google Analytics site eg balena.io + gaId: 'UA-45671959-5' // google Analytics ID + }, + theme: { + colors: { + primary: '#00A375' + } + }, + callToActionCommand: 'curl -sfL https://balena.io/install.sh | sh', + features: [ + { + 'title': 'Small footprint', + 'image': 'footprint', + 'description': '3.5x smaller than Docker CE, packaged as a single binary' + }, + { + 'title': 'Multi-arch support', + 'image': 'multiple', + 'description': 'Available for a wide variety of chipset architectures, supporting everything from tiny IoT devices to large industrial gateways' + }, + { + 'title': 'True container deltas', + 'image': 'bandwidth', + 'description': 'Bandwidth-efficient updates with binary diffs, 10-70x smaller than pulling layers in <a href="https://resin.io/blog/announcing-balena-a-moby-based-container-engine-for-iot/#technical_comparison" target="_blank">common scenarios</a>' + }, + { + 'title': 'Minimal wear-and-tear', + 'image': 'storage', + 'description': 'Extract layers as they arrive to prevent excessive writing to disk, protecting your storage from eventual corruption' + }, + { + 'title': 'Failure-resistant pulls', + 'image': 'failure-resistant', + 'description': 'Atomic and durable image pulls defend against partial container pulls in the event of power failure' + }, + { + 'title': 'Conservative memory use', + 'image': 'undisturbed', + 'description': 'Prevents page cache thrashing during image pull, so your application runs undisturbed in low-memory situations' + } + ], + motivation: [ + 'Balena is a new container engine purpose-built for embedded and IoT use cases and compatible with Docker containers. </br></br>Based on Docker’s Moby Project, balena supports container deltas for 10-70x more efficient bandwidth usage, has 3.5x smaller binaries, uses RAM and storage more conservatively, and focuses on atomicity and durability of container pulling.</br></br>Read more in our <a href="https://resin.io/blog/announcing-balena-a-moby-based-container-engine-for-iot" target="_blank">blog post</a>.' + ], + } +} |