conjur-debify 0.11.0 → 1.0.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: 78917789d9da713b2e98a491456b69d07252e735
4
- data.tar.gz: 61ac786410504111370c50e72c7b86074e69168f
3
+ metadata.gz: 45c3f31195f67e19a4a873ae02840341359c7cae
4
+ data.tar.gz: d9c911de42f4f6d74b8c914ea6b0270847aba71c
5
5
  SHA512:
6
- metadata.gz: 5eefdfdae70c3fa8d5ba418751e2931d2b3e951b13f256c4a2e5c5ee0dd79225506e4b95784c8f43906fdd856ffce7d4bf74e8b8b21956291ae45a9800a4789d
7
- data.tar.gz: 7d577222d5d3dfb5777fdfa0ff13a3615142d4a8b688038c1604a23141021cd838c8676479420484a3b759276e67077d3c20625b028f6b4d578a4340593c680c
6
+ metadata.gz: 68eabdc03f12982d3f617138c65ee2692574a87ec868b28d5cac1d31457803ca27870686f24509b8c1d145c018e77d9154d93aa68dda97443c1a1767ba91fba7
7
+ data.tar.gz: 6100c22bdac5930aca377b2191822da5c229965a197f5a4cb6fdee002ab52bb1ec32045bd24b9f99cad3ef755531ac83271fbc4f28057c7323792eeee656023a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # 1.0.0
2
+
3
+ * Base image used for packaging on Ubuntu 14.04
4
+ * Install ruby2.2 and related packages
5
+
6
+ # 0.11.1
7
+
8
+ * Add `name` and `Workingdir` options to the sandbox container.
9
+
1
10
  # 0.11.0
2
11
 
3
12
  * Add `debify sandbox`.
data/lib/conjur/debify.rb CHANGED
@@ -483,8 +483,9 @@ command "sandbox" do |c|
483
483
  FileUtils.mkdir_p dot_bundle_dir
484
484
 
485
485
  options = {
486
+ 'name' => "#{project_name}-sandbox",
486
487
  'Image' => appliance_image.id,
487
- 'Name' => "#{project_name}-sandbox",
488
+ 'WorkingDir' => "/src/#{project_name}",
488
489
  'Env' => [
489
490
  "CONJUR_AUTHN_LOGIN=admin",
490
491
  "CONJUR_ENV=appliance",
@@ -496,19 +497,14 @@ command "sandbox" do |c|
496
497
  [ dir, "/src/#{project_name}" ].join(':'),
497
498
  [ vendor_dir, "/src/#{project_name}/vendor" ].join(':'),
498
499
  [ dot_bundle_dir, "/src/#{project_name}/.bundle" ].join(':')
499
- ].concat(Array(cmd_options[:bind]))
500
+ ] + Array(cmd_options[:bind])
500
501
  }
501
502
  options['Privileged'] = true if Docker.version['Version'] >= '1.10.0'
502
-
503
+
503
504
  container = Docker::Container.create(options)
504
505
  $stdout.puts container.id
505
-
506
- spawn("docker logs -f #{container.id}", [ :out, :err ] => $stderr).tap do |pid|
507
- Process.detach pid
508
- end
509
506
  container.start
510
507
 
511
- container_command container, %w(apt-get install -y git)
512
508
  wait_for_conjur appliance_image, container
513
509
  end
514
510
  end
@@ -1,5 +1,5 @@
1
1
  module Conjur
2
2
  module Debify
3
- VERSION = "0.11.0"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -1,9 +1,28 @@
1
- FROM ruby:2.2.4
1
+ # Build from the same version of ubuntu as phusion/baseimage
2
+ FROM ubuntu:14.04
2
3
 
3
- RUN apt-get update -y && apt-get install -y build-essential
4
+ RUN apt-get update -y && \
5
+ apt-get install -y software-properties-common && \
6
+ apt-add-repository -y ppa:brightbox/ruby-ng && \
7
+ apt-get update -y && \
8
+ apt-get install -y build-essential git libpq5 libpq-dev ruby2.2 ruby2.2-dev
9
+
10
+
11
+ # Configure bundler and gem the way the ruby:2.2 Dockerfile does, as of
12
+ # https://github.com/docker-library/ruby/commit/c88f3a67da720bfa9fb1717960d90fd5db11c757
13
+ ENV BUNDLER_VERSION 1.11.2
4
14
 
5
15
  RUN gem install --no-rdoc --no-ri bundler fpm
6
16
 
17
+ ENV GEM_HOME /usr/local/bundle
18
+ ENV BUNDLE_PATH="$GEM_HOME" \
19
+ BUNDLE_BIN="$GEM_HOME/bin" \
20
+ BUNDLE_SILENCE_ROOT_WARNING=1 \
21
+ BUNDLE_APP_CONFIG="$GEM_HOME"
22
+ ENV PATH $BUNDLE_BIN:$PATH
23
+ RUN mkdir -p "$GEM_HOME" "$BUNDLE_BIN" \
24
+ && chmod 777 "$GEM_HOME" "$BUNDLE_BIN"
25
+
7
26
  RUN mkdir /src
8
27
 
9
28
  COPY debify_utils.sh /
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.11.0
4
+ version: 1.0.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-14 00:00:00.000000000 Z
11
+ date: 2016-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli