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 +4 -4
- data/.release_history.yml +4 -0
- data/Dockerfile.dockerun +26 -7
- data/Gemfile.lock +2 -2
- data/dockerun.gemspec +1 -1
- data/exe/dockerun +1 -1
- data/lib/dockerun/version.rb +1 -1
- data/template/Dockerfile_general.erb +3 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b503d6c7f3ab86e367df67420e710ef7fa798ec44417ccaf8ae1107182cff98
|
4
|
+
data.tar.gz: cfbfc06965d340a63aebeddcf7c061606742b01c2d31370f84d5f2b22a699a4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0495cfa662fc8d47b4c7793b08730c3729a2b4b0b620ae854d42a8a9226cb401d5aa114493d0c9d01360bd0f3504ed8d2b9e2b5a581d3108406f3cf04608533
|
7
|
+
data.tar.gz: 3c2e90089701e9b521a1828d992b047e70c09b25aa618d33c91b2f44c0497d7cbf1728a4cadc52ce3868120517bb7379f3272aa2ff684349799e138322d7be3f
|
data/.release_history.yml
CHANGED
data/Dockerfile.dockerun
CHANGED
@@ -1,9 +1,15 @@
|
|
1
1
|
|
2
|
-
FROM
|
3
|
-
LABEL version="0.1"
|
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
|
-
|
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
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'
|
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
data/lib/dockerun/version.rb
CHANGED
@@ -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.
|
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:
|
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:
|
96
|
+
version: 0.3.1
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: devops_assist
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|