consul_bridge 0.1.2 → 0.1.3

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: b7a3236dc1a4f626e3d05b5623cc0ffd8ac68cfc
4
- data.tar.gz: 0825eefa1db21df45fb39340275df04e182131fb
3
+ metadata.gz: 8d5e336fda7af83d8a99256a2f6f9a42d5784d2f
4
+ data.tar.gz: 178f338bdc1adb7a6de9d2629c6927de690b58c2
5
5
  SHA512:
6
- metadata.gz: af77e4bf8ddc95fb33b8128647bac7a798c9f62ff608f873495134c4d5dc02b28f2ab9986d8927220a9d1a3d0bd52d0dc48bd512f5c03bb657a7f706f9f89cca
7
- data.tar.gz: 2d3f4d36af4dc8b94d1b5a142a0314720ce05a6e7f14a036add11255297ddd15834ff9a4b8a2efac579d2c01cc38773bdf9991c04385cc3476a551ea04ca1e25
6
+ metadata.gz: 657f2a2491dbe299d2ec49d962e355dcaf9545ed2882e6526d42b2b1b1e0b13501a9f05326c3c6cdcc7d13c97d50388c1ec84b87b7b9553c9ef4e84368b0f92c
7
+ data.tar.gz: 8a06d20d7e62c518448a77e51c05932d5a82213faa51104177c241790360a4b94e24df0b369efab9af6d433f63e650ba31283162932b3334796d54215c6bd66b
data/Dockerfile CHANGED
@@ -4,28 +4,15 @@ MAINTAINER Ryan Schlesinger <ryan@outstand.com>
4
4
  RUN addgroup bridge && \
5
5
  adduser -S -G bridge bridge
6
6
 
7
- ENV CONSUL_BRIDGE_VERSION=0.1.1
8
-
9
- # Use this to install an official release
10
- RUN apk --no-cache add libxml2 libxslt \
11
- && apk --no-cache add --virtual build-dependencies build-base libxml2-dev libxslt-dev \
12
- && gem install nokogiri -- --use-system-libraries \
13
- && gem install consul_bridge -v ${CONSUL_BRIDGE_VERSION} \
14
- && apk del build-dependencies
15
-
16
- # Use this to install a development version
17
- # RUN apk --no-cache add build-base libxml2-dev libxslt-dev
18
- # COPY Gemfile consul_bridge.gemspec /consul_bridge/
19
- # COPY lib/consul_bridge/version.rb /consul_bridge/lib/consul_bridge/
20
- # RUN cd /consul_bridge \
21
- # && bundle config build.nokogiri --use-system-libraries \
22
- # && bundle install
23
- # COPY . /consul_bridge/
24
- # RUN cd /consul_bridge \
25
- # && bundle exec rake install
7
+ RUN apk --no-cache add build-base libxml2-dev libxslt-dev
8
+ COPY . /consul_bridge/
9
+ RUN cd /consul_bridge \
10
+ && bundle config build.nokogiri --use-system-libraries \
11
+ && bundle install \
12
+ && bundle exec rake install
26
13
 
27
14
  COPY docker-entrypoint.sh /docker-entrypoint.sh
28
15
 
29
16
  ENV DUMB_INIT_SETSID 0
30
17
  ENTRYPOINT ["/docker-entrypoint.sh"]
31
- CMD []
18
+ CMD ["consul_bridge"]
@@ -0,0 +1,19 @@
1
+ FROM outstand/ruby-base:2.2.4-alpine
2
+ MAINTAINER Ryan Schlesinger <ryan@outstand.com>
3
+
4
+ RUN addgroup bridge && \
5
+ adduser -S -G bridge bridge
6
+
7
+ ENV CONSUL_BRIDGE_VERSION=0.1.2
8
+
9
+ RUN apk --no-cache add libxml2 libxslt \
10
+ && apk --no-cache add --virtual build-dependencies build-base libxml2-dev libxslt-dev \
11
+ && gem install nokogiri -- --use-system-libraries \
12
+ && gem install consul_bridge -v ${CONSUL_BRIDGE_VERSION} \
13
+ && apk del build-dependencies
14
+
15
+ COPY docker-entrypoint.sh /docker-entrypoint.sh
16
+
17
+ ENV DUMB_INIT_SETSID 0
18
+ ENTRYPOINT ["/docker-entrypoint.sh"]
19
+ CMD ["consul_bridge"]
data/docker-entrypoint.sh CHANGED
@@ -1,8 +1,12 @@
1
1
  #!/bin/dumb-init /bin/sh
2
2
  set -e
3
3
 
4
- if [ "$(id -u)" = '0' ] && [ "$1" != 'ash' ]; then
5
- exec gosu bridge consul_bridge "$@"
4
+ if consul_bridge help "$1" 2>&1 | grep -q "consul_bridge $1"; then
5
+ set -- consul_bridge "$@"
6
+ fi
7
+
8
+ if [ "$1" = 'consul_bridge' ]; then
9
+ set -- gosu bridge "$@"
6
10
  fi
7
11
 
8
12
  exec "$@"
@@ -4,6 +4,7 @@ module ConsulBridge
4
4
  class CLI < Thor
5
5
  desc 'version', 'Print out the version string'
6
6
  def version
7
+ require 'consul_bridge/version'
7
8
  say ConsulBridge::VERSION.to_s
8
9
  end
9
10
 
@@ -1,3 +1,3 @@
1
1
  module ConsulBridge
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: consul_bridge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Schlesinger
@@ -146,6 +146,7 @@ extra_rdoc_files: []
146
146
  files:
147
147
  - ".gitignore"
148
148
  - Dockerfile
149
+ - Dockerfile.release
149
150
  - Gemfile
150
151
  - README.md
151
152
  - Rakefile