docker-template 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/docker/template/auth.rb +7 -14
- data/lib/docker/template/builder.rb +1 -1
- data/lib/docker/template/cli.rb +1 -1
- data/lib/docker/template/meta.rb +2 -0
- data/lib/docker/template/version.rb +1 -1
- data/templates/rootfs/alpine.erb +2 -2
- 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: 5bf62767522e006ada966819503966d664f241d0
|
4
|
+
data.tar.gz: 8975283cd6cb3fa23e6818f701a25318fe1ff2c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44c53179c5b4eaa63ad68abf43d6e15a167bb03c5d5d33ccb45112b08cf135c3c6d85636f3514667465dbe30aa152d017d87d4aaa8a6f9c1421b20d5743736a1
|
7
|
+
data.tar.gz: 1f8caf47fe8a3a234da841f07b51f3508119d777c12cc9236b9ae35791d5a0643e74bc0080fc22a458ef0f3bb0df1d6f4c136fc7f3c4ac96fdbe7705b3789ed2
|
data/lib/docker/template/auth.rb
CHANGED
@@ -14,16 +14,9 @@ module Docker
|
|
14
14
|
# --
|
15
15
|
|
16
16
|
def auth_with_env?
|
17
|
-
(
|
18
|
-
|
19
|
-
|
20
|
-
ENV.key?("DOCKER_EMAIL")
|
21
|
-
) || \
|
22
|
-
(
|
23
|
-
ENV.key?("bamboo_dockerUsername") && \
|
24
|
-
ENV.key?("bamboo_dockerPassword") && \
|
25
|
-
ENV.key?("bambo_dockerEmail")
|
26
|
-
)
|
17
|
+
ENV.key?("DOCKER_USERNAME") && \
|
18
|
+
ENV.key?("DOCKER_PASSWORD") && \
|
19
|
+
ENV.key?("DOCKER_EMAIL")
|
27
20
|
end
|
28
21
|
|
29
22
|
# --
|
@@ -40,10 +33,10 @@ module Docker
|
|
40
33
|
|
41
34
|
def auth_from_env
|
42
35
|
Docker.authenticate!({
|
43
|
-
"username" => ENV["DOCKER_USERNAME"]
|
44
|
-
"serveraddress" => ENV["DOCKER_SERVER"] ||
|
45
|
-
"password" => ENV["DOCKER_PASSWORD"]
|
46
|
-
"email" => ENV["DOCKER_EMAIL"]
|
36
|
+
"username" => ENV["DOCKER_USERNAME"],
|
37
|
+
"serveraddress" => ENV["DOCKER_SERVER"] || DEFAULT_SERVER,
|
38
|
+
"password" => ENV["DOCKER_PASSWORD"],
|
39
|
+
"email" => ENV["DOCKER_EMAIL"]
|
47
40
|
})
|
48
41
|
end
|
49
42
|
|
data/lib/docker/template/cli.rb
CHANGED
@@ -69,7 +69,7 @@ module Docker
|
|
69
69
|
option :profile, :type => :boolean, :desc => "Profile Memory."
|
70
70
|
option :tty, :type => :boolean, :desc => "Enable TTY Output."
|
71
71
|
option :cache, :type => :boolean, :desc => "Cache your repositories to cache."
|
72
|
-
option :exclude, :type => :array,
|
72
|
+
option :exclude, :type => :array, :desc => "Build everything except for these images."
|
73
73
|
option :debug, :type => :boolean, :desc => "Send the DEBUG=true env var to your instance."
|
74
74
|
option :diff, :type => :boolean, :desc => "Build only modified repositories."
|
75
75
|
option :push, :type => :boolean, :desc => "Push Repo After Building."
|
data/lib/docker/template/meta.rb
CHANGED
@@ -40,7 +40,9 @@ module Docker
|
|
40
40
|
"project_data_dir" => "docker",
|
41
41
|
"rootfs_base_img" => "envygeeks/alpine",
|
42
42
|
"maintainer" => "Random User <random.user@example.com>",
|
43
|
+
"envygeeks" => ENV["ENVYGEEKS"] && ENV["ENVYGEEKS"] == "true",
|
43
44
|
"user" => ENV["USER"] || ENV["USERNAME"] || "random",
|
45
|
+
"ci" => ENV["CI"] && ENV["CI"] == "true",
|
44
46
|
"name" => Template.root.basename.to_s,
|
45
47
|
"project_copy_dir" => "project",
|
46
48
|
"rootfs_template" => "alpine",
|
data/templates/rootfs/alpine.erb
CHANGED
@@ -47,8 +47,8 @@ apk del --root=$ROOTFS <%= @meta.package_deep_cleanup %>
|
|
47
47
|
mv $ROOTFS/var/run/* $ROOTFS/run 2> /dev/null || true
|
48
48
|
mv $ROOTFS/var/lock $ROOTFS/run 2> /dev/null || true
|
49
49
|
rm -rf $ROOTFS/var/run $ROOTFS/var/lock
|
50
|
-
ln -
|
51
|
-
ln -
|
50
|
+
ln -sf /run/lock $ROOTFS/var/lock
|
51
|
+
ln -sf /run $ROOTFS/var/run
|
52
52
|
|
53
53
|
# --
|
54
54
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docker-template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordon Bedwell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|