Browse code

Merge remote-tracking branch 'upstream/master' into vagrant11-providers

Conflicts:
puppet/modules/docker/manifests/init.pp

Charles Hooper authored on 2013/03/27 10:09:22
Showing 43 changed files
... ...
@@ -8,8 +8,11 @@ Docker is a great building block for automating distributed systems: large-scale
8 8
 <img src="http://bricks.argz.com/bricksfiles/lego/07000/7823/012.jpg"/>
9 9
 
10 10
 * *Heterogeneous payloads*: any combination of binaries, libraries, configuration files, scripts, virtualenvs, jars, gems, tarballs, you name it. No more juggling between domain-specific tools. Docker can deploy and run them all.
11
+
11 12
 * *Any server*: docker can run on any x64 machine with a modern linux kernel - whether it's a laptop, a bare metal server or a VM. This makes it perfect for multi-cloud deployments.
13
+
12 14
 * *Isolation*: docker isolates processes from each other and from the underlying host, using lightweight containers.
15
+
13 16
 * *Repeatability*: because containers are isolated in their own filesystem, they behave the same regardless of where, when, and alongside what they run.
14 17
 
15 18
 
... ...
@@ -17,14 +20,21 @@ Notable features
17 17
 -----------------
18 18
 
19 19
 * Filesystem isolation: each process container runs in a completely separate root filesystem.
20
+
20 21
 * Resource isolation: system resources like cpu and memory can be allocated differently to each process container, using cgroups.
22
+
21 23
 * Network isolation: each process container runs in its own network namespace, with a virtual interface and IP address of its own.
24
+
22 25
 * Copy-on-write: root filesystems are created using copy-on-write, which makes deployment extremeley fast, memory-cheap and disk-cheap.
26
+
23 27
 * Logging: the standard streams (stdout/stderr/stdin) of each process container are collected and logged for real-time or batch retrieval.
28
+
24 29
 * Change management: changes to a container's filesystem can be committed into a new image and re-used to create more containers. No templating or manual configuration required.
30
+
25 31
 * Interactive shell: docker can allocate a pseudo-tty and attach to the standard input of any container, for example to run a throwaway interactive shell.
26 32
 
27 33
 
34
+
28 35
 Under the hood
29 36
 --------------
30 37
 
... ...
@@ -32,8 +42,11 @@ Under the hood, Docker is built on the following components:
32 32
 
33 33
 
