phoebo 0.4.0 → 0.4.1

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: f9c3136a194cda19dab404d522973deb0b65d37f
4
- data.tar.gz: be0bcb5c4fcec2576484e77c7df208f80da654ad
3
+ metadata.gz: a5b6eb6663c7c1b090842e76982640f580136abc
4
+ data.tar.gz: 3207635c0d4257839833a21b99985acb3c4f7d85
5
5
  SHA512:
6
- metadata.gz: c4fbad8e3f99763720f8c92dc653b7e23a5153d303060607de54b9549b7b4cc188613ad0ccc6cbd15fae73316e6c41d3937877afa06cf5bd7119bef30844f06b
7
- data.tar.gz: f34afee13c7bf5eb1d41d45e060ffad5b113317a136de1460449347906368bd5a734293de105121cc40d12dd458c2a3fc7b909a430e9be7786733cf1a4ae72dd
6
+ metadata.gz: bf8cf82e12278cb68316470dfb5a824088ce42583b6d2e73549b561ab023b2183f557c700369712aad62bd7cff48523db2645d03721990fd307f677c9e8a8d8a
7
+ data.tar.gz: 903c813e16d33624724b4571e5de60a88ed91ebbdadbc4facd8d3c31958ba1b50ba2670517e44d27bab63b004795c6ee28cb184442d986603bac4e2de6eec874
data/README.md CHANGED
@@ -1,4 +1,45 @@
1
- # Phoebo
1
+ # Image Builder
2
+
3
+ This project is a component of Phoebo CI responsible for building Docker images.
4
+
5
+ ## Local installation
6
+
7
+ ### Requirements
8
+
9
+ - Docker
10
+
11
+ ### Install as Gem
12
+
13
+ ```bash
14
+ # Necessary libraries for working SSH authorization for Git (Rugged)
15
+ apt-get install cmake pkg-config libssh2-1-dev
16
+
17
+ # Install Rugged with previously installed system libraries
18
+ gem install rugged -- --use-system-libraries
19
+
20
+ # Install Phoebo Image Builder
21
+ gem install phoebo
22
+ ```
23
+
24
+ ## Use inside of Docker
25
+
26
+ ### With shared Docker
27
+
28
+ ```bash
29
+ docker run \
30
+ -v /var/run/docker.sock:/tmp/docker.sock
31
+ -e NO_DIND=1 -e DOCKER_URL=unix:///tmp/docker.sock \
32
+ phoebo/image-builder:latest \
33
+ phoebo --help
34
+ ```
35
+
36
+ ### DinD
37
+
38
+ ```bash
39
+ docker run --privileged \
40
+ phoebo/image-builder:latest \
41
+ phoebo --help
42
+ ```
2
43
 
3
44
  ## DSL example
4
45
 
@@ -6,7 +47,7 @@
6
47
  Phoebo.configure(1) {
7
48
 
8
49
  # Create image based on Apache + mod_php
9
- image('phoebo/nette-example', 'phoebo/simple-apache-php') {
50
+ image('phoebo/nette-example', from: 'phoebo/simple-apache-php') {
10
51
  # Copy all application data
11
52
  add('.', '/app/')
12
53
 
@@ -17,11 +58,13 @@ Phoebo.configure(1) {
17
58
  run('ln', '-s', '/app/www', '/var/www')
18
59
  }
19
60
 
20
- # Deploy image and keep it runing (default CMD: apache)
21
- task('deploy', 'phoebo/nette-example')
22
-
23
- # Run tests on image
24
- task('test', 'phoebo/nette-example', '/app/bin/tester', '/app/tests')
61
+ # Deploy image and start web server (default CMD: apache)
62
+ service(’Web’,
63
+ image: ’phoebo/nette-example’,
64
+ ports: [
65
+ { tcp: 80 }
66
+ ]
67
+ )
25
68
  }
26
69
  ~~~
27
70
 
@@ -93,3 +136,7 @@ Other than that payload contains list of tasks with arguments and image on which
93
136
  ]
94
137
  }
95
138
  ~~~
139
+
140
+ ## Contact
141
+
142
+ Project is developed by Adam Staněk <adam.stanek@v3net.cz>
@@ -13,7 +13,7 @@ module Phoebo
13
13
 
14
14
  # image('my-image', from: 'base-image')
15
15
  if options[:from]
16
- @from = [ :image, options[:from] ]
16
+ @from = [ :base_image, options[:from] ]
17
17
  raise Phoebo::SyntaxError.new('You can only use from: or from_dockerfile: directive as a base for your images.') if options[:from_dockerfile]
18
18
 
19
19
  # image('my-image', from_dockerfile: 'Dockerfile')
@@ -1,3 +1,3 @@
1
1
  module Phoebo
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phoebo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Staněk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-21 00:00:00.000000000 Z
11
+ date: 2015-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize