fpm-dockery 0.1.6 → 0.1.7

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: a232c25c8dfac4c320371918387d390d9a96dc49
4
- data.tar.gz: 16d9594abe5ffce3372d58412242a718d0e95f57
3
+ metadata.gz: ad30556cb4aef21a9c240d15ef05370347bc9ab8
4
+ data.tar.gz: 2ec29e04ad95788dc287b69dfa5cbe9e48ce52d3
5
5
  SHA512:
6
- metadata.gz: e3cd7add0d0d5598f21adb1c4af2a17b17f70ab3a6fb5dcec6d7256f120c4ab3ffce92ac549ecdf30083d51d4838cd5bcaf1bd2677f5e2d913ef966aafa85312
7
- data.tar.gz: 3660c5d4f2534b164daec5119d56d0f5904c0730225483a9bcf2a05c58c7fb74802efd6b20c7bc3493a5002dbbce437c4bda58b33898fb56046719adb76964b8
6
+ metadata.gz: d26d74b4b10abd8dd3b4f0d75608f76acb80413a07586a8551fbb21e8ecbd487e2985380d739b3aa112c72376f867dc4438d52aa32fa9d6f86a14575343fc11d
7
+ data.tar.gz: efd7e64c768bfd4d5cd461ba38951f1ff9f1f649fade53d13f736591a5894ebfa634d9308d16cc3268a65a1f4591625afda3f457403d2e4d1dbba0284074bb1f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.7
4
+
5
+ * Add the ability to have a local cache dir. [@lloydpick](https://github.com/lloydpick)
6
+ * Unzip is required by fpm-cookery for zip sources. [@lloydpick](https://github.com/lloydpick)
7
+
3
8
  ## 0.1.6
4
9
 
5
10
  * Check private key exists and does not have a passphrase. [@lloydpick](https://github.com/lloydpick)
data/README.md CHANGED
@@ -110,6 +110,10 @@ to create a keypair just for your package builds, and give it only read access t
110
110
 
111
111
  fpm-dockery package --private-key some/path/builder-private-key example_recipe/recipe.rb ubuntu12.04
112
112
 
113
+ If you're working with large source files and don't want to re-download the source each time you can specify a local cache directory which fpm-cookery will use.
114
+
115
+ fpm-dockery package --local-cache-dir some/path example_recipe/recipe.rb ubuntu12.04
116
+
113
117
  If you'd like to make fpm-cookery skip the packaging step, supply the `--skip-package` option:
114
118
 
115
119
  fpm-dockery package --skip-package example_recipe/recipe.rb ubuntu12.04
@@ -7,6 +7,7 @@ RUN apt-get install -y git
7
7
  RUN apt-get install -y curl
8
8
  RUN apt-get install -y mercurial
9
9
  RUN apt-get install -y subversion
10
+ RUN apt-get install -y unzip
10
11
 
11
12
  # Build tools
12
13
  RUN apt-get install -y build-essential
@@ -7,6 +7,7 @@ RUN apt-get install -y git
7
7
  RUN apt-get install -y curl
8
8
  RUN apt-get install -y mercurial
9
9
  RUN apt-get install -y subversion
10
+ RUN apt-get install -y unzip
10
11
 
11
12
  # Build tools
12
13
  RUN apt-get install -y build-essential
@@ -68,7 +68,8 @@ module FPM
68
68
  parameter "[PACKAGE_DIR]", "Where to place the packages created by the build (defaults to /pkg in same dir as recipe)"
69
69
  option "--skip-package", :flag, "Skip package building (identical to fpm-cook --skip-package)"
70
70
  option "--private-key", "PRIVATE_KEY", "Private key to use with SSH (for example, when cloning private Git repositories)"
71
-
71
+ option "--local-cache-dir", "DIR", "Local cache directory to use (useful if you are working with large source files)"
72
+
72
73
  def execute
73
74
  recipe_path = File.expand_path(recipe)
74
75
  dir_to_mount = File.dirname(recipe_path)
@@ -100,7 +101,11 @@ module FPM
100
101
  exit 1
101
102
  end
102
103
  end
103
-
104
+
105
+ if local_cache_dir
106
+ extra_docker_commands << "-v #{File.expand_path(local_cache_dir)}:/tmp/cache"
107
+ end
108
+
104
109
  if skip_package?
105
110
  extra_fpm_cook_commands << "--skip-package"
106
111
  end
@@ -1,5 +1,5 @@
1
1
  module FPM
2
2
  module Dockery
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fpm-dockery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Sykes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-16 00:00:00.000000000 Z
11
+ date: 2015-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp