http_stub_docker 0.0.1 → 0.0.2
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/bin/push_docker_image_to_ecr.sh +9 -0
- data/resource/.dockerignore +12 -0
- data/resource/Dockerfile +22 -0
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e625632fe6af57579d76b607178a6c452c67fa5e
|
4
|
+
data.tar.gz: 9f62dc71ffd7fb9847b8038769d9ce4566077198
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27b139e8651af7313c5939aee434eba4cdac13e38bfc793af1418e9eb37286b9345b365d9dbed93d264b50a91128305dd84ed230e0a29b7ecfe3ce238d2597c6
|
7
|
+
data.tar.gz: 8502aa86a83823dcedbe5be609d9f18448cc5c5f3cc2a8622eb1df3cc7008a15450fcc7d6ade6631ce092b0093e82e6189e368c89e8a8fa33229e059e94665ac
|
data/resource/Dockerfile
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
FROM ruby:2.3.1-alpine
|
2
|
+
|
3
|
+
# Update Bundler
|
4
|
+
RUN gem install bundler
|
5
|
+
|
6
|
+
# Cache dependencies
|
7
|
+
COPY ["Gemfile", "Gemfile.lock", "*.gemspec", "/tmp/cache/"]
|
8
|
+
WORKDIR /tmp/cache
|
9
|
+
RUN bundle install --without test && rm -rf /tmp/cache
|
10
|
+
|
11
|
+
# Copy code
|
12
|
+
COPY . /root/app/
|
13
|
+
WORKDIR /root/app
|
14
|
+
|
15
|
+
# Registers bundle in working directory
|
16
|
+
RUN bundle install
|
17
|
+
|
18
|
+
# Expose server port
|
19
|
+
EXPOSE 80
|
20
|
+
|
21
|
+
# Start server & tail logs in order to sustain foreground process
|
22
|
+
CMD trap exit TERM; bundle exec rake stub_server:start && tail -f tmp/log/server_console.log
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http_stub_docker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dueckes
|
@@ -86,12 +86,15 @@ executables: []
|
|
86
86
|
extensions: []
|
87
87
|
extra_rdoc_files: []
|
88
88
|
files:
|
89
|
+
- "./bin/push_docker_image_to_ecr.sh"
|
89
90
|
- "./lib/http_stub_docker.rb"
|
90
91
|
- "./lib/http_stub_docker/rake/container_tasks.rb"
|
91
92
|
- "./lib/http_stub_docker/rake/pipeline_tasks.rb"
|
92
93
|
- "./lib/http_stub_docker/rake/resource_tasks.rb"
|
93
94
|
- "./lib/http_stub_docker/rake/server_daemon_tasks.rb"
|
94
95
|
- "./lib/http_stub_docker/rake/task_generator.rb"
|
96
|
+
- "./resource/.dockerignore"
|
97
|
+
- "./resource/Dockerfile"
|
95
98
|
homepage: http://github.com/MYOB-Technology/http_stub_docker
|
96
99
|
licenses:
|
97
100
|
- MIT
|