-
Install docker-manger.conf and docker-instance.conf in /etc/init
-
Create a containers file in /etc/docker/ with the following format
name: image cmdThe name must be unique.
-
sudo service docker-manager start
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| get_next: function(on_success, on_error, offset) { // Need to support on_success and on_error for legacy | |
| var deferred = when.defer(); | |
| deferred.then(on_success, on_error); | |
| if (this.can_get_data()) { | |
| this.get_data({ | |
| offset: offset | |
| }).then(function(e) { // Is this how I go about chaining promises ? | |
| deferred.resolve(e); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.test; | |
| import org.jruby.RubyHash.Visitor; | |
| import org.jruby.runtime.builtin.IRubyObject; | |
| import org.jruby.RubyArray; | |
| import org.jruby.RubyBignum; | |
| import org.jruby.RubyBoolean; | |
| import org.jruby.RubyFixnum; | |
| import org.jruby.RubyFloat; | |
| import org.jruby.RubyHash; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* eventmodule */ | |
| /* Events */ | |
| var Events = { | |
| on: function(events, callback) { | |
| if(!this._observer) { | |
| this._observer = $({}); | |
| } | |
| this._observer.bind(events, callback); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package helloworld; | |
| import java.io.InputStream; | |
| import java.io.InputStreamReader; | |
| import java.io.Reader; | |
| import java.nio.charset.Charset; | |
| import java.util.Map; | |
| import java.util.Set; | |
| import java.util.Map.Entry; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM cws/base:2013-07-01 | |
| MAINTAINER Raul E. Rangel "[email protected]" | |
| # Download the ruby-build code | |
| RUN \curl -L https://github.com/sstephenson/ruby-build/archive/v20130518.tar.gz | tar -zxvf - -C /tmp/ | |
| # Install ruby-build | |
| RUN cd /tmp/ruby-build-* && ./install.sh && cd / && rm -rfv /tmp/ruby-build-master | |
| # Install ruby |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2013/08/02 17:01:11 [warn] 26#0: *7 a client request body is buffered to a temporary file /var/lib/nginx/client_body_temp/0000000001, client: 172.16.42.1, server: , request: "POST /tenants/cwstest/stunts/51fbe5d696bb27002d000001/uploads/51fbe5d796bb27002d000002/encrypt HTTP/1.1", host: "localhost:49172" | |
| 2013/08/02 17:01:11 [crit] 26#0: *7 writev() "/var/lib/nginx/client_body_temp/0000000001" failed (38: Function not implemented), client: 172.16.42.1, server: , request: "POST /tenants/cwstest/stunts/51fbe5d696bb27002d000001/uploads/51fbe5d796bb27002d000002/encrypt HTTP/1.1", host: "localhost:49172" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2013-08-15 18:06:45,908 DEBUG: check_session: Session is empty | |
| 2013-08-15 18:06:45,908 DEBUG: api_error: Image is being uploaded, retry later | |
| 2013-08-15 18:06:46,127 DEBUG: check_session: Session is empty | |
| 2013-08-15 18:06:51,862 DEBUG: check_session: Session is empty | |
| 2013-08-15 18:06:51,906 DEBUG: put_image_layer: Error when computing checksum file could not be opened successfully | |
| 2013-08-15 18:06:51,906 DEBUG: Writing Stream to images/e9aa60c60128cad1/layer | |
| 2013-08-15 18:06:51,911 DEBUG: Wrote Stream to images/e9aa60c60128cad1/layer | |
| 2013-08-15 18:06:51,912 DEBUG: Getting image checksum at images/e9aa60c60128cad1/_checksum | |
| 2013-08-15 18:06:51,912 DEBUG: Got checksum sha256:42cda75d80ad4acff590a2b872588bf159ffc67fd3d594825e1c765d6e2e6be3 | |
| 2013-08-15 18:06:51,912 DEBUG: Comparing to calculated checksums: ['sha256:5f86f088a51ebfd114a34e44aa0eb7af478803ef2e8df8f7d156a3e4640df298'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -e | |
| IFADDR="192.168.3.1/24" | |
| if [[ ! ip link show docker0 ]]; then | |
| ip link add docker0 type bridge | |
| ip addr add "$IFADDR" dev docker0 | |
| ip link set docker0 up | |
| iptables -t nat -A POSTROUTING -s "$IFADDR" ! -d "$IFADDR" -j MASQUERADE | |
| fi |
OlderNewer