docker-builder 0.1.16 → 0.1.17
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3489d688b9cf4c1ed021f3c0c195cdb7e0b3c80
|
4
|
+
data.tar.gz: 748dc94c710a99c4ee0d2cd7a15a38c5f104cf64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee440905b5bbb0b51246670d98b16c58a3d79b27f1c3f77079498b9525084676688b3f5749a6d472d20b921d770704d8313da7dcf6148fa7a2aaf4a412fb3e26
|
7
|
+
data.tar.gz: 262a8d91c32767d6386a404358291fd4ba3d2d15a7d2483cdfca627af85040e7a21cf7eee911f81d99de9df5a173e222664a80b1382c58bec496f2e6b7022db8
|
@@ -353,6 +353,11 @@ class Manager
|
|
353
353
|
# cache for server
|
354
354
|
cmd("rm -rf #{settings.dir_server_root}/.chef/local-mode-cache")
|
355
355
|
#cmd("rm -rf ~/.chef/package-cache")
|
356
|
+
|
357
|
+
# cache in gem
|
358
|
+
cmd("rm -rf #{Config.dir_gem_root}/lib/docker_builder/.chef/local-mode-cache")
|
359
|
+
|
360
|
+
|
356
361
|
end
|
357
362
|
|
358
363
|
###
|
data/readme.md
CHANGED
@@ -12,9 +12,37 @@ Other tools:
|
|
12
12
|
* docker-composer - with configs in yml
|
13
13
|
|
14
14
|
|
15
|
+
Docker-builder is similar to docker-compose but has some more functionality to customize installation of servers on the host.
|
16
|
+
|
15
17
|
|
16
18
|
# Overview
|
17
19
|
|
20
|
+
Process of installing server in Docker container consists of the following stages:
|
21
|
+
|
22
|
+
Process of building and running container on the host machine:
|
23
|
+
* Build Docker image
|
24
|
+
* it will create a Docker image on the host machine
|
25
|
+
* build using Dockerfile or Chef provisioning
|
26
|
+
|
27
|
+
* Run Docker container
|
28
|
+
* provision host machine - run scripts locally on the host machine. It can be shell script of Chef recipe
|
29
|
+
* run container - `docker run`
|
30
|
+
* provision container - run script inside the container. It can be shell script of Chef recipe
|
31
|
+
|
32
|
+
* Install systemd service on the host machine to run Docker container automatically (optional)
|
33
|
+
|
34
|
+
* Start/Stop container
|
35
|
+
|
36
|
+
* Destroy container
|
37
|
+
|
38
|
+
* Destroy image
|
39
|
+
|
40
|
+
|
41
|
+
Concepts of running Docker containers:
|
42
|
+
* you can rerun containers without losing data. Data is stored on the host machine and shared with container.
|
43
|
+
|
44
|
+
|
45
|
+
|
18
46
|
|
19
47
|
Build Docker image:
|
20
48
|
* from Dockerfile
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docker-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max Ivak
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|