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 +4 -4
- data/README.md +54 -7
- data/lib/phoebo/config/image.rb +1 -1
- data/lib/phoebo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5b6eb6663c7c1b090842e76982640f580136abc
|
4
|
+
data.tar.gz: 3207635c0d4257839833a21b99985acb3c4f7d85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf8cf82e12278cb68316470dfb5a824088ce42583b6d2e73549b561ab023b2183f557c700369712aad62bd7cff48523db2645d03721990fd307f677c9e8a8d8a
|
7
|
+
data.tar.gz: 903c813e16d33624724b4571e5de60a88ed91ebbdadbc4facd8d3c31958ba1b50ba2670517e44d27bab63b004795c6ee28cb184442d986603bac4e2de6eec874
|
data/README.md
CHANGED
@@ -1,4 +1,45 @@
|
|
1
|
-
#
|
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
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
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>
|
data/lib/phoebo/config/image.rb
CHANGED
@@ -13,7 +13,7 @@ module Phoebo
|
|
13
13
|
|
14
14
|
# image('my-image', from: 'base-image')
|
15
15
|
if options[:from]
|
16
|
-
@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')
|
data/lib/phoebo/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|