shipitron 1.3.1 → 1.3.2
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffcd046204b230e7282508063bb33a58c1c68e73c4e7c8546ea15cfc48d6a2f7
|
4
|
+
data.tar.gz: 38ddb0adc7677e27c9afcee285d09358afb60df254994d456319bf904d518091
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28b568e8e1a5fa928beeeaf2ff1e00415671712c9415dacc317581d10d79bb320bbc05f07d9d1c7b528db4a5523f9568cb9dac33d2bc5607165b43d1896d3cc4
|
7
|
+
data.tar.gz: fcd1597703388b9bf8be61ab98e03faabbcf17bab98a06895344e14cb41f3ee412941fe2a27257425c3db646762130500e592150c53e35520939d04240f77fe6
|
data/Dockerfile
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
FROM ruby:2.7.
|
1
|
+
FROM ruby:2.7.2-alpine as cache
|
2
2
|
COPY cache/ /tmp/
|
3
3
|
RUN cd /usr/local/bundle && \
|
4
4
|
([ -f /tmp/bundler-data.tar.gz ] && \
|
5
5
|
tar -zxf /tmp/bundler-data.tar.gz && \
|
6
6
|
rm /tmp/bundler-data.tar.gz) || true
|
7
7
|
|
8
|
-
FROM ruby:2.7.
|
8
|
+
FROM ruby:2.7.2-alpine
|
9
9
|
LABEL maintainer="Ryan Schlesinger <ryan@outstand.com>"
|
10
10
|
|
11
11
|
RUN addgroup -S shipitron && \
|
data/Dockerfile.release
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
FROM ruby:2.7.
|
1
|
+
FROM ruby:2.7.2-alpine
|
2
2
|
LABEL maintainer="Ryan Schlesinger <ryan@outstand.com>"
|
3
3
|
|
4
4
|
RUN addgroup -S shipitron && \
|
@@ -8,7 +8,7 @@ RUN addgroup -S shipitron && \
|
|
8
8
|
|
9
9
|
RUN apk add --no-cache \
|
10
10
|
ca-certificates \
|
11
|
-
openssl \
|
11
|
+
openssl-dev \
|
12
12
|
tini \
|
13
13
|
su-exec \
|
14
14
|
build-base \
|
@@ -18,7 +18,8 @@ RUN apk add --no-cache \
|
|
18
18
|
bash \
|
19
19
|
curl \
|
20
20
|
wget \
|
21
|
-
jq
|
21
|
+
jq \
|
22
|
+
cmake
|
22
23
|
|
23
24
|
ENV ECR_CREDENTIAL_HELPER_VERSION 0.4.0
|
24
25
|
RUN cd /usr/local/bin && \
|
@@ -44,7 +45,7 @@ USER root
|
|
44
45
|
|
45
46
|
WORKDIR /app
|
46
47
|
|
47
|
-
ENV SHIPITRON_VERSION=1.3.
|
48
|
+
ENV SHIPITRON_VERSION=1.3.2
|
48
49
|
|
49
50
|
RUN gem install shipitron -v ${SHIPITRON_VERSION} && \
|
50
51
|
mkdir -p /home/shipitron/.ssh && \
|
@@ -30,13 +30,12 @@ module Shipitron
|
|
30
30
|
|
31
31
|
service_def = Smash.load(
|
32
32
|
path.to_s,
|
33
|
-
parser: MustacheYamlParser
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
)
|
33
|
+
parser: MustacheYamlParser,
|
34
|
+
context: {
|
35
|
+
cluster: cluster_name,
|
36
|
+
revision: nil, # ECS will default to latest ACTIVE
|
37
|
+
count: service_count
|
38
|
+
}
|
40
39
|
).merge(
|
41
40
|
client_token: SecureRandom.uuid
|
42
41
|
)
|
@@ -3,20 +3,24 @@ require 'yaml'
|
|
3
3
|
|
4
4
|
module Shipitron
|
5
5
|
class MustacheYamlParser
|
6
|
-
def initialize(
|
7
|
-
|
6
|
+
def initialize(file_path, options = {})
|
7
|
+
@context = options[:context]
|
8
|
+
@view = options[:view]
|
9
|
+
|
10
|
+
if (@context.nil? && @view.nil?) || (!@context.nil? && !@view.nil?)
|
8
11
|
raise ArgumentError, 'Either context or view required'
|
9
12
|
end
|
10
13
|
|
11
|
-
@
|
12
|
-
@view = view
|
13
|
-
|
14
|
+
@file_path = file_path.is_a?(Pathname) ? file_path.to_s : file_path
|
14
15
|
@view ||= Mustache
|
15
16
|
end
|
16
17
|
|
17
|
-
def perform
|
18
|
-
|
19
|
-
|
18
|
+
def perform
|
19
|
+
YAML.load(@view.render(File.read(@file_path), @context))
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.perform(file_path, options = {})
|
23
|
+
new(file_path, options).perform
|
20
24
|
end
|
21
25
|
end
|
22
26
|
end
|
data/lib/shipitron/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shipitron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Schlesinger
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -290,7 +290,7 @@ dependencies:
|
|
290
290
|
- - "~>"
|
291
291
|
- !ruby/object:Gem::Version
|
292
292
|
version: '0.4'
|
293
|
-
description:
|
293
|
+
description:
|
294
294
|
email:
|
295
295
|
- ryan@outstand.com
|
296
296
|
executables:
|
@@ -365,7 +365,7 @@ files:
|
|
365
365
|
homepage: https://github.com/outstand/shipitron
|
366
366
|
licenses: []
|
367
367
|
metadata: {}
|
368
|
-
post_install_message:
|
368
|
+
post_install_message:
|
369
369
|
rdoc_options: []
|
370
370
|
require_paths:
|
371
371
|
- lib
|
@@ -380,8 +380,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
380
380
|
- !ruby/object:Gem::Version
|
381
381
|
version: '0'
|
382
382
|
requirements: []
|
383
|
-
rubygems_version: 3.1.
|
384
|
-
signing_key:
|
383
|
+
rubygems_version: 3.1.4
|
384
|
+
signing_key:
|
385
385
|
specification_version: 4
|
386
386
|
summary: A deployment tool for use with Docker and ECS.
|
387
387
|
test_files: []
|