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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d76a4779cec82a6c13f3be1b64a22bc454f6126
4
- data.tar.gz: d0f548b2754f2ba999361a4ce9e6f970dfc69e37
3
+ metadata.gz: 5bf62767522e006ada966819503966d664f241d0
4
+ data.tar.gz: 8975283cd6cb3fa23e6818f701a25318fe1ff2c3
5
5
  SHA512:
6
- metadata.gz: 9b63c8cfb7fa0f8ebfc6bcebc581fa1d9f1794e71a6f3a5869226d0e254e7e2f88892eefdea66794a0457c23b8f0f35893075d81ca255b694cc551b1648763c5
7
- data.tar.gz: 2ccc93f6003d232028ed0541ce8be0515ebdc199d5dbcafe7359ae078089610015e5371100b9cc7fbae71b9265e69fd84ee1079bb37e93c8d864b4e00a54a495
6
+ metadata.gz: 44c53179c5b4eaa63ad68abf43d6e15a167bb03c5d5d33ccb45112b08cf135c3c6d85636f3514667465dbe30aa152d017d87d4aaa8a6f9c1421b20d5743736a1
7
+ data.tar.gz: 1f8caf47fe8a3a234da841f07b51f3508119d777c12cc9236b9ae35791d5a0643e74bc0080fc22a458ef0f3bb0df1d6f4c136fc7f3c4ac96fdbe7705b3789ed2
@@ -14,16 +14,9 @@ module Docker
14
14
  # --
15
15
 
16
16
  def auth_with_env?
17
- (
18
- ENV.key?("DOCKER_USERNAME") && \
19
- ENV.key?("DOCKER_PASSWORD") && \
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"] || ENV["bamboo_dockerUsername"],
44
- "serveraddress" => ENV["DOCKER_SERVER"] || ENV["bamboo_dockerServer"] || DEFAULT_SERVER,
45
- "password" => ENV["DOCKER_PASSWORD"] || ENV["bamboo_dockerPassword"],
46
- "email" => ENV["DOCKER_EMAIL"] || ENV["bamboo_dockerEmail"]
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
 
@@ -228,7 +228,7 @@ module Docker
228
228
 
229
229
  private
230
230
  def copy_git
231
- return if rootfs? || !@repo.meta.git?
231
+ return if rootfs? || !@repo.meta.git? || !@repo.meta.push_only?
232
232
  require "rugged"
233
233
 
234
234
  @repo.meta[:git].each do |repo|
@@ -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, :desc => "Build everything except for these images."
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."
@@ -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",
@@ -4,6 +4,6 @@
4
4
 
5
5
  module Docker
6
6
  module Template
7
- VERSION = "0.10.0"
7
+ VERSION = "0.10.1"
8
8
  end
9
9
  end
@@ -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 -s $ROOTFS/run/lock $ROOTFS/var/lock
51
- ln -s $ROOTFS/run $ROOTFS/var/run
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.0
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-02 00:00:00.000000000 Z
11
+ date: 2017-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor