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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 899ea86ff384994a34a362fc1ea6e86f27a15baa
4
- data.tar.gz: d0360c887d1dc32599ec04e3acc20646481bc377
3
+ metadata.gz: e625632fe6af57579d76b607178a6c452c67fa5e
4
+ data.tar.gz: 9f62dc71ffd7fb9847b8038769d9ce4566077198
5
5
  SHA512:
6
- metadata.gz: abdd5e239843618683f733aa55473d1f19da533dc6868b3e983cd609893dd4f9a6af676362c0a8ebaa5aed22c6764d736a3c23ae9f3c6a735fe371d4f27d8ab9
7
- data.tar.gz: e78abe01d7d0f49241b0d66e72d26055af2850c6f21032f9c3aa5b0de1a643d005cf15a83b78b6b66bd148172acade7469c2a59c10b6f911ec7f8ef6b71c7514
6
+ metadata.gz: 27b139e8651af7313c5939aee434eba4cdac13e38bfc793af1418e9eb37286b9345b365d9dbed93d264b50a91128305dd84ed230e0a29b7ecfe3ce238d2597c6
7
+ data.tar.gz: 8502aa86a83823dcedbe5be609d9f18448cc5c5f3cc2a8622eb1df3cc7008a15450fcc7d6ade6631ce092b0093e82e6189e368c89e8a8fa33229e059e94665ac
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env bash
2
+
3
+ APP_NAME=$1
4
+ APP_VERSION=$2
5
+ AWS_IMAGE_TAG="$AWS_ID.dkr.ecr.$AWS_REGION.amazonaws.com/$APP_NAME:$APP_VERSION"
6
+
7
+ eval $(aws ecr get-login --region "$AWS_REGION")
8
+ docker tag "$APP_NAME" "$AWS_IMAGE_TAG"
9
+ docker push "$AWS_IMAGE_TAG"
@@ -0,0 +1,12 @@
1
+ .bundle
2
+ .idea
3
+ .git
4
+ .sass-cache
5
+ .dockerignore
6
+ .DS_Store
7
+ .gitignore
8
+ .travis.yml
9
+ bin
10
+ Dockerfile
11
+ log
12
+ tmp
@@ -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.1
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