http_stub_docker 0.1.3 → 0.2.0.beta1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a724e711dfec55aca3adc0751a7a9adaa8e9b84
|
4
|
+
data.tar.gz: 7146a3ac1338cb4826c7b6a0ce0f3681c7dc3769
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b803810b3c74b44663c62e5724921b1f055db0c0ee5f4cb88d41fe427012c2ee92265cde9c0040e322214a86118f1f0f0a5d047c5074f175495010cc2b7cbe23
|
7
|
+
data.tar.gz: 520f0f2137864708be5f8c5fb6ce453059a7d241cfe548d9fa7acf01d1b63bec99c13dbb59a9202f12ffc23a6cd73c87009ee7fe8c9cff3d9aa7302450b75905
|
@@ -7,7 +7,7 @@ module HttpStubDocker
|
|
7
7
|
|
8
8
|
private_constant :DEFAULT_PORT
|
9
9
|
|
10
|
-
attr_reader :
|
10
|
+
attr_reader :stub_configurator, :stub_name, :stub_dir, :port, :external_base_uri, :publish_tags, :task_prefix
|
11
11
|
|
12
12
|
def initialize(args)
|
13
13
|
@port = ENV["port"] || DEFAULT_PORT
|
@@ -7,10 +7,9 @@ module HttpStubDocker
|
|
7
7
|
HttpStub::Server::Daemon.log_dir = ::File.expand_path("#{args.stub_dir}/tmp/log", __FILE__)
|
8
8
|
HttpStub::Server::Daemon.pid_dir = ::File.expand_path("#{args.stub_dir}/tmp/pids", __FILE__)
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
HttpStub::Rake::ServerDaemonTasks.new(name: :stub_server, configurer: configurer)
|
10
|
+
stub_configurator = args.stub_configurator
|
11
|
+
stub_configurator.stub_server.port = args.port
|
12
|
+
HttpStub::Rake::ServerDaemonTasks.new(name: :stub_server, configurator: stub_configurator)
|
14
13
|
end
|
15
14
|
|
16
15
|
end
|
data/lib/http_stub_docker.rb
CHANGED
data/resource/Dockerfile.erb
CHANGED
@@ -1,20 +1,19 @@
|
|
1
1
|
# Generated by http_stub_docker, edit at your peril
|
2
|
-
FROM ruby:2.4.
|
2
|
+
FROM ruby:2.4.2-alpine
|
3
3
|
|
4
|
-
#
|
4
|
+
# Install bundle dependencies
|
5
|
+
RUN apk add --update build-base libffi-dev
|
6
|
+
|
7
|
+
# Install Bundler
|
5
8
|
RUN gem install bundler
|
6
9
|
|
7
|
-
#
|
8
|
-
COPY
|
9
|
-
WORKDIR /
|
10
|
-
RUN bundle install --without development
|
10
|
+
# For efficiency, cache Gems as these change less frequently than the Stubs configuration
|
11
|
+
COPY Gemfile Gemfile.lock *.gemspec /root/app/
|
12
|
+
WORKDIR /root/app
|
13
|
+
RUN bundle install --without development
|
11
14
|
|
12
15
|
# Copy code
|
13
16
|
COPY . /root/app/
|
14
|
-
WORKDIR /root/app
|
15
|
-
|
16
|
-
# Registers bundle in working directory
|
17
|
-
RUN bundle install --without development
|
18
17
|
|
19
18
|
# Expose server port
|
20
19
|
EXPOSE <%= port %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http_stub_docker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dueckes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -28,44 +28,44 @@ dependencies:
|
|
28
28
|
name: http_stub
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.28.0.beta1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.28.0.beta1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
47
|
+
version: '0.51'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
54
|
+
version: '0.51'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '3.
|
61
|
+
version: '3.7'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3.
|
68
|
+
version: '3.7'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: wait_until
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -125,12 +125,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
125
125
|
version: 2.2.2
|
126
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
|
-
- - "
|
128
|
+
- - ">"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version:
|
130
|
+
version: 1.3.1
|
131
131
|
requirements: []
|
132
132
|
rubyforge_project: http_stub_docker
|
133
|
-
rubygems_version: 2.6.
|
133
|
+
rubygems_version: 2.6.14
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: Docker tools for http_stub
|