fpm-dockery 0.1.6 → 0.1.7
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/CHANGELOG.md +5 -0
- data/README.md +4 -0
- data/docker/Dockerfile.ubuntu12.04 +1 -0
- data/docker/Dockerfile.ubuntu14.04 +1 -0
- data/lib/fpm/dockery/cli.rb +7 -2
- data/lib/fpm/dockery/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: ad30556cb4aef21a9c240d15ef05370347bc9ab8
|
|
4
|
+
data.tar.gz: 2ec29e04ad95788dc287b69dfa5cbe9e48ce52d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/fpm/dockery/cli.rb
CHANGED
|
@@ -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
|
data/lib/fpm/dockery/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2015-05-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: clamp
|