From 0b51891e5977b87f986f4db2cbbe09295cfdbedc Mon Sep 17 00:00:00 2001 From: "hwajeong.son" Date: Mon, 20 Aug 2018 13:30:55 +0900 Subject: Tizen_4.0 base Signed-off-by: hwajeong.son --- landr.conf.js | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 landr.conf.js (limited to 'landr.conf.js') 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 common scenarios' + }, + { + '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.

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.

Read more in our blog post.' + ], + } +} -- cgit v1.2.3