pinject 0.1.6 → 0.1.7

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: 6271c0367bf816f2f1729deca146efbc20a80fc2d2e2850fb55f13d15aaf3a1a
4
- data.tar.gz: f8dda7a4f39e9a70fbaef42e2a4d02418cea19dcea8efaf56e0c90576cb3516d
3
+ metadata.gz: 19ddcd032bf4c9affc73250e33d5ab22afea6c679b8cccb6011ad586b5c76d2a
4
+ data.tar.gz: 0566bbf5a3e3f9276f9c49d275286a194906f2471ec213539167d35673504b86
5
5
  SHA512:
6
- metadata.gz: 107296960c0fa9b257c205011218f12f35c00e837749877474481e7a8da2eccb7fe6707df8c503ccad24ac17c13a932014eb99e48dc88cd16107fe2b3ad52619
7
- data.tar.gz: 83bed08e3402fb1779e4878ed59fd35951df4dfdc88fe6eba1ea5241c69401ba7439d70ae4bd3d7f4b4d9152c195d35bb3bb072d7a7baa5a8fcd1545a7918c23
6
+ metadata.gz: a720988e622493ab9b31b715db9ffb2415ef4f909eae670eec7ac113cc7ac264ed7801e6d5d2d7a11040807a7874378f59fa92a874dd058c0d6710a5816f467f
7
+ data.tar.gz: 9e269983fc58c5e4771fbc9d49ecd3eb6027789d19f2733b3853d3ca9c2d7b00028e670882ea3db6d5dcb9cf5f552c9016cd3829109d2d7003550a66bf8a3849
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pinject (0.1.5)
4
+ pinject (0.1.6)
5
5
  docker-api
6
6
 
7
7
  GEM
@@ -11,7 +11,7 @@ GEM
11
11
  docker-api (2.2.0)
12
12
  excon (>= 0.47.0)
13
13
  multi_json
14
- excon (0.89.0)
14
+ excon (0.92.4)
15
15
  multi_json (1.15.0)
16
16
  parallel (1.21.0)
17
17
  parser (3.0.3.2)
@@ -35,6 +35,7 @@ GEM
35
35
  unicode-display_width (2.1.0)
36
36
 
37
37
  PLATFORMS
38
+ arm64-darwin-21
38
39
  x86_64-darwin-20
39
40
  x86_64-linux
40
41
 
data/example.rb ADDED
@@ -0,0 +1,4 @@
1
+ require './lib/pinject'
2
+ image = Pinject::Docker.new('mysql:8', log: true)
3
+ inject_image = image.inject_build('pyama:test') # run apt-get upgrade
4
+ # inject_image.push
@@ -105,6 +105,13 @@ module Pinject
105
105
  ['apt-get update -qqy', 'apt-get upgrade -qqy', 'apt-get clean', 'rm -rf /var/lib/apt/lists/*']
106
106
  when 'alpine'
107
107
  ['apk update', 'apk upgrade --no-cache']
108
+ when 'oracle'
109
+ case version
110
+ when '7'
111
+ ['yum update -y']
112
+ when '8'
113
+ ['microdnf update -y']
114
+ end
108
115
  when 'centos'
109
116
  case version
110
117
  when '5', '6'
@@ -126,6 +133,9 @@ module Pinject
126
133
  elif [ -f /etc/debian_version ]; then
127
134
  OS=debian
128
135
  VER=`cat /etc/debian_version | awk -F. '{ print $1 }'`
136
+ elif [ -f /etc/oracle-release ]; then
137
+ OS=oracle
138
+ VER=`cat /etc/oracle-release | sed -e 's/.*\\s\\([0-9]\\)\\..*/\\1/'`
129
139
  elif [ -f /etc/redhat-release ]; then
130
140
  OS=centos
131
141
  VER=`cat /etc/redhat-release | sed -e 's/.*\\s\\([0-9]\\)\\..*/\\1/'`
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pinject
4
- VERSION = '0.1.6'
4
+ VERSION = '0.1.7'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pinject
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - pyama
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-18 00:00:00.000000000 Z
11
+ date: 2022-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docker-api
@@ -46,6 +46,7 @@ files:
46
46
  - Rakefile
47
47
  - bin/console
48
48
  - bin/setup
49
+ - example.rb
49
50
  - exe/pinject
50
51
  - lib/pinject.rb
51
52
  - lib/pinject/docker.rb
@@ -59,7 +60,7 @@ metadata:
59
60
  homepage_uri: https://github.com/pyama86/pinject
60
61
  source_code_uri: https://github.com/pyama86/pinject
61
62
  changelog_uri: https://github.com/pyama86/pinject/CHANGELOG.md
62
- post_install_message:
63
+ post_install_message:
63
64
  rdoc_options: []
64
65
  require_paths:
65
66
  - lib
@@ -74,8 +75,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
75
  - !ruby/object:Gem::Version
75
76
  version: '0'
76
77
  requirements: []
77
- rubygems_version: 3.2.32
78
- signing_key:
78
+ rubygems_version: 3.3.3
79
+ signing_key:
79
80
  specification_version: 4
80
81
  summary: inject package update commands to your docker images
81
82
  test_files: []