conjur-debify 0.9.2 → 0.10.0

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: 9490793d189cb32d4ddf3d97f257653a2bbfda75
4
- data.tar.gz: cf247c96de749df2b6f9284217185611b95a8817
3
+ metadata.gz: 9050f6d1916af0ad40a44f5c3b221a41aec80d9a
4
+ data.tar.gz: b5d2123fd18a9b3f7073f10ee93570bed63af45e
5
5
  SHA512:
6
- metadata.gz: 340df04883cd6216536d98d1531e3c75ede04639c8f8ff183ad0a2e119e7f7c9abf14353ecbef2a33d61cdb01f1846baabf3068f79e87a2de07ceabd9a75ac34
7
- data.tar.gz: 7e7472d0db4f21305ca9d75a6cedc28bef5a6938d4b2b3246d88efd161e1d84e6e068fe96d6073a92ffd855e41aeb8ebe0eeddc93dd125f83640b52ac0254d6c
6
+ metadata.gz: a02bb70d225835a4db407aa1067ee8558ff9a3774fbdeae934cb9f934755f693b33ad19b09ef0fae6543f2823edb27e1d0a02d195fb2f02d20029e21b5211c51
7
+ data.tar.gz: 0520cec8b75bbefa57f836f08fe34c41b90ab083724a18b0ac59fde6a3a4896c2af1b3950efb17ac174b6309aaca9c476ca9a8d7a2c14363dd4330ce4a3e7ecb
data/.rvmrc ADDED
@@ -0,0 +1,60 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # This is an RVM Project .rvmrc file, used to automatically load the ruby
4
+ # development environment upon cd'ing into the directory
5
+
6
+ # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
7
+ # Only full ruby name is supported here, for short names use:
8
+ # echo "rvm use 2.2.4@debify" > .rvmrc
9
+ environment_id="ruby-2.2.4@debify"
10
+
11
+ # Uncomment the following lines if you want to verify rvm version per project
12
+ # rvmrc_rvm_version="1.26.11 (latest)" # 1.10.1 seems like a safe start
13
+ # eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | __rvm_awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
14
+ # echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
15
+ # return 1
16
+ # }
17
+
18
+ # First we attempt to load the desired environment directly from the environment
19
+ # file. This is very fast and efficient compared to running through the entire
20
+ # CLI and selector. If you want feedback on which environment was used then
21
+ # insert the word 'use' after --create as this triggers verbose mode.
22
+ if [[ -d "${rvm_path:-$HOME/.rvm}/environments"
23
+ && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
24
+ then
25
+ \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
26
+ for __hook in "${rvm_path:-$HOME/.rvm}/hooks/after_use"*
27
+ do
28
+ if [[ -f "${__hook}" && -x "${__hook}" && -s "${__hook}" ]]
29
+ then \. "${__hook}" || true
30
+ fi
31
+ done
32
+ unset __hook
33
+ if (( ${rvm_use_flag:=1} >= 2 )) # display only when forced
34
+ then
35
+ if [[ $- == *i* ]] # check for interactive shells
36
+ then printf "%b" "Using: $(tput setaf 2 2>/dev/null)$GEM_HOME$(tput sgr0 2>/dev/null)\n" # show the user the ruby and gemset they are using in green
37
+ else printf "%b" "Using: $GEM_HOME\n" # don't use colors in non-interactive shells
38
+ fi
39
+ fi
40
+ else
41
+ # If the environment file has not yet been created, use the RVM CLI to select.
42
+ rvm --create "$environment_id" || {
43
+ echo "Failed to create RVM environment '${environment_id}'."
44
+ return 1
45
+ }
46
+ fi
47
+
48
+ # If you use bundler, this might be useful to you:
49
+ # if [[ -s Gemfile ]] && {
50
+ # ! builtin command -v bundle >/dev/null ||
51
+ # builtin command -v bundle | GREP_OPTIONS="" \command \grep $rvm_path/bin/bundle >/dev/null
52
+ # }
53
+ # then
54
+ # printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
55
+ # gem install bundler
56
+ # fi
57
+ # if [[ -s Gemfile ]] && builtin command -v bundle >/dev/null
58
+ # then
59
+ # bundle install | GREP_OPTIONS="" \command \grep -vE '^Using|Your bundle is complete'
60
+ # fi
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.10.0
2
+ * Upgrading Ruby for packaging from 2.0 to 2.2.4
3
+
1
4
  # 0.9.2
2
5
 
3
6
  * Print messages to stderr instead of stdout during packaging
data/lib/conjur/debify.rb CHANGED
@@ -125,7 +125,8 @@ command "clean" do |c|
125
125
  'Image' => image.id,
126
126
  'Binds' => [
127
127
  [ dir, "/src" ].join(':'),
128
- ]
128
+ ],
129
+ 'Privileged' => true
129
130
  }
