donce 0.6.0 → 0.7.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 +4 -4
- data/Gemfile.lock +4 -4
- data/README.md +1 -1
- data/donce.gemspec +1 -1
- data/lib/donce.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5d852871b216457b9f3f4490f2d99437342c1cacfb984ea02db4d3b8ad15c6b2
|
|
4
|
+
data.tar.gz: 64a0b65f60ba9c57a22e96c51f2fcfb7061b9ec2258423d83c6a5dd5939274eb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7a467ad471d9acc92d0379cc84c24f168e90ba5f85c2ab9255df51f3dec36f3cc7978e186484f484e7acaf45a80a05bf88997083d97ea390c7c5cef3b9767ea0
|
|
7
|
+
data.tar.gz: 7cc78fd133ccd9ce2da05f5a130eb802b274c0ab38cc94fc8d3e3218adc3c47a7520e8a3d612d6177f3c964653609cf147d2b1e127b76f7c90eced7a925e6f0e
|
data/Gemfile.lock
CHANGED
|
@@ -41,11 +41,11 @@ GEM
|
|
|
41
41
|
parser (3.3.10.1)
|
|
42
42
|
ast (~> 2.4.1)
|
|
43
43
|
racc
|
|
44
|
-
prism (1.
|
|
44
|
+
prism (1.9.0)
|
|
45
45
|
psych (5.3.1)
|
|
46
46
|
date
|
|
47
47
|
stringio
|
|
48
|
-
qbash (0.7.
|
|
48
|
+
qbash (0.7.2)
|
|
49
49
|
backtrace (> 0)
|
|
50
50
|
elapsed (> 0)
|
|
51
51
|
loog (> 0)
|
|
@@ -59,7 +59,7 @@ GEM
|
|
|
59
59
|
tsort
|
|
60
60
|
regexp_parser (2.11.3)
|
|
61
61
|
rexml (3.4.4)
|
|
62
|
-
rubocop (1.
|
|
62
|
+
rubocop (1.84.1)
|
|
63
63
|
json (~> 2.3)
|
|
64
64
|
language_server-protocol (~> 3.17.0.2)
|
|
65
65
|
lint_roller (~> 1.1.0)
|
|
@@ -67,7 +67,7 @@ GEM
|
|
|
67
67
|
parser (>= 3.3.0.2)
|
|
68
68
|
rainbow (>= 2.2.2, < 4.0)
|
|
69
69
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
70
|
-
rubocop-ast (>= 1.
|
|
70
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
71
71
|
ruby-progressbar (~> 1.7)
|
|
72
72
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
73
73
|
rubocop-ast (1.49.0)
|
data/README.md
CHANGED
|
@@ -44,7 +44,7 @@ If you set `DONCE_SUDO` environment variable to `true`,
|
|
|
44
44
|
Host group/user IDs are passed to the build, as `GID` and `UID` args.
|
|
45
45
|
You can use them, when you copy resources into the image, for example:
|
|
46
46
|
|
|
47
|
-
```
|
|
47
|
+
```dockerfile
|
|
48
48
|
FROM ubuntu
|
|
49
49
|
ARG UID
|
|
50
50
|
ARG GID
|
data/donce.gemspec
CHANGED
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
|
9
9
|
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
|
|
10
10
|
s.required_ruby_version = '>=3.0'
|
|
11
11
|
s.name = 'donce'
|
|
12
|
-
s.version = '0.
|
|
12
|
+
s.version = '0.7.0'
|
|
13
13
|
s.license = 'MIT'
|
|
14
14
|
s.summary = 'Builds and starts temporary Docker containers'
|
|
15
15
|
s.description =
|
data/lib/donce.rb
CHANGED
|
@@ -48,7 +48,7 @@ module Kernel
|
|
|
48
48
|
# The name of the localhost inside Docker container.
|
|
49
49
|
# @return [String] The hostname
|
|
50
50
|
def donce_host
|
|
51
|
-
|
|
51
|
+
'host.docker.internal'
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
# Build Docker image (or use existing one), run Docker container, and then clean up.
|
|
@@ -130,7 +130,7 @@ module Kernel
|
|
|
130
130
|
'run',
|
|
131
131
|
('--detach' if block_given?),
|
|
132
132
|
'--name', Shellwords.escape(container),
|
|
133
|
-
|
|
133
|
+
"--add-host #{donce_host}:host-gateway",
|
|
134
134
|
args,
|
|
135
135
|
env.map { |k, v| "--env #{Shellwords.escape("#{k}=#{v}")}" }.join(' '),
|
|
136
136
|
ports.map { |k, v| "--publish #{Shellwords.escape("#{k}:#{v}")}" }.join(' '),
|