Create a file called /media/state/units/docker-local.service that has the following contents:
[Unit]
Description=docker local
[Service]
PermissionsStartOnly=true
| #!/bin/bash | |
| # Sets up a Docker Environment with the following components: | |
| # | |
| # - skydns (https://index.docker.io/u/crosbymichael/skydns/) | |
| # - skydock (https://github.com/crosbymichael/skydock) | |
| # - hipache (https://index.docker.io/_/hipache/) | |
| self=$(basename ${0}) |
| $ ssh vz1.nectar | |
| Last login: Thu Feb 13 05:08:53 UTC 2014 from pc031986.staff.ad.griffith.edu.au on ssh | |
| ______ ____ _____ | |
| / ____/___ ________ / __ \/ ___/ | |
| / / / __ \/ ___/ _ \/ / / /\__ \ | |
| / /___/ /_/ / / / __/ /_/ /___/ / | |
| \____/\____/_/ \___/\____//____/ | |
| core@vz1 ~ $ | |
| core@vz1 ~ $ docker images | |
| REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE |
| [root@terranova ~]# cat test.py | |
| #!/usr/local/bin/python | |
| import sys | |
| sys.path[0:0] = [ | |
| '/mnt/opt/plone/ccaih-buildout/eggs/supervisor-3.0-py2.7.egg', | |
| '/mnt/opt/plone/ccaih-buildout/eggs/meld3-0.6.10-py2.7.egg', | |
| '/mnt/opt/plone/ccaih-buildout/eggs/setuptools-2.2-py2.7.egg', | |
| ] |
| # pkgmk -d -kw | |
| =======> Building '/usr/ports/contrib/go/go#1.2.1-3.pkg.tar.gz'. | |
| bsdtar -p -o -C /usr/ports/contrib/go/work/src -xf /usr/ports/contrib/go/go1.2.1.src.tar.gz | |
| cp golang.sh /usr/ports/contrib/go/work/src | |
| + build | |
| + cd /usr/ports/contrib/go/work/src/go/src | |
| + export GOROOT_FINAL=/usr/lib/go | |
| + GOROOT_FINAL=/usr/lib/go | |
| + export GOROOT=/tmp/go/ | |
| + GOROOT=/tmp/go/ |
| # pkgmk -d -kw | |
| =======> Building '/usr/ports/contrib/bridge-utils/bridge-utils#1.5-1.pkg.tar.gz'. | |
| bsdtar -p -o -C /usr/ports/contrib/bridge-utils/work/src -xf /usr/ports/contrib/bridge-utils/bridge-utils-1.5.tar.gz | |
| + build | |
| + cd bridge-utils-1.5 | |
| + autoconf | |
| + ./configure --prefix=/usr --mandir=/usr/man | |
| checking for gcc... gcc | |
| checking whether the C compiler works... yes | |
| checking for C compiler default output file name... a.out |
| PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
| PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
| PREFIX cs: <http://purl.org/vocab/changeset/schema#> | |
| SELECT DISTINCT ?item WHERE { | |
| GRAPH ?g { | |
| ?item a cs:subjectOfChange . | |
| } | |
| } |
| >>> from os import mkdir | |
| >>> from os.path import getmtime | |
| >>> mkdir("foo") | |
| >>> getmtime("foo") | |
| 1399872726.0 | |
| >>> from os import utime | |
| >>> utime("foo", None) | |
| >>> getmtime("foo") | |
| 1399872755.0 |
| #!/usr/bin/env python | |
| class Node(object): | |
| def __init__(self, parent, obj): | |
| self.parent = parent | |
| self.next = None | |
| self.obj = obj |
| from circuits import Component | |
| from circuits.net.sockets import TCPClient, connect | |
| from circuits.net.protocols.irc import IRC, PRIVMSG, USER, NICK, JOIN, RPL_ENDOFMOTD, ERR_NOMOTD # noqa | |
| class PBot(Component): | |
| def init(self, host, port=6667): | |
| self.target = (host, port) | |
| self += (TCPClient() + IRC()) |