This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"LAYOUTS": "----------------------", | |
"layouts": [ | |
"tall", | |
"wide", | |
"fullscreen", | |
"column" | |
], | |
"MODIFIERS": "----------------------", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
os="linux" | |
arch="amd64" | |
version="0.10.0" | |
packer_tmp_download=/tmp/packer_${version}_${os}_${arch}.zip | |
packer_install_location=/usr/local/bin | |
wget "https://releases.hashicorp.com/packer/${version}/packer_${version}_${os}_${arch}.zip" -O "$packer_tmp_download" | |
unzip "$packer_tmp_download" -d "$packer_install_location" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker-machine create --driver virtualbox --tls-san 127.0.0.1 --virtualbox-hostonly-cidr "10.0.0.1/24" a | |
docker-machine create --driver virtualbox --tls-san 127.0.0.1 --virtualbox-hostonly-cidr "172.16.0.1/24" b | |
docker-machine create --driver virtualbox --tls-san 127.0.0.1 --virtualbox-hostonly-cidr "192.168.0.1/24" c | |
# set your http_proxy and https_proxy variables before running | |
docker-machine create --driver virtualbox --tls-san 127.0.0.1 --engine-env HTTP_PROXY=${http_proxy} --engine-env HTTPS_PROXY=${https_proxy} --virtualbox-hostonly-cidr "10.0.1.1/24" ap | |
docker-machine create --driver virtualbox --tls-san 127.0.0.1 --engine-env HTTP_PROXY=${http_proxy} --engine-env HTTPS_PROXY=${https_proxy} --virtualbox-hostonly-cidr "172.16.1.1/24" bp | |
docker-machine create --driver virtualbox --tls-san 127.0.0.1 --engine-env HTTP_PROXY=${http_proxy} --engine-env HTTPS_PROXY=${https_proxy} --virtualbox-hostonly-cidr "192.168.1.1/24" cp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var microlib = require('microlib'); | |
module.exports = { | |
addTwoMicroservice: microlib.builder | |
.setFunction(function(one, two) { | |
return one + two; | |
}) | |
.build() | |
// spinUpON is provided by the builder | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var microlib = require('microlib'); | |
var redis_service = require('redis-service'); | |
module.exports = { | |
db: microlib.builder | |
.injectPersistentStorage(redis_service, os.environ.REDIS_URL) | |
.setScheduleStrategy(microlib.GRAVITY_STRATEGY) | |
.setFunction(function(services, args){ | |
return services[0](args[0]); | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var microlib = require('microlib'); | |
var redis_storage = require('microlib-redis-storage'); | |
module.exports = { | |
statichost: microlib.builder | |
.injectPersistentStorage(redis_storage, os.environ.REDIS_URL) | |
.setScheduleStrategy(microlib.COLOCATE_STRATEGY) | |
.setFunction(function(services, args) { | |
return services[0](args[0]); | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is here for reference | |
FROM node | |
COPY ./microlib-current-app.js / | |
ENTRYPOINT node ./microlib-current-app.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var jayson = require('jayson'); | |
// create an array of injected services | |
var services = [ | |
function(args) { | |
return jayson.client.http({ | |
host: process.env.MICROLIB_SERVICE_HOST, | |
port: process.env.MICROLIB_SERVICE_PORT | |
}).request("addtwo", args, function(err, response) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// !!! VERSION 3 COMPATIBLE | |
/* | |
This is a sample config for Kwm | |
Commands prefixed with 'kwmc' will call | |
local functions corresponding to the | |
kwmc syntax. | |
To run an external program or command, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
application { | |
name = "DockerOnCoreOS" | |
type = "custom" | |
} | |
customization { | |
dev_vagrantfile = "./coreos-vagrant/Vagrantfile" | |
} |
OlderNewer