minke 1.13.9 → 1.13.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/docker/Gemfile +2 -2
- data/lib/minke/command.rb +13 -4
- data/lib/minke/scripts/minke +2 -2
- data/lib/minke/tasks/task_runner.rb +6 -2
- data/lib/minke/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: 9d6c70ac5b53ba36744cc09453df044b63bc020a
|
4
|
+
data.tar.gz: bfb537c17a7a55425ee172aaf36878b29ef9d405
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46800a54dfffb96517d1d88c4863fa061854ee4d951582305bb808bce14469a638bc42174a860877d0c9144adf851558b1ed6933850ef47cf885abe80a550d70
|
7
|
+
data.tar.gz: 3253eb9db99d248c24dca0709f19e093de150427f214a0c8b8cba101b7e502d8fa950bf5a81a4200718c0b6c1de5e242de6df34d58f1fd29a0c1f9d1d12fc08f
|
data/.travis.yml
CHANGED
@@ -30,7 +30,7 @@ after_deploy:
|
|
30
30
|
docker build -t nicholasjackson/minke --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg VCS_REF=`git rev-parse --short HEAD` .;
|
31
31
|
docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
|
32
32
|
docker push nicholasjackson/minke:latest;
|
33
|
-
docker tag nicholasjackson/minke nicholasjackson/minke:1.13.
|
34
|
-
docker push nicholasjackson/minke:1.13.
|
33
|
+
docker tag nicholasjackson/minke nicholasjackson/minke:1.13.10;
|
34
|
+
docker push nicholasjackson/minke:1.13.10;
|
35
35
|
curl https://hooks.microbadger.com/images/nicholasjackson/minke/tkpohfdrYPE0B0TL5NzLcOap4k0=;
|
36
36
|
fi
|
data/docker/Gemfile
CHANGED
@@ -8,8 +8,8 @@ gem "cucumber"
|
|
8
8
|
gem "cucumber-rest-api", "= 0.3"
|
9
9
|
gem 'cucumber-api', '~> 0.3'
|
10
10
|
|
11
|
-
gem 'minke', "= 1.13.
|
12
|
-
gem 'minke-generator-swift', "= 0.
|
11
|
+
gem 'minke', "= 1.13.10"
|
12
|
+
gem 'minke-generator-swift', "= 0.4"
|
13
13
|
gem 'minke-generator-netmvc'
|
14
14
|
gem 'minke-generator-go', "= 0.8.5"
|
15
15
|
gem 'minke-generator-spring'
|
data/lib/minke/command.rb
CHANGED
@@ -27,7 +27,8 @@ module Minke
|
|
27
27
|
task_runner = Minke::Tasks::TaskRunner.new ({
|
28
28
|
:rake_helper => Minke::Helpers::Rake.new,
|
29
29
|
:copy_helper => Minke::Helpers::Copy.new,
|
30
|
-
:service_discovery => Minke::Docker::ServiceDiscovery.new(project_name, Minke::Docker::DockerRunner.new(logger), network_name)
|
30
|
+
:service_discovery => Minke::Docker::ServiceDiscovery.new(project_name, Minke::Docker::DockerRunner.new(logger), network_name),
|
31
|
+
:logger_helper => logger
|
31
32
|
})
|
32
33
|
|
33
34
|
consul = Minke::Docker::Consul.new(
|
@@ -70,9 +71,10 @@ module Minke
|
|
70
71
|
:fetch => Minke::Tasks::Fetch.new(dependencies),
|
71
72
|
:build => Minke::Tasks::Build.new(dependencies),
|
72
73
|
:test => Minke::Tasks::Test.new(dependencies),
|
74
|
+
:run => Minke::Tasks::Run.new(dependencies),
|
73
75
|
:build_image => Minke::Tasks::BuildImage.new(dependencies),
|
74
|
-
:cucumber
|
75
|
-
:push
|
76
|
+
:cucumber => Minke::Tasks::Cucumber.new(dependencies),
|
77
|
+
:push => Minke::Tasks::Push.new(dependencies)
|
76
78
|
}
|
77
79
|
end
|
78
80
|
|
@@ -100,6 +102,13 @@ module Minke
|
|
100
102
|
end
|
101
103
|
end
|
102
104
|
|
105
|
+
def run
|
106
|
+
if config.run != nil
|
107
|
+
tasks = create_tasks :run
|
108
|
+
tasks[:run].run
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
103
112
|
def build_image
|
104
113
|
if config.test != nil
|
105
114
|
test
|
@@ -121,4 +130,4 @@ module Minke
|
|
121
130
|
end
|
122
131
|
|
123
132
|
end
|
124
|
-
end
|
133
|
+
end
|
data/lib/minke/scripts/minke
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/bin/bash
|
2
|
-
MINKE_VERSION="1.13.
|
2
|
+
MINKE_VERSION="1.13.10"
|
3
3
|
|
4
4
|
DOCKER_SOCK="/var/run/docker.sock:/var/run/docker.sock"
|
5
5
|
NEW_UUID=$(base64 /dev/urandom | tr -d '/+' | head -c 32 | tr '[:upper:]' '[:lower:]')
|
@@ -21,7 +21,7 @@ if [[ $1 != \generate* ]]; then
|
|
21
21
|
done < <(grep :path Gemfile)
|
22
22
|
|
23
23
|
DIR=$(dirname `pwd`)
|
24
|
-
DOCKER_RUN="docker run --rm --net=minke_${NEW_UUID} ${GEM_VOLUMES} -v ${DOCKER_SOCK} -v ${DIR}:${DIR} -v ${DIR}/_build/vendor:/usr/local/bundle -e DOCKER_NETWORK=minke_${NEW_UUID} -w ${DIR}/_build ${DOCKER_IMAGE} ${COMMAND}"
|
24
|
+
DOCKER_RUN="docker run ${IT} --rm --net=minke_${NEW_UUID} ${GEM_VOLUMES} -v ${DOCKER_SOCK} -v ${DIR}:${DIR} -v ${DIR}/_build/vendor:/usr/local/bundle -e DOCKER_NETWORK=minke_${NEW_UUID} -w ${DIR}/_build ${DOCKER_IMAGE} ${COMMAND}"
|
25
25
|
|
26
26
|
echo "Running command: minke ${COMMAND}"
|
27
27
|
|
@@ -6,6 +6,7 @@ module Minke
|
|
6
6
|
@rake_helper = args[:rake_helper]
|
7
7
|
@copy_helper = args[:copy_helper]
|
8
8
|
@service_discovery = args[:service_discovery]
|
9
|
+
@logger = args[:logger_helper]
|
9
10
|
end
|
10
11
|
|
11
12
|
##
|
@@ -25,9 +26,12 @@ module Minke
|
|
25
26
|
##
|
26
27
|
# copys the assets defined in the step
|
27
28
|
def copy_assets assets
|
28
|
-
assets.each
|
29
|
+
assets.each do |a|
|
30
|
+
@logger.debug "Copy #{a.from} To #{a.to}"
|
31
|
+
@copy_helper.copy_assets a.from, a.to
|
32
|
+
end
|
29
33
|
end
|
30
34
|
|
31
35
|
end
|
32
36
|
end
|
33
|
-
end
|
37
|
+
end
|
data/lib/minke/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.13.
|
4
|
+
version: 1.13.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nic Jackson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|