Create a file called /media/state/units/docker-local.service
that has the following contents:
[Unit]
Description=docker local
[Service]
PermissionsStartOnly=true
#!/bin/bash | |
IFNET="eth0" | |
IPNET="8.8.8.8" | |
PORTS="20 21 25 80 8000 8888 12000 12001 12002 12003" | |
BANLIST="64.205.0.18" | |
if [ "$1" = "start" ]; then | |
echo "Starting firewall..." |
Stability ratings: 0-5 | |
0 - Deprecated. This feature is known to be problematic, and changes are | |
planned. Do not rely on it. Use of the feature may cause warnings. Backwards | |
compatibility should not be expected. | |
1 - Experimental. This feature was introduced recently, and may change | |
or be removed in future versions. Please try it out and provide feedback. | |
If it addresses a use-case that is important to you, tell the node core team. |
function toString (obj) { | |
function _toString (i) { | |
if (obj[i] === null) return 'null' | |
if (typeof obj[i] === 'undefined') return 'undefined' | |
if (obj[i].toString) return obj[i].toString() | |
else return '' | |
} | |
return _toString | |
} |
Installation commands:
wget http://redis.googlecode.com/files/redis-2.4.8.tar.gz
tar xvfz redis-2.4.8.tar.gz
cd redis-2.4.8/
mkdir -p /opt/redis
make PREFIX=/opt/redis install
cp redis.conf /opt/redis/redis.conf
useradd -rMU -d /opt/redis -s /bin/false -c redis redis
#!/usr/bin/env node | |
/* | |
* This module can verify that packages installed during development are | |
* identical to those installed during deployment. The standard npm shrinkwrap | |
* only ensures that package versions are the same, but does not verify contents. | |
* This module checks the shasum of the package tarballs downloaded by npm during | |
* development and deployment to ensure they are the same. | |
* | |
* Usage: |
#!/bin/sh | |
## Node.js for Raspberry Pi Packaging Script | |
## ========================================= | |
## Execute this script from within node.js git repo | |
## Use like this: | |
## ~/node/$ VERSION=v0.10.0 ./buildnode.sh | |
if [ -z $VERSION ]; then | |
echo "set the VERSION first" | |
exit 1 |
function printStackTrace() { | |
var callstack = []; | |
var isCallstackPopulated = false; | |
try { | |
i.dont.exist+=0; //doesn't exist- that's the point | |
} catch(e) { | |
if (e.stack) { //Firefox | |
var lines = e.stack.split('\n'); | |
for (var i=0, len=lines.length; i<len; i++) { | |
if (lines[i].match(/^\s*[A-Za-z0-9\-_\$]+\(/)) { |
Unionize lets you connect together docker containers in arbitrarily complex scenarios.
Just check those examples.
Let's create two containers, running the web tier and the database tier:
These instructions will install salt-master and salt-cloud on recent Ubuntu releases. Consult the SaltStack Installation Documentation should you require instructions for other distributions.
echo deb http://ppa.launchpad.net/saltstack/salt/ubuntu `lsb_release -sc` main | sudo tee /etc/apt/sources.list.d/saltstack.list