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 +4 -4
- data/Dockerfile +7 -20
- data/Dockerfile.release +19 -0
- data/docker-entrypoint.sh +6 -2
- data/lib/consul_bridge/cli.rb +1 -0
- data/lib/consul_bridge/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d5e336fda7af83d8a99256a2f6f9a42d5784d2f
|
4
|
+
data.tar.gz: 178f338bdc1adb7a6de9d2629c6927de690b58c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
&&
|
12
|
-
&&
|
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"]
|
data/Dockerfile.release
ADDED
@@ -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
|
5
|
-
|
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 "$@"
|
data/lib/consul_bridge/cli.rb
CHANGED
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.
|
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
|