-
Install docker-manger.conf and docker-instance.conf in /etc/init
-
Create a containers file in /etc/docker/ with the following format
name: image cmd
The name must be unique.
-
sudo service docker-manager start
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Ensure development containers | |
hosts: localhost | |
connection: local | |
gather_facts: False | |
tasks: | |
- name: data db container | |
docker: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# minimal rails3 app | |
require 'action_controller' | |
Router = ActionDispatch::Routing::RouteSet.new | |
Router.draw do | |
root :to => 'site#index' | |
end | |
class SiteController < ActionController::Metal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ArchiveServiceMessagesJob extends AbstractJob { | |
private static final int PAGE_SIZE = 10; | |
private ServiceMessageRepository messageRepository; | |
private AlfrescoAtomPubClient alfrescoClient; | |
@Autowired | |
public ArchiveServiceMessagesJob(ServiceMessageRepository messageRepository, | |
AlfrescoAtomPubClient alfrescoClient) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'test_helper' | |
require 'minitest/autorun' | |
module Tenderlove | |
class Spec < MiniTest::Spec | |
include ActiveSupport::Testing::SetupAndTeardown | |
include ActiveRecord::TestFixtures | |
alias :method_name :__name__ if defined? :__name__ | |
self.fixture_path = File.join(Rails.root, 'test', 'fixtures') |
I hereby claim:
- I am wyaeld on github.
- I am wyaeld (https://keybase.io/wyaeld) on keybase.
- I have a public key whose fingerprint is 923F AAAD 9255 3CD7 7DCA 9AA5 C58F 04F8 AE5A 814B
To claim this, I am signing this object:
NewerOlder