130
131
  container = Docker::Container.create options
131
132
  begin
@@ -222,7 +223,8 @@ command "package" do |c|
222
223
 
223
224
  options = {
224
225
  'Cmd' => [ project_name, version ] + fpm_args,
225
- 'Image' => image.id
226
+ 'Image' => image.id,
227
+ 'Privileged' => true
226
228
  }
227
229
 
228
230
  container = Docker::Container.create options
@@ -357,7 +359,8 @@ RUN touch /etc/service/conjur/down
357
359
  [ dir, "/src/#{project_name}" ].join(':'),
358
360
  [ vendor_dir, "/src/#{project_name}/vendor" ].join(':'),
359
361
  [ dot_bundle_dir, "/src/#{project_name}/.bundle" ].join(':')
360
- ]
362
+ ],
363
+ 'Privileged' => true
361
364
  }
362
365
 
363
366
  container = Docker::Container.create(options)
@@ -1,5 +1,5 @@
1
1
  module Conjur
2
2
  module Debify
3
- VERSION = "0.9.2"
3
+ VERSION = "0.10.0"
4
4
  end
5
5
  end
@@ -1,4 +1,4 @@
1
- FROM ruby:2.0
1
+ FROM ruby:2.2.4
2
2
 
3
3
  RUN apt-get update -y && apt-get install -y build-essential
4
4
 
@@ -1,12 +1,11 @@
1
1
  function bundle_clean() {
2
- chmod og+r -R vendor/bundle # some gems have broken perms
2
+ ruby_version="$(ruby -v | grep -o '[0-9]\.[0-9]\.[0-9]')"
3
3
 
4
- gem install bundler --no-rdoc --no-ri --install-dir ./vendor/bundle/ruby/2.0.0
4
+ chmod og+r -R vendor/bundle # some gems have broken perms
5
5
 
6
- # some cleanup
7
- rm -rf vendor/bundle/ruby/2.0.0/cache
8
- rm -rf vendor/bundle/ruby/2.0.0/gems/*/{test,spec,examples,example,contrib,doc,ext,sample}
9
-
10
- # Ruby 2.0 is ruby2.0 in ubuntu, fix shebangs
11
- sed -i -e '1 c #!/usr/bin/env ruby2.0' vendor/bundle/ruby/2.0.0/bin/*
6
+ gem install bundler --no-rdoc --no-ri --install-dir ./vendor/bundle/ruby/${ruby_version}
7
+
8
+ # some cleanup
9
+ rm -rf vendor/bundle/ruby/${ruby_version}/cache
10
+ rm -rf vendor/bundle/ruby/${ruby_version}/gems/*/{test,spec,examples,example,contrib,doc,ext,sample}
12
11
  }
@@ -1,8 +1,12 @@
1
- FROM ruby:2.0
1
+ FROM alpine:3.3
2
2
 
3
- RUN curl -kL \
4
- -o /usr/bin/art \
5
- https://bintray.com/artifact/download/jfrog/artifactory-cli-go/1.2.1/artifactory-cli-linux-amd64/art && \
6
- chmod +x /usr/bin/art
3
+ RUN apk --update upgrade && \
4
+ apk add ca-certificates && \
5
+ update-ca-certificates && \
6
+ rm -rf /var/cache/apk/*
7
+
8
+ RUN wget -O /usr/bin/art \
9
+ https://bintray.com/artifact/download/jfrog/artifactory-cli-go/1.2.1/artifactory-cli-linux-amd64/art && \
10
+ chmod +x /usr/bin/art
7
11
 
8
12
  WORKDIR /src
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjur-debify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Gilpin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-01 00:00:00.000000000 Z
11
+ date: 2016-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli
@@ -118,6 +118,7 @@ extra_rdoc_files: []
118
118
  files:
119
119
  - .gitignore
120
120
  - .project
121
+ - .rvmrc
121
122
  - CHANGELOG.md
122
123
  - Gemfile
123
124
  - LICENSE.txt