capdocker 1.0.19 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d5ede87b58df43a329ca33c8c391e4ce0762b38
4
- data.tar.gz: 501e7786e8d9bc87bcca16aa5d000a1d3aacb774
3
+ metadata.gz: 511fcdf96712922b859872726f7ec133959cb43c
4
+ data.tar.gz: 6da6223b99cec983a85536dc0749e86df3c0ad40
5
5
  SHA512:
6
- metadata.gz: ed5181b1e1f25177ae137e49c5093ec0d8649c419a776bcb0a32cfb65b2bace0c4790fefadeba36b2c3ec4acb4c96a5283f74c8c46d955afeb72c465de529cce
7
- data.tar.gz: 7e3534fa2d5df2a21809d943adbbc19aec78c1db7936c79b7b881be4355974c0bd84319b935ac4bb0e376645325db8fba85144c52cd75acaf87cc2c725e4fcb9
6
+ metadata.gz: 94be2fd5eafe3a5852f82e8fa808c24db5584315da7532fc9f54e87c4cda1d28a31a6881535e9a7a767e94e38a923324c632b81738bb616e1daa2008356b5eb3
7
+ data.tar.gz: 428cb0e97867059e11631357c99ad1da5197c5d8b6ac9812531669d924ec5e0b6470d9dfe0aba43d9c38e8ee1b0a4b46a647dbb4b34f5c4978bc387866e6bffb
data/capdocker.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{capdocker}
5
- s.version = "1.0.19"
5
+ s.version = "1.0.20"
6
6
  s.authors = ["Ross Riley", "One Black Bear"]
7
7
  s.email = %q{ross@oneblackbear.com}
8
8
  s.date = Time.now
@@ -14,7 +14,8 @@ Gem::Specification.new do |s|
14
14
  "lib/docker.rb",
15
15
  "lib/docker_deploy.rb",
16
16
  "lib/templates/nginx_host.erb",
17
- "lib/templates/nginx_container.erb"
17
+ "lib/templates/nginx_container.erb",
18
+ "lib/templates/Dockerfile.erb"
18
19
  ]
19
20
  s.homepage = %q{http://oneblackbear.com}
20
21
  s.summary = %q{Deploy skeleton apps to docker container.}
@@ -0,0 +1,57 @@
1
+ # nginx + PHP5-FPM + MariaDB on Docker
2
+ #
3
+ # VERSION 0.0.1
4
+ FROM ubuntu:12.04
5
+ MAINTAINER Ross Riley "ross@oneblackbear.com"
6
+ VOLUME ["/data/mysql"]
7
+
8
+
9
+ # Update packages
10
+ RUN echo "deb http://archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list
11
+ RUN apt-get update
12
+
13
+ # install curl, wget
14
+ RUN apt-get install -y curl wget git
15
+
16
+ # Configure repos
17
+ RUN apt-get install -y python-software-properties
18
+ RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
19
+ RUN add-apt-repository 'deb http://mirrors.linsrv.net/mariadb/repo/5.5/ubuntu precise main'
20
+ RUN add-apt-repository -y ppa:nginx/stable
21
+ RUN add-apt-repository -y ppa:ondrej/php5
22
+ RUN apt-get update
23
+
24
+ # Install MariaDB
25
+ RUN apt-get -y install mariadb-server
26
+ RUN sed -i 's/^innodb_flush_method/#innodb_flush_method/' /etc/mysql/my.cnf
27
+ RUN sed -i "/^datadir*/ s|=.*|=/data/mysql|" /etc/mysql/my.cnf
28
+
29
+ # Install nginx
30
+ RUN apt-get -y install nginx
31
+
32
+ # tell Nginx to stay foregrounded
33
+ RUN echo "daemon off;" >> /etc/nginx/nginx.conf
34
+
35
+ # Install PHP5 and modules
36
+ RUN apt-get -y install php5-fpm php5-mysql php-apc php5-mcrypt php5-curl php5-gd php5-json php5-cli
37
+ RUN sed -i -e "s/short_open_tag = Off/short_open_tag = On/g" /etc/php5/fpm/php.ini
38
+ RUN curl -sS https://getcomposer.org/installer | php
39
+ RUN mv composer.phar /usr/local/bin/composer
40
+
41
+ # Configure nginx for PHP websites
42
+ ADD platform/nginx_container.conf /etc/nginx/sites-available/default
43
+ RUN echo "cgi.fix_pathinfo = 0;" >> /etc/php5/fpm/php.ini
44
+ RUN mkdir -p /var/www
45
+ EXPOSE 80
46
+
47
+ # Copy across the local files to the root directory
48
+ ADD ./ /var/www/
49
+ RUN chown -R www-data:www-data /var/www
50
+
51
+
52
+ # Run composer to install dependencies
53
+ RUN cd /var/www/ && composer install
54
+
55
+ #And Start
56
+ CMD chown -R mysql:mysql /data/mysql; service mysql start; php5-fpm; nginx -c /etc/nginx/nginx.conf
57
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capdocker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.19
4
+ version: 1.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Riley
@@ -66,6 +66,7 @@ files:
66
66
  - lib/docker_deploy.rb
67
67
  - lib/templates/nginx_host.erb
68
68
  - lib/templates/nginx_container.erb
69
+ - lib/templates/Dockerfile.erb
69
70
  homepage: http://oneblackbear.com
70
71
  licenses: []
71
72
  metadata: {}