Skip to content

Commit ffbf374

Browse files
committed
Initial commit
0 parents  commit ffbf374

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+3004
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
vendor
2+
.idea
3+
.vagrant

Vagrantfile

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
$script = <<SCRIPT
5+
apt-get update
6+
apt-get install -y php5-cli
7+
apt-get install -y python-setuptools
8+
easy_install supervisor
9+
cp /vagrant/system/supervisor /etc/init.d/
10+
chmod a+x /etc/init.d/supervisor
11+
cp /vagrant/system/supervisord.conf /etc/supervisord.conf
12+
SCRIPT
13+
14+
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
15+
VAGRANTFILE_API_VERSION = "2"
16+
17+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
18+
# All Vagrant configuration is done here. The most common configuration
19+
# options are documented and commented below. For a complete reference,
20+
# please see the online documentation at vagrantup.com.
21+
22+
# Every Vagrant virtual environment requires a box to build off of.
23+
config.vm.box = "ds"
24+
25+
# The url from where the 'config.vm.box' box will be fetched if it
26+
# doesn't already exist on the user's system.
27+
config.vm.box_url = "https://s3-eu-west-1.amazonaws.com/ds-recruitment/ubuntu-13.04-server.box"
28+
29+
# Ubuntu fix: https://github.com/mitchellh/vagrant/issues/1673#issuecomment-28289533
30+
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
31+
config.vm.provision "shell", inline: $script
32+
33+
# Create a forwarded port mapping which allows access to a specific port
34+
# within the machine from a port on the host machine. In the example below,
35+
# accessing "localhost:8080" will access port 80 on the guest machine.
36+
# config.vm.network :forwarded_port, guest: 80, host: 8080
37+
38+
# Create a private network, which allows host-only access to the machine
39+
# using a specific IP.
40+
# config.vm.network :private_network, ip: "192.168.33.10"
41+
42+
# Create a public network, which generally matched to bridged network.
43+
# Bridged networks make the machine appear as another physical device on
44+
# your network.
45+
# config.vm.network :public_network
46+
47+
# If true, then any SSH connections made will enable agent forwarding.
48+
# Default value: false
49+
# config.ssh.forward_agent = true
50+
51+
# Share an additional folder to the guest VM. The first argument is
52+
# the path on the host to the actual folder. The second argument is
53+
# the path on the guest to mount the folder. And the optional third
54+
# argument is a set of non-required options.
55+
# config.vm.synced_folder "../data", "/vagrant_data"
56+
57+
# Provider-specific configuration so you can fine-tune various
58+
# backing providers for Vagrant. These expose provider-specific options.
59+
# Example for VirtualBox:
60+
#
61+
# config.vm.provider :virtualbox do |vb|
62+
# # Don't boot with headless mode
63+
# vb.gui = true
64+
#
65+
# # Use VBoxManage to customize the VM. For example to change memory:
66+
# vb.customize ["modifyvm", :id, "--memory", "1024"]
67+
# end
68+
#
69+
# View the documentation for the provider you're using for more
70+
# information on available options.
71+
72+
# Enable provisioning with Puppet stand alone. Puppet manifests
73+
# are contained in a directory path relative to this Vagrantfile.
74+
# You will need to create the manifests directory and a manifest in
75+
# the file base.pp in the manifests_path directory.
76+
#
77+
# An example Puppet manifest to provision the message of the day:
78+
#
79+
# # group { "puppet":
80+
# # ensure => "present",
81+
# # }
82+
# #
83+
# # File { owner => 0, group => 0, mode => 0644 }
84+
# #
85+
# # file { '/etc/motd':
86+
# # content => "Welcome to your Vagrant-built virtual machine!
87+
# # Managed by Puppet.\n"
88+
# # }
89+
#
90+
# config.vm.provision :puppet do |puppet|
91+
# puppet.manifests_path = "manifests"
92+
# puppet.manifest_file = "site.pp"
93+
# end
94+
95+
# Enable provisioning with chef solo, specifying a cookbooks path, roles
96+
# path, and data_bags path (all relative to this Vagrantfile), and adding
97+
# some recipes and/or roles.
98+
#
99+
# config.vm.provision :chef_solo do |chef|
100+
# chef.cookbooks_path = "../my-recipes/cookbooks"
101+
# chef.roles_path = "../my-recipes/roles"
102+
# chef.data_bags_path = "../my-recipes/data_bags"
103+
# chef.add_recipe "mysql"
104+
# chef.add_role "web"
105+
#
106+
# # You may also specify custom JSON attributes:
107+
# chef.json = { :mysql_password => "foo" }
108+
# end
109+
110+
# Enable provisioning with chef server, specifying the chef server URL,
111+
# and the path to the validation key (relative to this Vagrantfile).
112+
#
113+
# The Opscode Platform uses HTTPS. Substitute your organization for
114+
# ORGNAME in the URL and validation key.
115+
#
116+
# If you have your own Chef Server, use the appropriate URL, which may be
117+
# HTTP instead of HTTPS depending on your configuration. Also change the
118+
# validation key to validation.pem.
119+
#
120+
# config.vm.provision :chef_client do |chef|
121+
# chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
122+
# chef.validation_key_path = "ORGNAME-validator.pem"
123+
# end
124+
#
125+
# If you're using the Opscode platform, your validator client is
126+
# ORGNAME-validator, replacing ORGNAME with your organization name.
127+
#
128+
# If you have your own Chef Server, the default validation client name is
129+
# chef-validator, unless you changed the configuration.
130+
#
131+
# chef.validation_client_name = "ORGNAME-validator"
132+
end

composer.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "ds/queue",
3+
"description": "A test queue",
4+
"minimum-stability": "stable",
5+
"license": "proprietary",
6+
"authors": [
7+
{
8+
"name": "Ross Tuck",
9+
"email": "[email protected]"
10+
}
11+
],
12+
"require": {
13+
"symfony/event-dispatcher": "v2.4.1",
14+
"cilex/cilex": "v1.0.1",
15+
"pimple/pimple": "~1.0",
16+
"monolog/monolog": "~1.7"
17+
},
18+
"require-dev": {
19+
"phpunit/phpunit": "~3.7",
20+
"mockery/mockery": "v0.9.0"
21+
}
22+
}

0 commit comments

Comments
 (0)