mumukit 2.41.0 → 2.42.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mumukit/isolated_environment.rb +8 -9
- data/lib/mumukit/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13101751c0e9c513185940d8bc107133d1615fbb308b134c1d355673f99ad2a1
|
4
|
+
data.tar.gz: ba07a835f81ec89e070c0fefe7b9907bc7ecb5a100ff6d9b5c05577ecabda72b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2842baf00a47c75db0161f2a5bccbf293740c46310a845b219d983d081c314743573091550074b9c9ea174a894c273cd018b19dfeaf893e00b75c4019684482
|
7
|
+
data.tar.gz: 51618512772abaa8542ae5f58ea6a01b13f724fda80256baad645d1390cf99c647023d933a51823c27412d5de92e4eb925a9b2f198c2ea789fdeef6ea057aa9f
|
@@ -11,22 +11,21 @@ module Mumukit
|
|
11
11
|
dirnames = filenames.map { |it| Pathname.new(it).dirname }.uniq
|
12
12
|
|
13
13
|
binds = dirnames.map { |it| "#{it}:#{it}" }
|
14
|
-
volumes = Hash[dirnames.map { |it| [[it, {}]] }]
|
15
14
|
|
16
15
|
command = yield(*filenames)
|
17
16
|
command = command.split if command.is_a? String
|
18
17
|
|
19
|
-
configure_container! command, binds
|
18
|
+
configure_container! command, binds
|
20
19
|
end
|
21
20
|
|
22
|
-
def configure_container!(command, binds
|
21
|
+
def configure_container!(command, binds)
|
23
22
|
self.container = Docker::Container.create(
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
23
|
+
image: Mumukit.config.docker_image,
|
24
|
+
cmd: command,
|
25
|
+
hostConfig: {
|
26
|
+
binds: binds
|
27
|
+
},
|
28
|
+
networkDisabled: true)
|
30
29
|
end
|
31
30
|
|
32
31
|
def run!
|
data/lib/mumukit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumukit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.42.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Leonardo Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1.
|
159
|
+
version: '1.25'
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 1.
|
166
|
+
version: '1.25'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: excon
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|