dockerun 0.3.0 → 0.3.3

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: 1ccd48be4fd82ee86c3b6deb93c7a8be20cbbb59a2ec78787a61a37a9475efee
4
- data.tar.gz: 45a7edef9b777709cd1fd00023fcc8b85b936a4ac9bd3c6ff33e947e3aa0f670
3
+ metadata.gz: 2b503d6c7f3ab86e367df67420e710ef7fa798ec44417ccaf8ae1107182cff98
4
+ data.tar.gz: cfbfc06965d340a63aebeddcf7c061606742b01c2d31370f84d5f2b22a699a4d
5
5
  SHA512:
6
- metadata.gz: ca7b6356dfda231e2a6df168dbc56b7ce4dd6c89abf2021f131a9275161ddfb1fe0565508e203005b42a3a9e9f0fc97c87169480694aece85a1555232a4a4f7f
7
- data.tar.gz: e2633ace5cc2be1e2c38fa6fedce959dfbc56897db28f67254ab9224db35f115ab5071f9c28227ce43851eef8a5292cb5d0929a463118908649ff8451fc7c200
6
+ metadata.gz: a0495cfa662fc8d47b4c7793b08730c3729a2b4b0b620ae854d42a8a9226cb401d5aa114493d0c9d01360bd0f3504ed8d2b9e2b5a581d3108406f3cf04608533
7
+ data.tar.gz: 3c2e90089701e9b521a1828d992b047e70c09b25aa618d33c91b2f44c0497d7cbf1728a4cadc52ce3868120517bb7379f3272aa2ff684349799e138322d7be3f
data/.release_history.yml CHANGED
@@ -46,3 +46,7 @@ dockerun:
46
46
  :timestamp: 1680590987.4122827
47
47
  - :version: 0.2.2
48
48
  :timestamp: 1680591256.174102
49
+ - :version: 0.3.0
50
+ :timestamp: 1680596019.8479326
51
+ - :version: 0.3.1
52
+ :timestamp: 1680596515.6388657
data/Dockerfile.dockerun CHANGED
@@ -1,9 +1,15 @@
1
1
 
2
- FROM jruby:9.4.0-jdk11
3
- LABEL version="0.1" description="Dockerfile generated by dockerun" maintainer="chris"
2
+ FROM ruby:2.7.6
3
+ LABEL version="0.1"
4
+ LABEL maintainer="chris"
5
+ LABEL description="Dockerfile generated by dockerun"
6
+ LABEL dockerun-info="https://github.com/chrisliaw/dockerun"
7
+
8
+
9
+ RUN apt-get update && apt-get install -y sudo git curl build-essential vim
10
+
11
+
4
12
 
5
- # Dockerfile entries here
6
- RUN apt-get update && apt-get install -y sudo
7
13
 
8
14
  RUN groupadd -f -g 1000 chris && \
9
15
  useradd -u 1000 -g 1000 -m chris && \
@@ -12,8 +18,21 @@ RUN groupadd -f -g 1000 chris && \
12
18
 
13
19
  USER chris
14
20
 
15
- RUN sudo apt-get install -y curl git
21
+ # from this point onwards, sudo is required for privileaged operation
22
+ #RUN sudo apt-get install -y curl build-essential
23
+
24
+
25
+
26
+
27
+ COPY on_docker_config /tmp/docker_init.rb
28
+ RUN ruby /tmp/docker_init.rb
29
+
30
+
31
+
32
+ WORKDIR /opt
33
+
34
+
35
+ # other Dockerfile entries starts here
16
36
 
17
- # ENTRYPOINT [ "/bin/bash" ]
18
- # CMD [ "/bin/bash", "--login" ]
19
37
  CMD [ "/bin/bash", "--login" ]
38
+
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dockerun (0.3.0)
4
+ dockerun (0.3.3)
5
5
  colorize
6
- docker-cli
6
+ docker-cli (>= 0.3.1)
7
7
  teLogger
8
8
  toolrack
9
9
  tty-command
data/dockerun.gemspec CHANGED
@@ -37,7 +37,7 @@ Gem::Specification.new do |spec|
37
37
  spec.add_dependency 'tty-option' #, "> 0.2.0"
38
38
  spec.add_dependency 'colorize'
39
39
 
40
- spec.add_dependency 'docker-cli' #, ">= 0.1.2"
40
+ spec.add_dependency 'docker-cli', ">= 0.3.1"
41
41
 
42
42
  spec.add_development_dependency 'devops_assist'
43
43
 
data/exe/dockerun CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'bundler/setup'
3
+ #require 'bundler/setup'
4
4
  require 'toolrack'
5
5
  include TR::CondUtils
6
6
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dockerun
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.3"
5
5
  end
@@ -24,12 +24,11 @@ USER <%= @user_login %>
24
24
  # from this point onwards, sudo is required for privileaged operation
25
25
  #RUN sudo apt-get install -y curl build-essential
26
26
 
27
- <% if not (@docker_init_file_path.nil? or @docker_init_file_path.empty?) %>
28
- COPY <%= File.basename(@docker_init_file_path) %> /home/<%= @user_login %>/docker_init.rb
29
- #RUN chown <%= @user_login %>:<%= @user_group_name %> /home/<%= @user_login %>/docker_init.rb
30
- RUN ruby /home/<%= @user_login %>/docker_init.rb
31
27
  <% end %>
32
28
 
29
+ <% if not (@docker_init_file_path.nil? or @docker_init_file_path.empty?) %>
30
+ COPY <%= File.basename(@docker_init_file_path) %> /tmp/docker_init.rb
31
+ RUN ruby /tmp/docker_init.rb
33
32
  <% end %>
34
33
 
35
34
  <% if not_empty?(@working_dir) %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dockerun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: 0.3.1
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: 0.3.1
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: devops_assist
99
99
  requirement: !ruby/object:Gem::Requirement