34 34
 * The [cgroup](http://blog.dotcloud.com/kernel-secrets-from-the-paas-garage-part-24-c) and [namespacing](http://blog.dotcloud.com/under-the-hood-linux-kernels-on-dotcloud-part) capabilities of the Linux kernel;
35
+
35 36
 * [AUFS](http://aufs.sourceforge.net/aufs.html), a powerful union filesystem with copy-on-write capabilities;
37
+
36 38
 * The [Go](http://golang.org) programming language;
39
+
37 40
 * [lxc](http://lxc.sourceforge.net/), a set of convenience scripts to simplify the creation of linux containers.
38 41
 
39 42
 
... ...
@@ -63,6 +76,7 @@ Installing on Ubuntu 12.04 and 12.10
63 63
 
64 64
     ```bash
65 65
     cd docker-master
66
+    sudo ./docker pull base
66 67
     sudo ./docker run -i -t base /bin/bash
67 68
     ```
68 69
 
... ...
@@ -123,6 +137,17 @@ docker ps
123 123
 ```
124 124
 
125 125
 
126
+Share your own image!
127
+---------------------
128
+
129
+```bash
130
+docker pull base
131
+CONTAINER=$(docker run -d base apt-get install -y curl)
132
+docker commit -m "Installed curl" $CONTAINER $USER/betterbase
133
+docker push $USER/betterbase
134
+```
135
+
136
+
126 137
 Expose a service on a TCP port
127 138
 ------------------------------
128 139
 
... ...
@@ -147,6 +172,7 @@ Want to hack on Docker? Awesome! There are instructions to get you started on th
147 147
 
148 148
 They are probably not perfect, please let us know if anything feels wrong or incomplete.
149 149
 
150
+### Pull requests are always welcome
150 151
 
151 152
 Note
152 153
 ----
... ...
@@ -156,5 +182,140 @@ Please find it under docs/sources/ and read more about it https://github.com/dot
156 156
 
157 157
 Please feel free to fix / update the documentation and send us pull requests. More tutorials are also welcome.
158 158
 
159
+### Discuss your design on the mailing list
160
+
161
+We recommend discussing your plans [on the mailing list](https://groups.google.com/forum/?fromgroups#!forum/docker-club) before starting to code - especially for more ambitious contributions. This gives other contributors a chance to point
162
+you in the right direction, give feedback on your design, and maybe point out if someone else is working on the same thing.
163
+
164
+### Create issues...
165
+
166
+Any significant improvement should be documented as [a github issue](https://github.com/dotcloud/docker/issues) before anybody starts working on it.
167
+
168
+### ...but check for existing issues first!
169
+
170
+Please take a moment to check that an issue doesn't already exist documenting your bug report or improvement proposal.
171
+If it does, it never hurts to add a quick "+1" or "I have this problem too". This will help prioritize the most common problems and requests.
172
+
173
+
174
+### Write tests
175
+
176
+Golang has a great testing suite built in: use it! Take a look at existing tests for inspiration.
177
+
178
+
179
+
180
+Setting up a dev environment
181
+----------------------------
182
+
183
+Instructions that have been verified to work on Ubuntu 12.10,
184
+
185
+```bash
186
+sudo apt-get -y install lxc wget bsdtar curl golang git
187
+
188
+export GOPATH=~/go/
189
+export PATH=$GOPATH/bin:$PATH
190
+
191
+mkdir -p $GOPATH/src/github.com/dotcloud
192
+cd $GOPATH/src/github.com/dotcloud
193
+git clone git@github.com:dotcloud/docker.git
194
+cd docker
195
+
196
+go get -v github.com/dotcloud/docker/...
197
+go install -v github.com/dotcloud/docker/...
198
+```
199
+
200
+Then run the docker daemon,
201
+
202
+```bash
203
+sudo $GOPATH/bin/docker -d
204
+```
205
+
206
+Run the `go install` command (above) to recompile docker.
207
+
208
+
209
+What is a Standard Container?
210
+=============================
211
+
212
+Docker defines a unit of software delivery called a Standard Container. The goal of a Standard Container is to encapsulate a software component and all its dependencies in
213
+a format that is self-describing and portable, so that any compliant runtime can run it without extra dependencies, regardless of the underlying machine and the contents of the container.
214
+
215
+The spec for Standard Containers is currently a work in progress, but it is very straightforward. It mostly defines 1) an image format, 2) a set of standard operations, and 3) an execution environment.
216
+
217
+A great analogy for this is the shipping container. Just like Standard Containers are a fundamental unit of software delivery, shipping containers (http://bricks.argz.com/ins/7823-1/12) are a fundamental unit of physical delivery.
218
+
219
+### 1. STANDARD OPERATIONS
220
+
221
+Just like shipping containers, Standard Containers define a set of STANDARD OPERATIONS. Shipping containers can be lifted, stacked, locked, loaded, unloaded and labelled. Similarly, standard containers can be started, stopped, copied, snapshotted, downloaded, uploaded and tagged.
222
+
223
+
224
+### 2. CONTENT-AGNOSTIC
225
+
226
+Just like shipping containers, Standard Containers are CONTENT-AGNOSTIC: all standard operations have the same effect regardless of the contents. A shipping container will be stacked in exactly the same way whether it contains Vietnamese powder coffee or spare Maserati parts. Similarly, Standard Containers are started or uploaded in the same way whether they contain a postgres database, a php application with its dependencies and application server, or Java build artifacts.
227
+
228
+
229
+### 3. INFRASTRUCTURE-AGNOSTIC
230
+
231
+Both types of containers are INFRASTRUCTURE-AGNOSTIC: they can be transported to thousands of facilities around the world, and manipulated by a wide variety of equipment. A shipping container can be packed in a factory in Ukraine, transported by truck to the nearest routing center, stacked onto a train, loaded into a German boat by an Australian-built crane, stored in a warehouse at a US facility, etc. Similarly, a standard container can be bundled on my laptop, uploaded to S3, downloaded, run and snapshotted by a build server at Equinix in Virginia, uploaded to 10 staging servers in a home-made Openstack cluster, then sent to 30 production instances across 3 EC2 regions.
232
+
233
+
234
+### 4. DESIGNED FOR AUTOMATION
235
+
236
+Because they offer the same standard operations regardless of content and infrastructure, Standard Containers, just like their physical counterpart, are extremely well-suited for automation. In fact, you could say automation is their secret weapon.
237
+
238
+Many things that once required time-consuming and error-prone human effort can now be programmed. Before shipping containers, a bag of powder coffee was hauled, dragged, dropped, rolled and stacked by 10 different people in 10 different locations by the time it reached its destination. 1 out of 50 disappeared. 1 out of 20 was damaged. The process was slow, inefficient and cost a fortune - and was entirely different depending on the facility and the type of goods.
239
+
240
+Similarly, before Standard Containers, by the time a software component ran in production, it had been individually built, configured, bundled, documented, patched, vendored, templated, tweaked and instrumented by 10 different people on 10 different computers. Builds failed, libraries conflicted, mirrors crashed, post-it notes were lost, logs were misplaced, cluster updates were half-broken. The process was slow, inefficient and cost a fortune - and was entirely different depending on the language and infrastructure provider.
241
+
242
+
243
+### 5. INDUSTRIAL-GRADE DELIVERY
244
+
245
+There are 17 million shipping containers in existence, packed with every physical good imaginable. Every single one of them can be loaded on the same boats, by the same cranes, in the same facilities, and sent anywhere in the World with incredible efficiency. It is embarrassing to think that a 30 ton shipment of coffee can safely travel half-way across the World in *less time* than it takes a software team to deliver its code from one datacenter to another sitting 10 miles away.
246
+
247
+With Standard Containers we can put an end to that embarrassment, by making INDUSTRIAL-GRADE DELIVERY of software a reality.
248
+
249
+
250
+
251
+
252
+Standard Container Specification
253
+--------------------------------
254
+
255
+(TODO)
256
+
257
+### Image format
258
+
259
+
260
+### Standard operations
261
+
262
+* Copy
263
+* Run
264
+* Stop
265
+* Wait
266
+* Commit
267
+* Attach standard streams
268
+* List filesystem changes
269
+* ...
270
+
271
+### Execution environment
272
+
273
+#### Root filesystem
274
+
275
+#### Environment variables
276
+
277
+#### Process arguments
278
+
279
+#### Networking
280
+
281
+#### Process namespacing
282
+
283
+#### Resource limits
284
+
285
+#### Process monitoring
286
+
287
+#### Logging
288
+
289
+#### Signals
290
+
291
+#### Pseudo-terminal allocation
292
+
293
+#### Security
159 294
 
160 295
 
... ...
@@ -31,12 +31,12 @@ def v10(config)
31 31
   # computers to access the VM, whereas host only networking does not.
32 32
   # config.vm.forward_port 80, 8080
33 33
 
34
+  # Ensure puppet is installed on the instance
35
+  config.vm.provision :shell, :inline => "apt-get -qq update; apt-get install -y puppet"
36
+
34 37
   # Share an additional folder to the guest VM. The first argument is
35 38
   # an identifier, the second is the path on the guest to mount the
36 39
   # folder, and the third is the path on the host to the actual folder.
37
-  if not File.exist? File.expand_path '~/docker'
38
-    Dir.mkdir(File.expand_path '~/docker')
39
-  end
40 40
   config.vm.share_folder "v-data", "~/docker", "~/docker"
41 41
 
42 42
   # Enable provisioning with Puppet stand alone.  Puppet manifests
... ...
@@ -123,6 +123,16 @@ end
123 123
     aws.ssh_username = "ubuntu"
124 124
     aws.instance_type = "t1.micro"
125 125
   end
126
+  config.vm.provider :rackspace do |rs|
127
+    config.vm.box = "dummy"
128
+    config.vm.box_url = "https://github.com/mitchellh/vagrant-rackspace/raw/master/dummy.box"
129
+    config.ssh.private_key_path = ENV["RS_PRIVATE_KEY"]
130
+    rs.username = ENV["RS_USERNAME"]
131
+    rs.api_key  = ENV["RS_API_KEY"]
132
+    rs.public_key_path = ENV["RS_PUBLIC_KEY"] 
133
+    rs.flavor   = /512MB/
134
+    rs.image    = /Ubuntu/
135
+  end   
126 136
   config.vm.provider :virtualbox do |vb|
127 137
     config.vm.box = "quantal64_3.5.0-25"
128 138
     config.vm.box_url = "http://get.docker.io/vbox/ubuntu/12.10/quantal64_3.5.0-25.box"
... ...
@@ -9,7 +9,6 @@ import (
9 9
 	"github.com/dotcloud/docker/rcli"
10 10
 	"io"
11 11
 	"log"
12
-	"math/rand"
13 12
 	"net/http"
14 13
 	"net/url"
15 14
 	"runtime"
... ...
@@ -826,10 +825,22 @@ func (srv *Server) CmdRun(stdin io.ReadCloser, stdout io.Writer, args ...string)
826 826
 		fmt.Fprintln(stdout, "Error: Command not specified")
827 827
 		return fmt.Errorf("Command not specified")
828 828
 	}
829
+
829 830
 	// Create new container
830 831
 	container, err := srv.runtime.Create(config)
831 832
 	if err != nil {
832
-		return errors.New("Error creating container: " + err.Error())
833
+		// If container not found, try to pull it
834
+		if srv.runtime.graph.IsNotExist(err) {
835
+			fmt.Fprintf(stdout, "Image %s not found, trying to pull it from registry.\n", config.Image)
836
+			if err = srv.CmdPull(stdin, stdout, config.Image); err != nil {
837
+				return err
838
+			}
839
+			if container, err = srv.runtime.Create(config); err != nil {
840
+				return err
841
+			}
842
+		} else {
843
+			return err
844
+		}
833 845
 	}
834 846
 	if config.OpenStdin {
835 847
 		cmd_stdin, err := container.StdinPipe()
... ...
@@ -884,7 +895,6 @@ func (srv *Server) CmdRun(stdin io.ReadCloser, stdout io.Writer, args ...string)
884 884
 }
885 885
 
886 886
 func NewServer() (*Server, error) {
887
-	rand.Seed(time.Now().UTC().UnixNano())
888 887
 	if runtime.GOARCH != "amd64" {
889 888
 		log.Fatalf("The docker runtime currently only supports amd64 (not %s). This will change in the future. Aborting.", runtime.GOARCH)
890 889
 	}
... ...
@@ -258,8 +258,9 @@ func (container *Container) Start() error {
258 258
 
259 259
 	var err error
260 260
 	if container.Config.Tty {
261
-		container.cmd.Env = append(container.Config.Env,
262
-			"TERM=xterm",
261
+		container.cmd.Env = append(
262
+			[]string{"TERM=xterm"},
263
+			container.cmd.Env...,
263 264
 		)
264 265
 		err = container.startPty()
265 266
 	} else {
... ...
@@ -7,12 +7,38 @@ import (
7 7
 	"io/ioutil"
8 8
 	"math/rand"
9 9
 	"os"
10
+	"regexp"
10 11
 	"sort"
11 12
 	"strings"
12 13
 	"testing"
13 14
 	"time"
14 15
 )
15 16
 
17
+func TestIdFormat(t *testing.T) {
18
+	runtime, err := newTestRuntime()
19
+	if err != nil {
20
+		t.Fatal(err)
21
+	}
22
+	defer nuke(runtime)
23
+	container1, err := runtime.Create(
24
+		&Config{
25
+			Image:  GetTestImage(runtime).Id,
26
+			Cmd:    []string{"/bin/sh", "-c", "echo hello world"},
27
+			Memory: 33554432,
28
+		},
29
+	)
30
+	if err != nil {
31
+		t.Fatal(err)
32
+	}
33
+	match, err := regexp.Match("^[0-9a-f]{64}$", []byte(container1.Id))
34
+	if err != nil {
35
+		t.Fatal(err)
36
+	}
37
+	if !match {
38
+		t.Fatalf("Invalid container ID: %s", container1.Id)
39
+	}
40
+}
41
+
16 42
 func TestCommitRun(t *testing.T) {
17 43
 	runtime, err := newTestRuntime()
18 44
 	if err != nil {
... ...
@@ -62,6 +62,11 @@ push:
62 62
 	@cd _build/html/ ; \
63 63
 	dotcloud push
64 64
 
65
+github-deploy: docs
66
+	rm -fr github-deploy
67
+	git clone ssh://git@github.com/dotcloud/docker github-deploy
68
+	cd github-deploy && git checkout -f gh-pages && git rm -r * && rsync -avH ../_build/html/ ./ && touch .nojekyll && echo "docker.io" > CNAME && git add * && git commit -m "Updating docs"
69
+
65 70
 $(VERSIONS):
66 71
 	@echo "Hello world"
67 72
 
... ...
@@ -1,4 +1,4 @@
1
-:title: docker documentation
1
+:title: Base commands
2 2
 :description: Common usage and commands
3 3
 :keywords: Examples, Usage
4 4
 
... ...
@@ -61,3 +61,7 @@ Expose a service on a TCP port
61 61
 
62 62
   # Verify that the network connection worked
63 63
   echo "Daemon received: $(docker logs $JOB)"
64
+
65
+Continue to the complete `Command Line Interface`_
66
+
67
+.. _Command Line Interface: ../commandline/cli.html
... ...
@@ -1,4 +1,4 @@
1
-:title: Contributing to Docker
1
+:title: Setting up a dev environment
2 2
 :description: Guides on how to contribute to docker
3 3
 :keywords: Docker, documentation, developers, contributing, dev environment
4 4
 
... ...
@@ -1,4 +1,4 @@
1
-:title: Docker: Hello world example
1
+:title: Hello world example
2 2
 :description: A simple hello world example with Docker
3 3
 :keywords: docker, example, hello world
4 4
 
... ...
@@ -1,4 +1,4 @@
1
-:title: Docker: Hello world daemon example
1
+:title: Hello world daemon example
2 2
 :description: A simple hello world daemon example with Docker
3 3
 :keywords: docker, example, hello world, daemon
4 4
 
... ...
@@ -1,4 +1,4 @@
1
-:title: Docker: Python Web app example
1
+:title: Python Web app example
2 2
 :description: Building your own python web app using docker
3 3
 :keywords: docker, example, python, web app
4 4
 
... ...
@@ -6,7 +6,7 @@
6 6
 
7 7
 Building a python web app
8 8
 =========================
9
-The goal of this example is to show you how you can author your own docker images using a parent image, making changes to it, and then saving the results as a new image. We will do that by making a simple hello flask web application image. 
9
+The goal of this example is to show you how you can author your own docker images using a parent image, making changes to it, and then saving the results as a new image. We will do that by making a simple hello flask web application image.
10 10
 
11 11
 **Steps:**
12 12
 
... ...
@@ -64,3 +64,7 @@ See the example in action
64 64
     <div style="margin-top:10px;">
65 65
       <iframe width="720" height="350" src="http://ascii.io/a/2573/raw" frameborder="0"></iframe>
66 66
     </div>
67
+
68
+Continue to the `base commands`_
69
+
70
+.. _base commands: ../commandline/basecommands.html
... ...
@@ -3,27 +3,45 @@ FAQ
3 3
 
4 4
 
5 5
 Most frequently asked questions.
6
+--------------------------------
6 7
 
7
-1. How much does Docker cost?
8
+**1. How much does Docker cost?**
8 9
 
9 10
 Docker is 100% free, it is open source, so you can use it without paying.
10 11
 
11
-2. What open source license are you using?
12
+**2. What open source license are you using?**
12 13
 
13 14
 We are using the Apache License Version 2.0, see it here: https://github.com/dotcloud/docker/blob/master/LICENSE
14 15
 
15
-3. Does Docker run on Mac OS X or Windows?
16
+**3. Does Docker run on Mac OS X or Windows?**
16 17
 
17
-Not at this time, Docker currently only runs on Linux, but you can use VirtualBox to run Docker in a virtual machine on your box, and get the best of both worlds. Check out the getting started guides for help on setting up your machine.
18
+Not at this time, Docker currently only runs on Linux, but you can use VirtualBox to run Docker in a virtual machine on your box, and get the best of both worlds. Check out the MacOSX_ and Windows_ intallation guides.
18 19
 
19
-4. How do containers compare to virtual machines?
20
+**4. How do containers compare to virtual machines?**
20 21
 
21
-Containers are more light weight and can start in less then a second, and are great for lots of different tasks, but they aren't as full featured as virtual machines. 
22
+They are complementary. VMs are best used to allocate chunks of hardware resources. Containers operate at the process level, which makes them very lightweight and perfect as a unit of software delivery.
22 23
 
23
-5. Can I help by adding some questions and answers?
24
+**5. Can I help by adding some questions and answers?**
24 25
 
25
-Definitely! You can fork the repo and edit the documentation sources right there.
26
+Definitely! You can fork `the repo`_ and edit the documentation sources.
27
+
28
+
29
+**42. Where can I find more answers?**
30
+
31
+You can find more answers on:
32
+
33
+* `IRC: docker on freenode`_
34
+* `Github`_
35
+* `Ask questions on Stackoverflow`_
36
+* `Join the conversation on Twitter`_
37
+
38
+.. _Windows: ../documentation/installation/windows.html
39
+.. _MacOSX: ../documentation/installation/macos.html
40
+.. _the repo: http://www.github.com/dotcloud/docker
41
+.. _IRC\: docker on freenode: irc://chat.freenode.net#docker
42
+.. _Github: http://www.github.com/dotcloud/docker
43
+.. _Ask questions on Stackoverflow: http://stackoverflow.com/search?q=docker
44
+.. _Join the conversation on Twitter: http://twitter.com/getdocker
26 45
 
27 46
 
28 47
 Looking for something else to read? Checkout the :ref:`hello_world` example.
... ...
@@ -32,7 +32,7 @@ Installation
32 32
 
33 33
 .. code-block:: bash
34 34
 
35
-    vagant up
35
+    vagrant up
36 36
 
37 37
 Vagrant will:
38 38
 
... ...
@@ -62,13 +62,15 @@
62 62
 </div>
63 63
 
64 64
 <div class="container">
65
+    <div class="alert alert-info">
66
+	    <strong>Docker is still under heavy development.</strong> It should not yet be used in production. Check <a href="http://github.com/dotcloud/docker">the repo</a> for recent progress.
67
+    </div>
65 68
     <div class="row">
66 69
         <div class="span6">
67 70
             <section class="contentblock">
68 71
                 <h2>
69 72
                     <a name="installing-on-ubuntu-1204-and-1210" class="anchor" href="#installing-on-ubuntu-1204-and-1210"><span class="mini-icon mini-icon-link"></span>
70
-                    </a>Installing on Ubuntu 12.04 and 12.10</h2>
71
-                    <p>Please note this project is currently under heavy development. It should not be used in production.</p>
73
+                    </a>Installing on Ubuntu</h2>
72 74
                 <ol>
73 75
                     <li>
74 76
                         <p>Install dependencies:</p>
... ...
@@ -72,11 +72,19 @@
72 72
                 </div>
73 73
 
74 74
                 <div style="text-align: center; padding: 50px 30px 50px 30px;">
75
-                    <h1>Docker - the Linux container runtime</h1>
75
+		    <h1>Docker</h1>
76
+		    <h2>The Linux container runtime</h2>
76 77
                 </div>
77 78
 
78 79
                 <div style="display: block; text-align: center; padding: 10px 30px 50px 30px;">
79
-                    <h2 style="font-size: 16px; line-height: 1.5em;">Docker encapsulates heterogeneous payloads in Standard Containers, and runs them on any server with strong guarantees of isolation and repeatability.</h2>
80
+			<p>
81
+			Docker complements LXC with a high-level API which operates at the process level.
82
+			It runs unix processes with strong guarantees of isolation and repeatability across servers.
83
+			</p>
84
+
85
+			<p>
86
+			Docker is a great building block for automating distributed systems: large-scale web deployments, database clusters, continuous deployment systems, private PaaS, service-oriented architectures, etc.
87
+			</p>
80 88
                 </div>
81 89
 
82 90
 
... ...
@@ -93,7 +101,7 @@
93 93
 </div>
94 94
 
95 95
 <div class="container">
96
-    <div class="row" style="margin-top: 20px;">
96
+    <div class="row">
97 97
 
98 98
         <div class="span3">
99 99
             <section class="contentblock">
... ...
@@ -119,8 +127,6 @@
119 119
                 <p>Because containers are isolated in their own filesystem, they behave the same regardless of where, when, and alongside what they run.</p>
120 120
             </section>
121 121
         </div>
122
-
123
-
124 122
     </div>
125 123
 </div>
126 124
 
... ...
@@ -138,7 +144,7 @@
138 138
 
139 139
 
140 140
 <div class="container">
141
-    <div class="row" style="margin-top: 20px;">
141
+    <div class="row">
142 142
         <div class="span6">
143 143
             <section class="contentblock twitterblock">
144 144
                 <img src="https://twimg0-a.akamaihd.net/profile_images/2491994496/rbevyyq6ykp6bnoby2je_bigger.jpeg">
... ...
@@ -152,6 +158,21 @@
152 152
             </section>
153 153
         </div>
154 154
     </div>
155
+    <div class="row">
156
+        <div class="span6">
157
+            <section class="contentblock twitterblock">
158
+                <img src="https://si0.twimg.com/profile_images/3408403010/4496ccdd14e9b7285eca04c31a740207_bigger.jpeg">
159
+                <em>David Romulan ‏@destructuring:</em> I haven't had this much fun since AWS
160
+            </section>
161
+        </div>
162
+        <div class="span6">
163
+            <section class="contentblock twitterblock">
164
+                <img src="https://si0.twimg.com/profile_images/780893320/My_Avatar_bigger.jpg">
165
+                <em>Ricardo Gladwell ‏@rgladwell:</em> wow @getdocker is either amazing or totally stupid
166
+            </section>
167
+        </div>
168
+
169
+    </div>
155 170
 </div>
156 171
 
157 172
 <!--         <p>Docker encapsulates heterogeneous payloads in <a href="#container">Standard Containers</a>, and runs them on any server with strong guarantees of isolation and repeatability.</p>
... ...
@@ -7,7 +7,7 @@
7 7
     <meta charset="utf-8">
8 8
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
9 9
 
10
-    <title>dotCloud - {{ meta['title'] if meta and meta['title'] else title }}</title>
10
+    <title>Docker - {{ meta['title'] if meta and meta['title'] else title }}</title>
11 11
 
12 12
     <meta name="description" content="{{ meta['description'] if meta }}" />
13 13
     <meta name="keywords" content="{{ meta['keywords'] if meta }}" />
14 14
deleted file mode 100755
... ...
@@ -1,1397 +0,0 @@
1
-/* 
2
-html5doctor.com Reset Stylesheet
3
-v1.6.1
4
-Last Updated: 2010-09-17
5
-Author: Richard Clark - http://richclarkdesign.com 
6
-Twitter: @rich_clark
7
-*/
8
-
9
-html, body, div, span, object, iframe,
10
-h1, h2, h3, h4, h5, h6, p, blockquote, pre,
11
-abbr, address, cite, code,
12
-del, dfn, em, img, ins, kbd, q, samp,
13
-small, strong, sub, sup, var,
14
-b, i,
15
-dl, dt, dd, ol, ul, li,
16
-fieldset, form, label, legend,
17
-table, caption, tbody, tfoot, thead, tr, th, td,
18
-article, aside, canvas, details, figcaption, figure, 
19
-footer, header, hgroup, menu, nav, section, summary,
20
-time, mark, audio, video {
21
-    margin:0;
22
-    padding:0;
23
-    border:0;
24
-    outline:0;
25
-    font-size:100%;
26
-    vertical-align:baseline;
27
-    background:transparent;
28
-}
29
-
30
-body {
31
-    line-height:1;
32
-}
33
-
34
-article,aside,details,figcaption,figure,
35
-footer,header,hgroup,menu,nav,section { 
36
-	display:block;
37
-}
38
-
39
-nav ul {
40
-    list-style:none;
41
-}
42
-
43
-blockquote, q {
44
-    quotes:none;
45
-}
46
-
47
-blockquote:before, blockquote:after,
48
-q:before, q:after {
49
-    content:'';
50
-    content:none;
51
-}
52
-
53
-a {
54
-    margin:0;
55
-    padding:0;
56
-    font-size:100%;
57
-    vertical-align:baseline;
58
-    background:transparent;
59
-}
60
-
61
-/* change colours to suit your needs */
62
-ins {
63
-    background-color:#ff9;
64
-    color:#000;
65
-    text-decoration:none;
66
-}
67
-
68
-/* change colours to suit your needs */
69
-mark {
70
-    background-color:#ff9;
71
-    color:#000; 
72
-    font-style:italic;
73
-    font-weight:bold;
74
-}
75
-
76
-del {
77
-    text-decoration: line-through;
78
-}
79
-
80
-abbr[title], dfn[title] {
81
-    border-bottom:1px dotted;
82
-    cursor:help;
83
-}
84
-
85
-table {
86
-    border-collapse:collapse;
87
-    border-spacing:0;
88
-}
89
-
90
-/* change border colour to suit your needs */
91
-hr {
92
-    display:block;
93
-    height:1px;
94
-    border:0;   
95
-    border-top:1px solid #cccccc;
96
-    margin:1em 0;
97
-    padding:0;
98
-}
99
-
100
-input, select {
101
-    vertical-align:middle;
102
-}
103
-
104
-/*** text.css ***/
105
-body {
106
-    font:13px/1.5 'Helvetica Neue',Arial,'Liberation Sans',FreeSans,sans-serif;
107
-}
108
-a:focus {
109
-    outline:1px dotted;
110
-}
111
-hr {
112
-    border:0 #ccc solid;
113
-    border-top-width:1px;
114
-    clear:both;
115
-    height:0;
116
-}
117
-h1 {
118
-    font-size:25px;
119
-}
120
-h2 {
121
-    font-size:23px;
122
-}
123
-h3 {
124
-    font-size:21px;
125
-}
126
-h4 {
127
-    font-size:19px;
128
-}
129
-h5 {
130
-    font-size:17px;
131
-}
132
-h6 {
133
-    font-size:15px;
134
-}
135
-ol {
136
-    list-style:decimal;
137
-}
138
-ul {
139
-    list-style:disc;
140
-}
141
-li {
142
-    margin-left:30px;
143
-}
144
-
145
-p,dl,hr,h1,h2,h3,h4,h5,h6,ol,ul,pre,table,address,fieldset{margin-bottom:20px}
146
-
147
-/*
148
-	Variable Grid System.
149
-	Learn more ~ http://www.spry-soft.com/grids/
150
-	Based on 960 Grid System - http://960.gs/
151
-
152
-	Licensed under GPL and MIT.
153
-*/
154
-
155
-
156
-/* Containers
157
-.container_12 {
158
-	margin-left: auto;
159
-	margin-right: auto;
160
-	width: 960px;
161
-}
162
-
163
-/* Grid >> Global
164
-
165
-.grid_1,
166
-.grid_2,
167
-.grid_3,
168
-.grid_4,
169
-.grid_5,
170
-.grid_6,
171
-.grid_7,
172
-.grid_8,
173
-.grid_9,
174
-.grid_10,
175
-.grid_11,
176
-.grid_12 {
177
-	display:inline;
178
-	float: left;
179
-	position: relative;
180
-	margin-left: 20px;
181
-	margin-right: 20px;
182
-}
183
-
184
-/* Grid >> Children (Alpha ~ First, Omega ~ Last)
185
-
186
-.alpha {
187
-	margin-left: 0;
188
-}
189
-
190
-.omega {
191
-	margin-right: 0;
192
-}
193
-
194
-/* Grid >> 12 Columns
195
-
196
-.container_12 .grid_1 {
197
-	width:40px;
198
-}
199
-
200
-.container_12 .grid_2 {
201
-	width:120px;
202
-}
203
-
204
-.container_12 .grid_3 {
205
-	width:200px;
206
-}
207
-
208
-.container_12 .grid_4 {
209
-	width:280px;
210
-}
211
-
212
-.container_12 .grid_5 {
213
-	width:360px;
214
-}
215
-
216
-.container_12 .grid_6 {
217
-	width:440px;
218
-}
219
-
220
-.container_12 .grid_7 {
221
-	width:520px;
222
-}
223
-
224
-.container_12 .grid_8 {
225
-	width:600px;
226
-}
227
-
228
-.container_12 .grid_9 {
229
-	width:680px;
230
-}
231
-
232
-.container_12 .grid_10 {
233
-	width:760px;
234
-}
235
-
236
-.container_12 .grid_11 {
237
-	width:840px;
238
-}
239
-
240
-.container_12 .grid_12 {
241
-	width:920px;
242
-}
243
-
244
-
245
-
246
-/* Prefix Extra Space >> 12 Columns
247
-
248
-.container_12 .prefix_1 {
249
-	padding-left:80px;
250
-}
251
-
252
-.container_12 .prefix_2 {
253
-	padding-left:160px;
254
-}
255
-
256
-.container_12 .prefix_3 {
257
-	padding-left:240px;
258
-}
259
-
260
-.container_12 .prefix_4 {
261
-	padding-left:320px;
262
-}
263
-
264
-.container_12 .prefix_5 {
265
-	padding-left:400px;
266
-}
267
-
268
-.container_12 .prefix_6 {
269
-	padding-left:480px;
270
-}
271
-
272
-.container_12 .prefix_7 {
273
-	padding-left:560px;
274
-}
275
-
276
-.container_12 .prefix_8 {
277
-	padding-left:640px;
278
-}
279
-
280
-.container_12 .prefix_9 {
281
-	padding-left:720px;
282
-}
283
-
284
-.container_12 .prefix_10 {
285
-	padding-left:800px;
286
-}
287
-
288
-.container_12 .prefix_11 {
289
-	padding-left:880px;
290
-}
291
-
292
-
293
-
294
-/* Suffix Extra Space >> 12 Columns
295
-
296
-.container_12 .suffix_1 {
297
-	padding-right:80px;
298
-}
299
-
300
-.container_12 .suffix_2 {
301
-	padding-right:160px;
302
-}
303
-
304
-.container_12 .suffix_3 {
305
-	padding-right:240px;
306
-}
307
-
308
-.container_12 .suffix_4 {
309
-	padding-right:320px;
310
-}
311
-
312
-.container_12 .suffix_5 {
313
-	padding-right:400px;
314
-}
315
-
316
-.container_12 .suffix_6 {
317
-	padding-right:480px;
318
-}
319
-
320
-.container_12 .suffix_7 {
321
-	padding-right:560px;
322
-}
323
-
324
-.container_12 .suffix_8 {
325
-	padding-right:640px;
326
-}
327
-
328
-.container_12 .suffix_9 {
329
-	padding-right:720px;
330
-}
331
-
332
-.container_12 .suffix_10 {
333
-	padding-right:800px;
334
-}
335
-
336
-.container_12 .suffix_11 {
337
-	padding-right:880px;
338
-}
339
-
340
-
341
-
342
-/* Push Space >> 12 Columns
343
-
344
-.container_12 .push_1 {
345
-	left:80px;
346
-}
347
-
348
-.container_12 .push_2 {
349
-	left:160px;
350
-}
351
-
352
-.container_12 .push_3 {
353
-	left:240px;
354
-}
355
-
356
-.container_12 .push_4 {
357
-	left:320px;
358
-}
359
-
360
-.container_12 .push_5 {
361
-	left:400px;
362
-}
363
-
364
-.container_12 .push_6 {
365
-	left:480px;
366
-}
367
-
368
-.container_12 .push_7 {
369
-	left:560px;
370
-}
371
-
372
-.container_12 .push_8 {
373
-	left:640px;
374
-}
375
-
376
-.container_12 .push_9 {
377
-	left:720px;
378
-}
379
-
380
-.container_12 .push_10 {
381
-	left:800px;
382
-}
383
-
384
-.container_12 .push_11 {
385
-	left:880px;
386
-}
387
-
388
-
389
-
390
-/* Pull Space >> 12 Columns
391
-
392
-.container_12 .pull_1 {
393
-	left:-80px;
394
-}
395
-
396
-.container_12 .pull_2 {
397
-	left:-160px;
398
-}
399
-
400
-.container_12 .pull_3 {
401
-	left:-240px;
402
-}
403
-
404
-.container_12 .pull_4 {
405
-	left:-320px;
406
-}
407
-
408
-.container_12 .pull_5 {
409
-	left:-400px;
410
-}
411
-
412
-.container_12 .pull_6 {
413
-	left:-480px;
414
-}
415
-
416
-.container_12 .pull_7 {
417
-	left:-560px;
418
-}
419
-
420
-.container_12 .pull_8 {
421
-	left:-640px;
422
-}
423
-
424
-.container_12 .pull_9 {
425
-	left:-720px;
426
-}
427
-
428
-.container_12 .pull_10 {
429
-	left:-800px;
430
-}
431
-
432
-.container_12 .pull_11 {
433
-	left:-880px;
434
-}
435
-
436
-
437
-
438
-
439
-/* Clear Floated Elements
440
-
441
-/* http://sonspring.com/journal/clearing-floats */
442
-
443
-.clear {
444
-	clear: both;
445
-	display: block;
446
-	overflow: hidden;
447
-	visibility: hidden;
448
-	width: 0;
449
-	height: 0;
450
-}
451
-
452
-/* http://perishablepress.com/press/2008/02/05/lessons-learned-concerning-the-clearfix-css-hack */
453
-
454
-.clearfix:after {
455
-	clear: both;
456
-	content: ' ';
457
-	display: block;
458
-	font-size: 0;
459
-	line-height: 0;
460
-	visibility: hidden;
461
-	width: 0;
462
-	height: 0;
463
-}
464
-
465
-.clearfix {
466
-	display: inline-block;
467
-}
468
-
469
-* html .clearfix {
470
-	height: 1%;
471
-}
472
-
473
-.clearfix {
474
-	display: block;
475
-}
476
-
477
-/*
478
- * jQuery UI CSS Framework 1.8.12
479
- *
480
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
481
- * Dual licensed under the MIT or GPL Version 2 licenses.
482
- * http://jquery.org/license
483
- *
484
- * http://docs.jquery.com/UI/Theming/API
485
- */
486
-
487
-/* Layout helpers
488
-.ui-helper-hidden { display: none; }
489
-.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
490
-.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
491
-.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
492
-.ui-helper-clearfix { display: inline-block; }
493
-/* required comment for clearfix to work in Opera \*/
494
-* html .ui-helper-clearfix { height:1%; }
495
-.ui-helper-clearfix { display:block; }
496
-/* end clearfix */
497
-.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
498
-
499
-
500
-/* Interaction Cues
501
-.ui-state-disabled { cursor: default !important; }
502
-
503
-
504
-/* Icons
505
-
506
-/* states and images */
507
-.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
508
-
509
-
510
-/* Misc visuals
511
-
512
-/* Overlays */
513
-.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
514
-/*
515
- * jQuery UI Accordion 1.8.12
516
- *
517
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
518
- * Dual licensed under the MIT or GPL Version 2 licenses.
519
- * http://jquery.org/license
520
- *
521
- * http://docs.jquery.com/UI/Accordion#theming
522
- */
523
-/* IE/Win - Fix animation bug - #4615 */
524
-.ui-accordion { width: 100%; }
525
-.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
526
-.ui-accordion .ui-accordion-li-fix { display: inline; }
527
-.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
528
-.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
529
-.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
530
-.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
531
-.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
532
-.ui-accordion .ui-accordion-content-active { display: block; }
533
-/*
534
- * jQuery UI Autocomplete 1.8.12
535
- *
536
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
537
- * Dual licensed under the MIT or GPL Version 2 licenses.
538
- * http://jquery.org/license
539
- *
540
- * http://docs.jquery.com/UI/Autocomplete#theming
541
- */
542
-.ui-autocomplete { position: absolute; cursor: default; }	
543
-
544
-/* workarounds */
545
-* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
546
-
547
-/*
548
- * jQuery UI Menu 1.8.12
549
- *
550
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
551
- * Dual licensed under the MIT or GPL Version 2 licenses.
552
- * http://jquery.org/license
553
- *
554
- * http://docs.jquery.com/UI/Menu#theming
555
- */
556
-.ui-menu {
557
-	list-style:none;
558
-	padding: 2px;
559
-	margin: 0;
560
-	display:block;
561
-	float: left;
562
-}
563
-.ui-menu .ui-menu {
564
-	margin-top: -3px;
565
-}
566
-.ui-menu .ui-menu-item {
567
-	margin:0;
568
-	padding: 0;
569
-	zoom: 1;
570
-	float: left;
571
-	clear: left;
572
-	width: 100%;
573
-}
574
-.ui-menu .ui-menu-item a {
575
-	text-decoration:none;
576
-	display:block;
577
-	padding:.2em .4em;
578
-	line-height:1.5;
579
-	zoom:1;
580
-}
581
-.ui-menu .ui-menu-item a.ui-state-hover,
582
-.ui-menu .ui-menu-item a.ui-state-active {
583
-	font-weight: normal;
584
-	margin: -1px;
585
-}
586
-/*
587
- * jQuery UI Button 1.8.12
588
- *
589
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
590
- * Dual licensed under the MIT or GPL Version 2 licenses.
591
- * http://jquery.org/license
592
- *
593
- * http://docs.jquery.com/UI/Button#theming
594
- */
595
-.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
596
-.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
597
-button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
598
-.ui-button-icons-only { width: 3.4em; } 
599
-button.ui-button-icons-only { width: 3.7em; } 
600
-
601
-/*button text element */
602
-.ui-button .ui-button-text { display: block; line-height: 1.4;  }
603
-.ui-button-text-only .ui-button-text { padding: .4em 1em; }
604
-.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
605
-.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
606
-.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
607
-.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
608
-/* no icon support for input elements, provide padding by default */
609
-input.ui-button { padding: .4em 1em; }
610
-
611
-/*button icon element(s) */
612
-.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
613
-.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
614
-.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
615
-.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
616
-.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
617
-
618
-/*button sets*/
619
-.ui-buttonset { margin-right: 7px; }
620
-.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
621
-
622
-/* workarounds */
623
-button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
624
-/*
625
- * jQuery UI Datepicker 1.8.12
626
- *
627
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
628
- * Dual licensed under the MIT or GPL Version 2 licenses.
629
- * http://jquery.org/license
630
- *
631
- * http://docs.jquery.com/UI/Datepicker#theming
632
- */
633
-.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
634
-.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
635
-.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
636
-.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
637
-.ui-datepicker .ui-datepicker-prev { left:2px; }
638
-.ui-datepicker .ui-datepicker-next { right:2px; }
639
-.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
640
-.ui-datepicker .ui-datepicker-next-hover { right:1px; }
641
-.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px;  }
642
-.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
643
-.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
644
-.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
645
-.ui-datepicker select.ui-datepicker-month, 
646
-.ui-datepicker select.ui-datepicker-year { width: 49%;}
647
-.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
648
-.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0;  }
649
-.ui-datepicker td { border: 0; padding: 1px; }
650
-.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
651
-.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
652
-.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
653
-.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
654
-
655
-/* with multiple calendars */
656
-.ui-datepicker.ui-datepicker-multi { width:auto; }
657
-.ui-datepicker-multi .ui-datepicker-group { float:left; }
658
-.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
659
-.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
660
-.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
661
-.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
662
-.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
663
-.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
664
-.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
665
-.ui-datepicker-row-break { clear:both; width:100%; }
666
-
667
-/* RTL support */
668
-.ui-datepicker-rtl { direction: rtl; }
669
-.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
670
-.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
671
-.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
672
-.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
673
-.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
674
-.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
675
-.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
676
-.ui-datepicker-rtl .ui-datepicker-group { float:right; }
677
-.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
678
-.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
679
-
680
-/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
681
-.ui-datepicker-cover {
682
-    display: none; /*sorry for IE5*/
683
-    display/**/: block; /*sorry for IE5*/
684
-    position: absolute; /*must have*/
685
-    z-index: -1; /*must have*/
686
-    filter: mask(); /*must have*/
687
-    top: -4px; /*must have*/
688
-    left: -4px; /*must have*/
689
-    width: 200px; /*must have*/
690
-    height: 200px; /*must have*/
691
-}/*
692
- * jQuery UI Dialog 1.8.12
693
- *
694
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
695
- * Dual licensed under the MIT or GPL Version 2 licenses.
696
- * http://jquery.org/license
697
- *
698
- * http://docs.jquery.com/UI/Dialog#theming
699
- */
700
-.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
701
-.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative;  }
702
-.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; } 
703
-.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
704
-.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
705
-.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
706
-.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
707
-.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
708
-.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
709
-.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
710
-.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
711
-.ui-draggable .ui-dialog-titlebar { cursor: move; }
712
-/*
713
- * jQuery UI Progressbar 1.8.12
714
- *
715
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
716
- * Dual licensed under the MIT or GPL Version 2 licenses.
717
- * http://jquery.org/license
718
- *
719
- * http://docs.jquery.com/UI/Progressbar#theming
720
- */
721
-.ui-progressbar { height:2em; text-align: left; }
722
-.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }/*
723
- * jQuery UI Resizable 1.8.12
724
- *
725
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
726
- * Dual licensed under the MIT or GPL Version 2 licenses.
727
- * http://jquery.org/license
728
- *
729
- * http://docs.jquery.com/UI/Resizable#theming
730
- */
731
-.ui-resizable { position: relative;}
732
-.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;
733
-	/* http://bugs.jqueryui.com/ticket/7233
734
-	 - Resizable: resizable handles fail to work in IE if transparent and content overlaps
735
-	*/
736
-	background-image:url(data:);
737
-}
738
-.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
739
-.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
740
-.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
741
-.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
742
-.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
743
-.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
744
-.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
745
-.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
746
-.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/*
747
- * jQuery UI Selectable 1.8.12
748
- *
749
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
750
- * Dual licensed under the MIT or GPL Version 2 licenses.
751
- * http://jquery.org/license
752
- *
753
- * http://docs.jquery.com/UI/Selectable#theming
754
- */
755
-.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
756
-/*
757
- * jQuery UI Slider 1.8.12
758
- *
759
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
760
- * Dual licensed under the MIT or GPL Version 2 licenses.
761
- * http://jquery.org/license
762
- *
763
- * http://docs.jquery.com/UI/Slider#theming
764
- */
765
-.ui-slider { position: relative; text-align: left; }
766
-.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
767
-.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
768
-
769
-.ui-slider-horizontal { height: .8em; }
770
-.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
771
-.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
772
-.ui-slider-horizontal .ui-slider-range-min { left: 0; }
773
-.ui-slider-horizontal .ui-slider-range-max { right: 0; }
774
-
775
-.ui-slider-vertical { width: .8em; height: 100px; }
776
-.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
777
-.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
778
-.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
779
-.ui-slider-vertical .ui-slider-range-max { top: 0; }/*
780
- * jQuery UI Tabs 1.8.12
781
- *
782
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
783
- * Dual licensed under the MIT or GPL Version 2 licenses.
784
- * http://jquery.org/license
785
- *
786
- * http://docs.jquery.com/UI/Tabs#theming
787
- */
788
-.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
789
-.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
790
-.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
791
-.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
792
-.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
793
-.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
794
-.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
795
-.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
796
-.ui-tabs .ui-tabs-hide { display: none !important; }
797
-/*
798
- * jQuery UI CSS Framework 1.8.12
799
- *
800
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
801
- * Dual licensed under the MIT or GPL Version 2 licenses.
802
- * http://jquery.org/license
803
- *
804
- * http://docs.jquery.com/UI/Theming/API
805
- *
806
- * To view and modify this theme, visit http://jqueryui.com/themeroller/
807
- */
808
-
809
-
810
-/* Component containers
811
-.ui-widget { font-family: Verdana,Arial,sans-serif/*{ffDefault}*/; font-size: 1.1em/*{fsDefault}*/; }
812
-.ui-widget .ui-widget { font-size: 1em; }
813
-.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Verdana,Arial,sans-serif/*{ffDefault}*/; font-size: 1em; }
814
-.ui-widget-content { border: 1px solid #aaaaaa/*{borderColorContent}*/; background: #ffffff/*{bgColorContent}*/ url(images/ui-bg_flat_75_ffffff_40x100.png)/*{bgImgUrlContent}*/ 50%/*{bgContentXPos}*/ 50%/*{bgContentYPos}*/ repeat-x/*{bgContentRepeat}*/; color: #222222/*{fcContent}*/; }
815
-.ui-widget-content a { color: #222222/*{fcContent}*/; }
816
-.ui-widget-header { border: 1px solid #aaaaaa/*{borderColorHeader}*/; background: #cccccc/*{bgColorHeader}*/ url(images/ui-bg_highlight-soft_75_cccccc_1x100.png)/*{bgImgUrlHeader}*/ 50%/*{bgHeaderXPos}*/ 50%/*{bgHeaderYPos}*/ repeat-x/*{bgHeaderRepeat}*/; color: #222222/*{fcHeader}*/; font-weight: bold; }
817
-.ui-widget-header a { color: #222222/*{fcHeader}*/; }
818
-
819
-/* Interaction states
820
-.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #d3d3d3/*{borderColorDefault}*/; background: #e6e6e6/*{bgColorDefault}*/ url(images/ui-bg_glass_75_e6e6e6_1x400.png)/*{bgImgUrlDefault}*/ 50%/*{bgDefaultXPos}*/ 50%/*{bgDefaultYPos}*/ repeat-x/*{bgDefaultRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #555555/*{fcDefault}*/; }
821
-.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555/*{fcDefault}*/; text-decoration: none; }
822
-.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #999999/*{borderColorHover}*/; background: #dadada/*{bgColorHover}*/ url(images/ui-bg_glass_75_dadada_1x400.png)/*{bgImgUrlHover}*/ 50%/*{bgHoverXPos}*/ 50%/*{bgHoverYPos}*/ repeat-x/*{bgHoverRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #212121/*{fcHover}*/; }
823
-.ui-state-hover a, .ui-state-hover a:hover { color: #212121/*{fcHover}*/; text-decoration: none; }
824
-.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #aaaaaa/*{borderColorActive}*/; background: #ffffff/*{bgColorActive}*/ url(images/ui-bg_glass_65_ffffff_1x400.png)/*{bgImgUrlActive}*/ 50%/*{bgActiveXPos}*/ 50%/*{bgActiveYPos}*/ repeat-x/*{bgActiveRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #212121/*{fcActive}*/; }
825
-.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121/*{fcActive}*/; text-decoration: none; }
826
-.ui-widget :active { outline: none; }
827
-
828
-/* Interaction Cues
829
-.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight  {border: 1px solid #fcefa1/*{borderColorHighlight}*/; background: #fbf9ee/*{bgColorHighlight}*/ url(images/ui-bg_glass_55_fbf9ee_1x400.png)/*{bgImgUrlHighlight}*/ 50%/*{bgHighlightXPos}*/ 50%/*{bgHighlightYPos}*/ repeat-x/*{bgHighlightRepeat}*/; color: #363636/*{fcHighlight}*/; }
830
-.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636/*{fcHighlight}*/; }
831
-.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a/*{borderColorError}*/; background: #fef1ec/*{bgColorError}*/ url(images/ui-bg_glass_95_fef1ec_1x400.png)/*{bgImgUrlError}*/ 50%/*{bgErrorXPos}*/ 50%/*{bgErrorYPos}*/ repeat-x/*{bgErrorRepeat}*/; color: #cd0a0a/*{fcError}*/; }
832
-.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #cd0a0a/*{fcError}*/; }
833
-.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cd0a0a/*{fcError}*/; }
834
-.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
835
-.ui-priority-secondary, .ui-widget-content .ui-priority-secondary,  .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
836
-.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
837
-
838
-/* Icons
839
-
840
-/* states and images */
841
-.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png)/*{iconsContent}*/; }
842
-.ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png)/*{iconsContent}*/; }
843
-.ui-widget-header .ui-icon {background-image: url(images/ui-icons_222222_256x240.png)/*{iconsHeader}*/; }
844
-.ui-state-default .ui-icon { background-image: url(images/ui-icons_888888_256x240.png)/*{iconsDefault}*/; }
845
-.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_454545_256x240.png)/*{iconsHover}*/; }
846
-.ui-state-active .ui-icon {background-image: url(images/ui-icons_454545_256x240.png)/*{iconsActive}*/; }
847
-.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_2e83ff_256x240.png)/*{iconsHighlight}*/; }
848
-.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_cd0a0a_256x240.png)/*{iconsError}*/; }
849
-
850
-/* positioning */
851
-.ui-icon-carat-1-n { background-position: 0 0; }
852
-.ui-icon-carat-1-ne { background-position: -16px 0; }
853
-.ui-icon-carat-1-e { background-position: -32px 0; }
854
-.ui-icon-carat-1-se { background-position: -48px 0; }
855
-.ui-icon-carat-1-s { background-position: -64px 0; }
856
-.ui-icon-carat-1-sw { background-position: -80px 0; }
857
-.ui-icon-carat-1-w { background-position: -96px 0; }
858
-.ui-icon-carat-1-nw { background-position: -112px 0; }
859
-.ui-icon-carat-2-n-s { background-position: -128px 0; }
860
-.ui-icon-carat-2-e-w { background-position: -144px 0; }
861
-.ui-icon-triangle-1-n { background-position: 0 -16px; }
862
-.ui-icon-triangle-1-ne { background-position: -16px -16px; }
863
-.ui-icon-triangle-1-e { background-position: -32px -16px; }
864
-.ui-icon-triangle-1-se { background-position: -48px -16px; }
865
-.ui-icon-triangle-1-s { background-position: -64px -16px; }
866
-.ui-icon-triangle-1-sw { background-position: -80px -16px; }
867
-.ui-icon-triangle-1-w { background-position: -96px -16px; }
868
-.ui-icon-triangle-1-nw { background-position: -112px -16px; }
869
-.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
870
-.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
871
-.ui-icon-arrow-1-n { background-position: 0 -32px; }
872
-.ui-icon-arrow-1-ne { background-position: -16px -32px; }
873
-.ui-icon-arrow-1-e { background-position: -32px -32px; }
874
-.ui-icon-arrow-1-se { background-position: -48px -32px; }
875
-.ui-icon-arrow-1-s { background-position: -64px -32px; }
876
-.ui-icon-arrow-1-sw { background-position: -80px -32px; }
877
-.ui-icon-arrow-1-w { background-position: -96px -32px; }
878
-.ui-icon-arrow-1-nw { background-position: -112px -32px; }
879
-.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
880
-.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
881
-.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
882
-.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
883
-.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
884
-.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
885
-.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
886
-.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
887
-.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
888
-.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
889
-.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
890
-.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
891
-.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
892
-.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
893
-.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
894
-.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
895
-.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
896
-.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
897
-.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
898
-.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
899
-.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
900
-.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
901
-.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
902
-.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
903
-.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
904
-.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
905
-.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
906
-.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
907
-.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
908
-.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
909
-.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
910
-.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
911
-.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
912
-.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
913
-.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
914
-.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
915
-.ui-icon-arrow-4 { background-position: 0 -80px; }
916
-.ui-icon-arrow-4-diag { background-position: -16px -80px; }
917
-.ui-icon-extlink { background-position: -32px -80px; }
918
-.ui-icon-newwin { background-position: -48px -80px; }
919
-.ui-icon-refresh { background-position: -64px -80px; }
920
-.ui-icon-shuffle { background-position: -80px -80px; }
921
-.ui-icon-transfer-e-w { background-position: -96px -80px; }
922
-.ui-icon-transferthick-e-w { background-position: -112px -80px; }
923
-.ui-icon-folder-collapsed { background-position: 0 -96px; }
924
-.ui-icon-folder-open { background-position: -16px -96px; }
925
-.ui-icon-document { background-position: -32px -96px; }
926
-.ui-icon-document-b { background-position: -48px -96px; }
927
-.ui-icon-note { background-position: -64px -96px; }
928
-.ui-icon-mail-closed { background-position: -80px -96px; }
929
-.ui-icon-mail-open { background-position: -96px -96px; }
930
-.ui-icon-suitcase { background-position: -112px -96px; }
931
-.ui-icon-comment { background-position: -128px -96px; }
932
-.ui-icon-person { background-position: -144px -96px; }
933
-.ui-icon-print { background-position: -160px -96px; }
934
-.ui-icon-trash { background-position: -176px -96px; }
935
-.ui-icon-locked { background-position: -192px -96px; }
936
-.ui-icon-unlocked { background-position: -208px -96px; }
937
-.ui-icon-bookmark { background-position: -224px -96px; }
938
-.ui-icon-tag { background-position: -240px -96px; }
939
-.ui-icon-home { background-position: 0 -112px; }
940
-.ui-icon-flag { background-position: -16px -112px; }
941
-.ui-icon-calendar { background-position: -32px -112px; }
942
-.ui-icon-cart { background-position: -48px -112px; }
943
-.ui-icon-pencil { background-position: -64px -112px; }
944
-.ui-icon-clock { background-position: -80px -112px; }
945
-.ui-icon-disk { background-position: -96px -112px; }
946
-.ui-icon-calculator { background-position: -112px -112px; }
947
-.ui-icon-zoomin { background-position: -128px -112px; }
948
-.ui-icon-zoomout { background-position: -144px -112px; }
949
-.ui-icon-search { background-position: -160px -112px; }
950
-.ui-icon-wrench { background-position: -176px -112px; }
951
-.ui-icon-gear { background-position: -192px -112px; }
952
-.ui-icon-heart { background-position: -208px -112px; }
953
-.ui-icon-star { background-position: -224px -112px; }
954
-.ui-icon-link { background-position: -240px -112px; }
955
-.ui-icon-cancel { background-position: 0 -128px; }
956
-.ui-icon-plus { background-position: -16px -128px; }
957
-.ui-icon-plusthick { background-position: -32px -128px; }
958
-.ui-icon-minus { background-position: -48px -128px; }
959
-.ui-icon-minusthick { background-position: -64px -128px; }
960
-.ui-icon-close { background-position: -80px -128px; }
961
-.ui-icon-closethick { background-position: -96px -128px; }
962
-.ui-icon-key { background-position: -112px -128px; }
963
-.ui-icon-lightbulb { background-position: -128px -128px; }
964
-.ui-icon-scissors { background-position: -144px -128px; }
965
-.ui-icon-clipboard { background-position: -160px -128px; }
966
-.ui-icon-copy { background-position: -176px -128px; }
967
-.ui-icon-contact { background-position: -192px -128px; }
968
-.ui-icon-image { background-position: -208px -128px; }
969
-.ui-icon-video { background-position: -224px -128px; }
970
-.ui-icon-script { background-position: -240px -128px; }
971
-.ui-icon-alert { background-position: 0 -144px; }
972
-.ui-icon-info { background-position: -16px -144px; }
973
-.ui-icon-notice { background-position: -32px -144px; }
974
-.ui-icon-help { background-position: -48px -144px; }
975
-.ui-icon-check { background-position: -64px -144px; }
976
-.ui-icon-bullet { background-position: -80px -144px; }
977
-.ui-icon-radio-off { background-position: -96px -144px; }
978
-.ui-icon-radio-on { background-position: -112px -144px; }
979
-.ui-icon-pin-w { background-position: -128px -144px; }
980
-.ui-icon-pin-s { background-position: -144px -144px; }
981
-.ui-icon-play { background-position: 0 -160px; }
982
-.ui-icon-pause { background-position: -16px -160px; }
983
-.ui-icon-seek-next { background-position: -32px -160px; }
984
-.ui-icon-seek-prev { background-position: -48px -160px; }
985
-.ui-icon-seek-end { background-position: -64px -160px; }
986
-.ui-icon-seek-start { background-position: -80px -160px; }
987
-/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
988
-.ui-icon-seek-first { background-position: -80px -160px; }
989
-.ui-icon-stop { background-position: -96px -160px; }
990
-.ui-icon-eject { background-position: -112px -160px; }
991
-.ui-icon-volume-off { background-position: -128px -160px; }
992
-.ui-icon-volume-on { background-position: -144px -160px; }
993
-.ui-icon-power { background-position: 0 -176px; }
994
-.ui-icon-signal-diag { background-position: -16px -176px; }
995
-.ui-icon-signal { background-position: -32px -176px; }
996
-.ui-icon-battery-0 { background-position: -48px -176px; }
997
-.ui-icon-battery-1 { background-position: -64px -176px; }
998
-.ui-icon-battery-2 { background-position: -80px -176px; }
999
-.ui-icon-battery-3 { background-position: -96px -176px; }
1000
-.ui-icon-circle-plus { background-position: 0 -192px; }
1001
-.ui-icon-circle-minus { background-position: -16px -192px; }
1002
-.ui-icon-circle-close { background-position: -32px -192px; }
1003
-.ui-icon-circle-triangle-e { background-position: -48px -192px; }
1004
-.ui-icon-circle-triangle-s { background-position: -64px -192px; }
1005
-.ui-icon-circle-triangle-w { background-position: -80px -192px; }
1006
-.ui-icon-circle-triangle-n { background-position: -96px -192px; }
1007
-.ui-icon-circle-arrow-e { background-position: -112px -192px; }
1008
-.ui-icon-circle-arrow-s { background-position: -128px -192px; }
1009
-.ui-icon-circle-arrow-w { background-position: -144px -192px; }
1010
-.ui-icon-circle-arrow-n { background-position: -160px -192px; }
1011
-.ui-icon-circle-zoomin { background-position: -176px -192px; }
1012
-.ui-icon-circle-zoomout { background-position: -192px -192px; }
1013
-.ui-icon-circle-check { background-position: -208px -192px; }
1014
-.ui-icon-circlesmall-plus { background-position: 0 -208px; }
1015
-.ui-icon-circlesmall-minus { background-position: -16px -208px; }
1016
-.ui-icon-circlesmall-close { background-position: -32px -208px; }
1017
-.ui-icon-squaresmall-plus { background-position: -48px -208px; }
1018
-.ui-icon-squaresmall-minus { background-position: -64px -208px; }
1019
-.ui-icon-squaresmall-close { background-position: -80px -208px; }
1020
-.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
1021
-.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
1022
-.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
1023
-.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
1024
-.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
1025
-.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
1026
-
1027
-
1028
-/* Misc visuals
1029
-
1030
-/* Corner radius */
1031
-.ui-corner-tl { -moz-border-radius-topleft: 4px/*{cornerRadius}*/; -webkit-border-top-left-radius: 4px/*{cornerRadius}*/; border-top-left-radius: 4px/*{cornerRadius}*/; }
1032
-.ui-corner-tr { -moz-border-radius-topright: 4px/*{cornerRadius}*/; -webkit-border-top-right-radius: 4px/*{cornerRadius}*/; border-top-right-radius: 4px/*{cornerRadius}*/; }
1033
-.ui-corner-bl { -moz-border-radius-bottomleft: 4px/*{cornerRadius}*/; -webkit-border-bottom-left-radius: 4px/*{cornerRadius}*/; border-bottom-left-radius: 4px/*{cornerRadius}*/; }
1034
-.ui-corner-br { -moz-border-radius-bottomright: 4px/*{cornerRadius}*/; -webkit-border-bottom-right-radius: 4px/*{cornerRadius}*/; border-bottom-right-radius: 4px/*{cornerRadius}*/; }
1035
-.ui-corner-top { -moz-border-radius-topleft: 4px/*{cornerRadius}*/; -webkit-border-top-left-radius: 4px/*{cornerRadius}*/; border-top-left-radius: 4px/*{cornerRadius}*/; -moz-border-radius-topright: 4px/*{cornerRadius}*/; -webkit-border-top-right-radius: 4px/*{cornerRadius}*/; border-top-right-radius: 4px/*{cornerRadius}*/; }
1036
-.ui-corner-bottom { -moz-border-radius-bottomleft: 4px/*{cornerRadius}*/; -webkit-border-bottom-left-radius: 4px/*{cornerRadius}*/; border-bottom-left-radius: 4px/*{cornerRadius}*/; -moz-border-radius-bottomright: 4px/*{cornerRadius}*/; -webkit-border-bottom-right-radius: 4px/*{cornerRadius}*/; border-bottom-right-radius: 4px/*{cornerRadius}*/; }
1037
-.ui-corner-right {  -moz-border-radius-topright: 4px/*{cornerRadius}*/; -webkit-border-top-right-radius: 4px/*{cornerRadius}*/; border-top-right-radius: 4px/*{cornerRadius}*/; -moz-border-radius-bottomright: 4px/*{cornerRadius}*/; -webkit-border-bottom-right-radius: 4px/*{cornerRadius}*/; border-bottom-right-radius: 4px/*{cornerRadius}*/; }
1038
-.ui-corner-left { -moz-border-radius-topleft: 4px/*{cornerRadius}*/; -webkit-border-top-left-radius: 4px/*{cornerRadius}*/; border-top-left-radius: 4px/*{cornerRadius}*/; -moz-border-radius-bottomleft: 4px/*{cornerRadius}*/; -webkit-border-bottom-left-radius: 4px/*{cornerRadius}*/; border-bottom-left-radius: 4px/*{cornerRadius}*/; }
1039
-.ui-corner-all { -moz-border-radius: 4px/*{cornerRadius}*/; -webkit-border-radius: 4px/*{cornerRadius}*/; border-radius: 4px/*{cornerRadius}*/; }
1040
-
1041
-/* Overlays */
1042
-.ui-widget-overlay { background: #aaaaaa/*{bgColorOverlay}*/ url(images/ui-bg_flat_0_aaaaaa_40x100.png)/*{bgImgUrlOverlay}*/ 50%/*{bgOverlayXPos}*/ 50%/*{bgOverlayYPos}*/ repeat-x/*{bgOverlayRepeat}*/; opacity: .3;filter:Alpha(Opacity=30)/*{opacityOverlay}*/; }
1043
-.ui-widget-shadow { margin: -8px/*{offsetTopShadow}*/ 0 0 -8px/*{offsetLeftShadow}*/; padding: 8px/*{thicknessShadow}*/; background: #aaaaaa/*{bgColorShadow}*/ url(images/ui-bg_flat_0_aaaaaa_40x100.png)/*{bgImgUrlShadow}*/ 50%/*{bgShadowXPos}*/ 50%/*{bgShadowYPos}*/ repeat-x/*{bgShadowRepeat}*/; opacity: .3;filter:Alpha(Opacity=30)/*{opacityShadow}*/; -moz-border-radius: 8px/*{cornerRadiusShadow}*/; -webkit-border-radius: 8px/*{cornerRadiusShadow}*/; border-radius: 8px/*{cornerRadiusShadow}*/; }
1044
-
1045
-/*** from index.html ***/
1046
-body {
1047
-line-height: 1.429em;
1048
-background-color: #fff;
1049
-background-image: url('/_static/img/bodybg.png');
1050
-background-repeat: repeat-x;
1051
-
1052
-color: #515151;
1053
-font-size: 14px;
1054
-}
1055
-
1056
-a {
1057
-  color: #285a9e;
1058
-}
1059
-
1060
-header {
1061
-/* background-color: #B7D2D6; */
1062
-/* background-image: url('static/img/docs-headbg.png'); */
1063
-background-repeat: repeat-x;
1064
-width:100%;
1065
-min-width: 960px;
1066
-height: 116px;
1067
-float:left;
1068
-position: relative;
1069
-color: white;
1070
-padding-bottom: 0;
1071
-margin-bottom: -5px;
1072
-
1073
-/*box-shadow: 0px 1px 1px #ccc;
1074
--webkit-box-shadow: 0px 1px 1px #ccc;
1075
--moz-box-shadow: 0px 1px 1px #ccc;*/
1076
-}
1077
-
1078
-
1079
-nav > ul {
1080
-  list-style-type: none;
1081
-  /* background-image: url(static/img/docs-leftbar-bg.png); */
1082
-}
1083
-
1084
-nav > ul > li {
1085
-  color: #4f4f4f;
1086
-  font-size: 14px;
1087
-  margin-left: 0;
1088
-  background-image: url('/_static/img/new-nav-section.png');
1089
-  background-repeat: repeat-x;
1090
-  background-position: 0 1px;
1091
-}
1092
-
1093
-nav > ul > li > a {
1094
-  text-decoration: none;
1095
-  display: block;
1096
-  color: #424242;
1097
-  
1098
-  border: 1px solid #d9d9d9;
1099
-  border-radius: 5px;
1100
-  padding-left: 37px;
1101
-  
1102
-  height: 27px;
1103
-  font-family: 'Helvetica Neue',Arial,'Liberation Sans',FreeSans,sans-serif;
1104
-  font-size: 18px;
1105
-  font-weight: 300;
1106
-  padding-top: 6px;
1107
-  margin-bottom: 8px;
1108
-  
1109
-  background-image: url('/_static/img/new-nav-disc-closed.png');
1110
-  background-position: 15px 7px;
1111
-  background-repeat: no-repeat;
1112
-}
1113
-
1114
-nav > ul > li.current > a {
1115
-  border: 1px solid #cfcfcf;
1116
-  border-bottom-right-radius: 0px;
1117
-  border-bottom-left-radius: 0px;
1118
-  margin-bottom: 0;
1119
-  
1120
-  background-image: url('/_static/img/new-nav-disc-open.png');
1121
-  background-position: 11px 12px;
1122
-}
1123
-
1124
-nav > ul > li.current {
1125
-
1126
-}
1127
-
1128
-nav > ul > li > ul {
1129
-  display: none;
1130
-}
1131
-
1132
-nav > ul > li.current > ul {
1133
-  display: block;
1134
-  background-color: #f7f7f7;
1135
-  border: 1px solid #e6e6e6;
1136
-  border-top: none;
1137
-  padding-top: 5px;
1138
-  padding-bottom: 6px;
1139
-  margin-bottom: 8px;
1140
-}
1141
-
1142
-
1143
-nav > ul > li.current > ul > li {
1144
-  margin-left: 37px;
1145
-}
1146
-
1147
-nav > ul > li > ul > li > a {
1148
-  color: #525252;
1149
-  text-decoration: none;
1150
-}
1151
-
1152
-nav > ul > li > ul > li.current > a {
1153
-  font-weight: bold;
1154
-}
1155
-
1156
-nav > ul > li > ul > li > ul {
1157
-  margin-left: -15px;
1158
-  margin-bottom: 0;
1159
-}
1160
-
1161
-nav > ul > li > ul > li > ul > li {
1162
-  display: none;
1163
-}
1164
-
1165
-nav > ul > li > ul > li.current > ul > li {
1166
-  display: block;
1167
-  font-size: 12px;
1168
-  line-height: 16px;
1169
-}
1170
-
1171
-nav > ul > li > ul > li > ul > li > a {
1172
-  color: #949494;
1173
-  text-decoration: none;
1174
-  white-space: nowrap;
1175
-  overflow: hidden;
1176
-  text-overflow: ellipsis;
1177
-  display: block;
1178
-  width: 150px;    
1179
-}
1180
-
1181
-/* hide the children of the last top-level nav entry (that should be FAQ) */
1182
-
1183
-nav > ul > li:last-child > ul {
1184
-  display: none;
1185
-}
1186
-
1187
-/* also hide the arrow and make all borders round */
1188
-
1189
-nav > ul > li:last-child > a {
1190
-  background-image: none;
1191
-  border-radius: 5px;
1192
-}
1193
-
1194
-.multi_lang {
1195
-
1196
-}
1197
-
1198
-div.tabswitcher > div {
1199
-  padding: 25px;
1200
-}
1201
-
1202
-h1#logo { 
1203
-  margin-top: 27px;
1204
-}
1205
-
1206
-#main h1 {
1207
-  color: #285a9e;
1208
-  font-family: 'Helvetica Neue';
1209
-  font-size: 30px;
1210
-  font-weight: 300;
1211
-  margin-top: 15px;
1212
-  line-height: 1em;
1213
-}
1214
-
1215
-h2 {
1216
-  font-size: 20px;
1217
-  color: #2d2d2d;
1218
-  font-weight: bold;
1219
-  margin-bottom: 5px;
1220
-}
1221
-
1222
-h3 {
1223
-  font-size: 16px;
1224
-  color: #2d2d2d;
1225
-  font-weight: bold;
1226
-  margin-bottom: 5px;
1227
-}
1228
-
1229
-a.headerlink {
1230
-  display: none !important;
1231
-}
1232
-
1233
-p.next {
1234
-  font-size: 18px;
1235
-  margin-left: auto;
1236
-  width: 35%;
1237
-}
1238
-
1239
-p.next > a {
1240
-  color: #285a9e;
1241
-}
1242
-
1243
-p.next:before {
1244
-  content: 'Next: ';
1245
-}
1246
-
1247
-pre {
1248
-  padding: 0.8em;
1249
-  background-color: #111;
1250
-  font-size: 13px;
1251
-  color: #eee;
1252
-  overflow: auto;
1253
-  /*
1254
-   * Monaco is broken with the unicode diagram, as well as everything under
1255
-   * Windows.
1256
-   */
1257
-  font-family: Menlo, "DejaVu Sans Mono", "Courier New", Monospace;
1258
-  line-height: 1.2;
1259
-}
1260
-
1261
-pre.term span {
1262
-  color: #dfedff;
1263
-}
1264
-
1265
-div.tabswitcher {
1266
-  padding: 0px;
1267
-  background: none;
1268
-  border-width: 0px;
1269
-}
1270
-div.tabswitcher .ui-tabs-nav {
1271
-  padding-left: 0px;
1272
-  background: transparent;
1273
-  border-width: 0px 0px 1px 0px;
1274
-  border-radius: 0px;
1275
-  -moz-border-radius: 0px;
1276
-  -webkit-border-radius: 0px;
1277
-}
1278
-div.tabswitcher .ui-tabs-nav li {
1279
-  background: #e8e8e8 !important;
1280
-  font-size: 12px;
1281
-  font-family: Helvetica;
1282
-}
1283
-div.tabswitcher .ui-tabs-nav li.ui-state-active {
1284
-  background: #fff !important;
1285
-}
1286
-div.tabswitcher div.ui-widget-content {
1287
-  background-color: white;
1288
-  font-size: 12px;
1289
-  font-family: Helvetica;
1290
-  padding: 1px 12px 0 12px;
1291
-}
1292
-
1293
-div.tabswitcher .ui-tabs-panel {
1294
-  /* background: url(images/ui-bg_highlight-hard_100_f5f3e5_1x100.png) repeat-x scroll 50% top #f5f3e5; */
1295
-  border-width: 0px 1px 1px 1px;
1296
-}
1297
-
1298
-div.tabswitcher p {
1299
-  margin: 10px 0 10px 0;
1300
-}
1301
-
1302
-div.tabswitcher pre {
1303
-  margin: 10px 0 10px 0;
1304
-}
1305
-
1306
-div.tabswitcher .tab > .first {
1307
-  display: none;
1308
-}
1309
-
1310
-div.figure {
1311
-  background-color: #fff; 
1312
-  padding: 10px 20px 10px 20px; 
1313
-  border: 1px solid #dedede; 
1314
-  margin-bottom: 24px; 
1315
-  font-size: 12px;
1316
-}
1317
-
1318
-/* Styles from the Haiku theme */
1319
-
1320
-/* Common declarations */
1321
-div.admonition {
1322
-    /* Rounded corner boxes */
1323
-    /*
1324
-    -webkit-border-radius: 10px;
1325
-    -khtml-border-radius: 10px;
1326
-    -moz-border-radius: 10px;
1327
-    border-radius: 10px;
1328
-    */
1329
-    border-style: dotted;
1330
-    border-width: thin;
1331
-    border-color: #dcdcdc;
1332
-    padding: 10px 15px 10px 15px;
1333
-    margin-bottom: 15px;
1334
-    margin-top: 15px;
1335
-}
1336
-div.note {
1337
-    padding: 10px 15px 10px 60px;
1338
-    background: #e4ffde url(../img/alert_info_32.png) 15px 15px no-repeat;
1339
-    min-height: 42px;
1340
-}
1341
-div.warning {
1342
-    padding: 10px 15px 10px 60px;
1343
-    background: #fffbc6 url(../img/alert_warning_32.png) 15px 15px no-repeat;
1344
-    min-height: 42px;
1345
-}
1346
-div.seealso {
1347
-    background: #e4ffde;
1348
-}
1349
-
1350
-div.topic {
1351
-    background-color:#FFFFEF;
1352
-    padding-left:10px;
1353
-    border:1px solid #EFE795;
1354
-}
1355
-
1356
-div.admonition .admonition-title {
1357
-    margin-bottom:0;
1358
-}
1359
-
1360
-div.admonition p {
1361
-    margin-top:0;
1362
-    margin-bottom:0;
1363
-}
1364
-
1365
-/* Styles from the Haiku theme (end) */
1366
-.literal {
1367
-    border: 1px solid #ddd;
1368
-    background-color: #efefef;
1369
-}
1370
-
1371
-.note .literal {
1372
-    border: 1px solid #ddd;
1373
-    background-color: rgba(255,255,255, .4);
1374
-}
1375
-
1376
-.warning .literal {
1377
-    background-color: rgba(255,255,255, .4);
1378
-    border: 1px solid #ddd;
1379
-}
1380 1
\ No newline at end of file
1381 2
deleted file mode 100755
1382 3
Binary files a/docs/theme/docker/static/img/alert_info_32.png and /dev/null differ
1383 4
deleted file mode 100755
1384 5
Binary files a/docs/theme/docker/static/img/alert_warning_32.png and /dev/null differ
1385 6
deleted file mode 100755
1386 7
Binary files a/docs/theme/docker/static/img/bodybg.png and /dev/null differ
1387 8
deleted file mode 100644
1388 9
Binary files a/docs/theme/docker/static/img/crane-logo.png and /dev/null differ
1389 10
deleted file mode 100644
1390 11
Binary files a/docs/theme/docker/static/img/crane-logo_small_80px.gif and /dev/null differ
1391 12
deleted file mode 100755
1392 13
Binary files a/docs/theme/docker/static/img/docs-disc-closed.png and /dev/null differ
1393 14
deleted file mode 100755
1394 15
Binary files a/docs/theme/docker/static/img/docs-disc-open.png and /dev/null differ
1395 16
deleted file mode 100755
1396 17
Binary files a/docs/theme/docker/static/img/docs-dotcloud-logo.png and /dev/null differ
1397 18
deleted file mode 100755
1398 19
Binary files a/docs/theme/docker/static/img/docs-headbg.png and /dev/null differ
1399 20
deleted file mode 100755
1400 21
Binary files a/docs/theme/docker/static/img/docs-leftbar-bg-selected.png and /dev/null differ
1401 22
deleted file mode 100755
1402 23
Binary files a/docs/theme/docker/static/img/docs-leftbar-bg.png and /dev/null differ
1403 24
deleted file mode 100755
1404 25
Binary files a/docs/theme/docker/static/img/docs-mediawiki-ex.png and /dev/null differ
1405 26
deleted file mode 100755
1406 27
Binary files a/docs/theme/docker/static/img/docs-splash-top-1.png and /dev/null differ
1407 28
deleted file mode 100755
1408 29
Binary files a/docs/theme/docker/static/img/docs-splash-top-2.png and /dev/null differ
1409 30
deleted file mode 100755
1410 31
Binary files a/docs/theme/docker/static/img/docs-splash-top-3.png and /dev/null differ
1411 32
deleted file mode 100755
1412 33
Binary files a/docs/theme/docker/static/img/docs-splash-top-horizbar.png and /dev/null differ
1413 34
deleted file mode 100755
1414 35
Binary files a/docs/theme/docker/static/img/new-nav-disc-closed.png and /dev/null differ
1415 36
deleted file mode 100755
1416 37
Binary files a/docs/theme/docker/static/img/new-nav-disc-open.png and /dev/null differ
1417 38
deleted file mode 100755
1418 39
Binary files a/docs/theme/docker/static/img/new-nav-section.png and /dev/null differ
1419 40
deleted file mode 100755
1420 41
Binary files a/docs/theme/docker/static/img/padlock.png and /dev/null differ
1421 42
deleted file mode 100644
1422 43
Binary files a/docs/theme/docker/static/img/twitter.png and /dev/null differ
... ...
@@ -6,6 +6,7 @@ import (
6 6
 	"os"
7 7
 	"path"
8 8
 	"path/filepath"
9
+	"strings"
9 10
 	"time"
10 11
 )
11 12
 
... ...
@@ -27,6 +28,12 @@ func NewGraph(root string) (*Graph, error) {
27 27
 	}, nil
28 28
 }
29 29
 
30
+// FIXME: Implement error subclass instead of looking at the error text
31
+// Note: This is the way golang implements os.IsNotExists on Plan9
32
+func (graph *Graph) IsNotExist(err error) bool {
33
+	return err != nil && strings.Contains(err.Error(), "does not exist")
34
+}
35
+
30 36
 func (graph *Graph) Exists(id string) bool {
31 37
 	if _, err := graph.Get(id); err != nil {
32 38
 		return false
... ...
@@ -1,13 +1,12 @@
1 1
 package docker
2 2
 
3 3
 import (
4
-	"bytes"
5
-	"crypto/sha256"
4
+	"crypto/rand"
5
+	"encoding/hex"
6 6
 	"encoding/json"
7 7
 	"fmt"
8 8
 	"io"
9 9
 	"io/ioutil"
10
-	"math/rand"
11 10
 	"os"
12 11
 	"path"
13 12
 	"strings"
... ...
@@ -162,20 +161,12 @@ func ValidateId(id string) error {
162 162
 }
163 163
 
164 164
 func GenerateId() string {
165
-	// FIXME: don't seed every time
166
-	rand.Seed(time.Now().UTC().UnixNano())
167
-	randomBytes := bytes.NewBuffer([]byte(fmt.Sprintf("%x", rand.Int())))
168
-	id, _ := ComputeId(randomBytes) // can't fail
169
-	return id
170
-}
171
-
172
-// ComputeId reads from `content` until EOF, then returns a SHA of what it read, as a string.
173
-func ComputeId(content io.Reader) (string, error) {
174
-	h := sha256.New()
175
-	if _, err := io.Copy(h, content); err != nil {
176
-		return "", err
165
+	id := make([]byte, 32)
166
+	_, err := io.ReadFull(rand.Reader, id)
167
+	if err != nil {
168
+		panic(err) // This shouldn't happen
177 169
 	}
178
-	return fmt.Sprintf("%x", h.Sum(nil)), nil
170
+	return hex.EncodeToString(id)
179 171
 }
180 172
 
181 173
 // Image includes convenience proxy functions to its graph
... ...
@@ -51,7 +51,11 @@ class ec2 {
51 51
 	}
52 52
 }
53 53
 
54
+class rax {
55
+}
56
+
54 57
 class docker {
58
+
55 59
     # update this with latest docker binary distro
56 60
     $docker_url = "http://get.docker.io/builds/$kernel/$hardwaremodel/docker-master.tgz"
57 61
     # update this with latest go binary distry
... ...
@@ -67,15 +71,27 @@ class docker {
67 67
 
68 68
     notify { "docker_url = $docker_url": withpath => true }
69 69
 
70
-	$ec2_version = file("/etc/ec2_version", "/dev/null")
71
-	if ($ec2_version) {
70
+    $ec2_version = file("/etc/ec2_version", "/dev/null")
71
+    $rax_version = inline_template("<%= %x{/usr/bin/xenstore-read vm-data/provider_data/provider} %>")
72
+
73
+    if ($ec2_version) {
72 74
 		$vagrant_user = "ubuntu"
73 75
 		include ec2
74
-	} else {
76
+    } elsif ($rax_version) {
75 77
 		$vagrant_user = "vagrant"
76
-		# virtualbox is the vagrant default, so it should be safe to assume
77
-		include virtualbox
78
-	}
78
+        include rax
79
+    } else {
80
+    # virtualbox is the vagrant default, so it should be safe to assume
81
+		$vagrant_user = "vagrant"
82
+        include virtualbox
83
+    }
84
+
85
+    user { "vagrant":
86
+        ensure => present,
87
+        comment => "Vagrant User",
88
+        shell => "/bin/bash",
89
+        home => "/home/vagrant",
90
+    }
79 91
 
80 92
 	file { "/usr/local/bin":
81 93
 		ensure => directory,
... ...
@@ -103,6 +119,11 @@ class docker {
103 103
         require => Exec["copy-docker-bin"],
104 104
     }
105 105
 
106
+    file { "/home/vagrant":
107
+        ensure => directory,
108
+        mode => 644,
109
+        require => User["vagrant"],
110
+    }
106 111
 
107 112
     file { "/home/vagrant/.profile":
108 113
         mode => 644,
... ...
@@ -69,9 +69,15 @@ func (runtime *Runtime) Create(config *Config) (*Container, error) {
69 69
 	if err != nil {
70 70
 		return nil, err
71 71
 	}
72
+	// Generate id
73
+	id := GenerateId()
74
+	// Generate default hostname
75
+	if config.Hostname == "" {
76
+		config.Hostname = id[:12]
77
+	}
72 78
 	container := &Container{
73 79
 		// FIXME: we should generate the ID here instead of receiving it as an argument
74
-		Id:              GenerateId(),
80
+		Id:              id,
75 81
 		Created:         time.Now(),
76 82
 		Path:            config.Cmd[0],
77 83
 		Args:            config.Cmd[1:], //FIXME: de-duplicate from config
... ...
@@ -6,6 +6,7 @@ import (
6 6
 	"io/ioutil"
7 7
 	"os"
8 8
 	"path/filepath"
9
+	"sort"
9 10
 	"strings"
10 11
 )
11 12
 
... ...
@@ -75,7 +76,7 @@ func (store *TagStore) LookupImage(name string) (*Image, error) {
75 75
 		if i, err := store.GetImage(repoAndTag[0], repoAndTag[1]); err != nil {
76 76
 			return nil, err
77 77
 		} else if i == nil {
78
-			return nil, fmt.Errorf("No such image: %s", name)
78
+			return nil, fmt.Errorf("Image does not exist: %s", name)
79 79
 		} else {
80 80
 			img = i
81 81
 		}
... ...
@@ -94,6 +95,7 @@ func (store *TagStore) ById() map[string][]string {
94 94
 				byId[id] = []string{name}
95 95
 			} else {
96 96
 				byId[id] = append(byId[id], name)
97
+				sort.Strings(byId[id])
97 98
 			}
98 99
 		}
99 100
 	}