libis-format 1.2.7 → 1.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +7 -1
- data/lib/libis/format/cli/prompt_helper.rb +32 -24
- data/lib/libis/format/converter/audio_converter.rb +23 -30
- data/lib/libis/format/identifier.rb +1 -1
- data/lib/libis/format/tool/extension_identification.rb +23 -25
- data/lib/libis/format/tool/fido.rb +22 -27
- data/lib/libis/format/tool/file_tool.rb +11 -24
- data/lib/libis/format/tool/fop_pdf.rb +19 -20
- data/lib/libis/format/tool/identification_tool.rb +34 -36
- data/lib/libis/format/tool/msg_to_pdf.rb +66 -111
- data/lib/libis/format/tool/office_to_pdf.rb +24 -21
- data/lib/libis/format/tool/pdf_split.rb +19 -20
- data/lib/libis/format/tool/pdf_to_pdfa.rb +32 -30
- data/lib/libis/format/tool/pdfa_validator.rb +16 -14
- data/lib/libis/format/version.rb +3 -1
- data/libis-format.gemspec +23 -22
- data/tools/fop/fop.bat +75 -75
- data/tools/fop/fop.cmd +31 -31
- data/tools/fop/fop.js +341 -341
- data/tools/fop/lib/avalon-framework.NOTICE.TXT +11 -11
- data/tools/fop/lib/xml-apis.LICENSE-SAX.html +17 -17
- data/tools/fop/lib/xml-apis.LICENSE.DOM-documentation.html +74 -74
- data/tools/fop/lib/xml-apis.LICENSE.DOM-software.html +66 -66
- metadata +69 -79
- data/.coveralls.yml +0 -2
- data/.gitignore +0 -21
- data/.travis.yml +0 -74
- data/.vscode/launch.json +0 -21
- data/Rakefile +0 -12
- data/base/Dockerfile +0 -33
- data/base/Dockerfile.alpine +0 -20
- data/base/Dockerfile.rvm +0 -56
- data/base/rework_path +0 -25
- data/docker_cfg.yml +0 -1
metadata
CHANGED
@@ -1,205 +1,205 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libis-format
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kris Dekeyser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: chromaprint
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
20
|
-
type: :
|
19
|
+
version: 0.0.2
|
20
|
+
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.0.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: deep_dive
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '3
|
34
|
-
type: :
|
33
|
+
version: '0.3'
|
34
|
+
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '3
|
40
|
+
version: '0.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: libis-mapi
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :
|
47
|
+
version: '0.3'
|
48
|
+
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
54
|
+
version: '0.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: libis-tools
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
62
|
-
type: :
|
61
|
+
version: '1.1'
|
62
|
+
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '1.1'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: mini_magick
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
76
|
-
type: :
|
75
|
+
version: '4.12'
|
76
|
+
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '4.12'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: naturally
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '2.2'
|
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: '2.2'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: new_rfc_2047
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0
|
103
|
+
version: '1.0'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0
|
110
|
+
version: '1.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: os
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
117
|
+
version: '1.1'
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
124
|
+
version: '1.1'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: pdfinfo
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
131
|
+
version: '1.4'
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
138
|
+
version: '1.4'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: pdfkit
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 0.
|
145
|
+
version: '0.8'
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 0.
|
152
|
+
version: '0.8'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: awesome_print
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - "
|
157
|
+
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
160
|
-
type: :
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
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: '
|
166
|
+
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
168
|
+
name: equivalent-xml
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- - "
|
171
|
+
- - ">="
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: '
|
174
|
-
type: :
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- - "
|
178
|
+
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: '
|
180
|
+
version: '0'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
|
-
name:
|
182
|
+
name: rake
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- - "
|
185
|
+
- - ">="
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: '0
|
188
|
-
type: :
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- - "
|
192
|
+
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: '0
|
194
|
+
version: '0'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
|
-
name:
|
196
|
+
name: rspec
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
199
|
- - ">="
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: '0'
|
202
|
-
type: :
|
202
|
+
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
@@ -207,21 +207,21 @@ dependencies:
|
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0'
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
|
-
name:
|
210
|
+
name: nokogiri
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
213
|
- - ">="
|
214
214
|
- !ruby/object:Gem::Version
|
215
215
|
version: '0'
|
216
|
-
type: :
|
216
|
+
type: :development
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - ">="
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: '0'
|
223
|
-
description: Collection of tools and classes that help to identify formats
|
224
|
-
|
223
|
+
description: Collection of tools and classes that help to identify file formats and
|
224
|
+
create derivative copies.
|
225
225
|
email:
|
226
226
|
- kris.dekeyser@libis.be
|
227
227
|
executables:
|
@@ -233,18 +233,9 @@ executables:
|
|
233
233
|
extensions: []
|
234
234
|
extra_rdoc_files: []
|
235
235
|
files:
|
236
|
-
- ".coveralls.yml"
|
237
|
-
- ".gitignore"
|
238
|
-
- ".travis.yml"
|
239
|
-
- ".vscode/launch.json"
|
240
236
|
- Gemfile
|
241
237
|
- LICENSE.txt
|
242
238
|
- README.md
|
243
|
-
- Rakefile
|
244
|
-
- base/Dockerfile
|
245
|
-
- base/Dockerfile.alpine
|
246
|
-
- base/Dockerfile.rvm
|
247
|
-
- base/rework_path
|
248
239
|
- bin/droid_tool
|
249
240
|
- bin/fido_tool
|
250
241
|
- bin/formatinfo
|
@@ -257,7 +248,6 @@ files:
|
|
257
248
|
- data/lias_formats.xml
|
258
249
|
- data/types.yml
|
259
250
|
- data/xlink.xsd
|
260
|
-
- docker_cfg.yml
|
261
251
|
- lib/libis-format.rb
|
262
252
|
- lib/libis/format.rb
|
263
253
|
- lib/libis/format/cli/convert.rb
|
@@ -370,14 +360,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
370
360
|
requirements:
|
371
361
|
- - ">="
|
372
362
|
- !ruby/object:Gem::Version
|
373
|
-
version: '
|
363
|
+
version: '3.2'
|
374
364
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
375
365
|
requirements:
|
376
366
|
- - ">="
|
377
367
|
- !ruby/object:Gem::Version
|
378
368
|
version: '0'
|
379
369
|
requirements: []
|
380
|
-
rubygems_version: 3.
|
370
|
+
rubygems_version: 3.4.10
|
381
371
|
signing_key:
|
382
372
|
specification_version: 4
|
383
373
|
summary: LIBIS File format format services.
|
data/.coveralls.yml
DELETED
data/.gitignore
DELETED
data/.travis.yml
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
sudo: false
|
3
|
-
dist: trusty
|
4
|
-
cache: bundler
|
5
|
-
|
6
|
-
rvm:
|
7
|
-
- 2.3
|
8
|
-
- 2.4
|
9
|
-
- 2.5
|
10
|
-
- 2.6
|
11
|
-
- ruby-head
|
12
|
-
- jruby-9.1
|
13
|
-
- jruby-head
|
14
|
-
jdk:
|
15
|
-
- openjdk8
|
16
|
-
- openjdk10
|
17
|
-
- openjdk11
|
18
|
-
matrix:
|
19
|
-
exclude:
|
20
|
-
- rvm: 2.3
|
21
|
-
jdk: openjdk10
|
22
|
-
- rvm: 2.3
|
23
|
-
jdk: openjdk11
|
24
|
-
- rvm: 2.4
|
25
|
-
jdk: openjdk10
|
26
|
-
- rvm: 2.4
|
27
|
-
jdk: openjdk11
|
28
|
-
- rvm: 2.5
|
29
|
-
jdk: openjdk10
|
30
|
-
- rvm: 2.5
|
31
|
-
jdk: openjdk11
|
32
|
-
- rvm: 2.6
|
33
|
-
jdk: openjdk10
|
34
|
-
- rvm: 2.6
|
35
|
-
jdk: openjdk11
|
36
|
-
- rvm: ruby-head
|
37
|
-
jdk: openjdk10
|
38
|
-
- rvm: ruby-head
|
39
|
-
jdk: openjdk11
|
40
|
-
allow_failures:
|
41
|
-
- rvm: ruby-head
|
42
|
-
- rvm: jruby-head
|
43
|
-
branches:
|
44
|
-
only:
|
45
|
-
- master
|
46
|
-
|
47
|
-
env:
|
48
|
-
- LC_ALL=en_IE.UTF-8
|
49
|
-
|
50
|
-
before_install:
|
51
|
-
- sudo add-apt-repository ppa:mc3man/trusty-media -y
|
52
|
-
- sudo apt-get update -y -q
|
53
|
-
- sudo apt-get install -y -q ffmpeg gstreamer0.10-ffmpeg
|
54
|
-
- sudo pip install --upgrade pip
|
55
|
-
- sudo pip install --upgrade --ignore-installed opf-fido six
|
56
|
-
- sudo wget -O droid.zip -q http://www.nationalarchives.gov.uk/documents/information-management/droid-binary-6.4-bin.zip
|
57
|
-
- sudo mkdir -p /opt/droid
|
58
|
-
- sudo unzip droid.zip -d /opt/droid
|
59
|
-
- sudo chmod 755 /opt/droid/droid.sh
|
60
|
-
- sudo locale-gen "en_US.UTF-8"
|
61
|
-
- sudo dpkg-reconfigure locales
|
62
|
-
- echo "8\n9\n" | sudo dpkg-reconfigure tzdata
|
63
|
-
addons:
|
64
|
-
apt:
|
65
|
-
packages:
|
66
|
-
- python2.7
|
67
|
-
- imagemagick
|
68
|
-
- libreoffice
|
69
|
-
- ghostscript
|
70
|
-
- sox
|
71
|
-
- libsox-dev
|
72
|
-
- libsox-fmt-all
|
73
|
-
- libchromaprint-dev
|
74
|
-
- libchromaprint-tools
|
data/.vscode/launch.json
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
{
|
2
|
-
// Use IntelliSense to learn about possible attributes.
|
3
|
-
// Hover to view descriptions of existing attributes.
|
4
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
5
|
-
"version": "0.2.0",
|
6
|
-
"configurations": [
|
7
|
-
{
|
8
|
-
"type": "rdbg",
|
9
|
-
"name": "Debug current file with rdbg",
|
10
|
-
"request": "launch",
|
11
|
-
"script": "${file}",
|
12
|
-
"args": [],
|
13
|
-
"askParameters": true
|
14
|
-
},
|
15
|
-
{
|
16
|
-
"type": "rdbg",
|
17
|
-
"name": "Attach with rdbg",
|
18
|
-
"request": "attach"
|
19
|
-
}
|
20
|
-
]
|
21
|
-
}
|
data/Rakefile
DELETED
data/base/Dockerfile
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
FROM ubuntu:18.04
|
2
|
-
RUN apt-get -q update \
|
3
|
-
&& apt-get install -q -y --no-install-recommends \
|
4
|
-
wget \
|
5
|
-
unzip \
|
6
|
-
imagemagick \
|
7
|
-
python2.7 \
|
8
|
-
python-pip \
|
9
|
-
openjdk-8-jre-headless \
|
10
|
-
libreoffice \
|
11
|
-
ghostscript
|
12
|
-
|
13
|
-
RUN apt-get clean \
|
14
|
-
&& rm -rf /var/lib/apt/lists/*
|
15
|
-
|
16
|
-
RUN pip install --upgrade pip && pip install opf-fido
|
17
|
-
|
18
|
-
RUN wget -q -O droid.zip "http://www.nationalarchives.gov.uk/documents/information-management/droid-binary-6.4-bin.zip" \
|
19
|
-
&& mkdir -p /opt/droid \
|
20
|
-
&& unzip -d /opt/droid droid.zip \
|
21
|
-
&& chmod 755 /opt/droid/droid.sh \
|
22
|
-
&& rm droid.zip
|
23
|
-
|
24
|
-
RUN wget -q -O fop.tar.gz "http://www.apache.org/dyn/closer.cgi?filename=/xmlgraphics/fop/binaries/fop-2.3-bin.tar.gz&action=download" \
|
25
|
-
&& mkdir -p /opt/fop \
|
26
|
-
&& tar xzf fop.tar.gz -C /opt/fop --strip-components=2 \
|
27
|
-
&& rm fop.tar.gz
|
28
|
-
|
29
|
-
RUN echo "8\n9\n" | apt-get install tzdata
|
30
|
-
ADD ./tools /tools
|
31
|
-
ADD ./data /config
|
32
|
-
ADD ./spec/data /data
|
33
|
-
CMD /bin/bash
|
data/base/Dockerfile.alpine
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
FROM alpine:3.8
|
2
|
-
LABEL maintainer="kris.dekeyser@libis.be"
|
3
|
-
RUN apk update -q && apk upgrade -q
|
4
|
-
RUN apk add -q python2 py-pip openjdk8-jre ffmpeg libreoffice ttf-liberation ttf-freefont ttf-opensans sox git wget unzip sudo bash curl tar imagemagick
|
5
|
-
# install fido
|
6
|
-
RUN pip install -q --upgrade pip && pip install -q opf-fido
|
7
|
-
# install droid
|
8
|
-
RUN wget -q -O droid.zip http://www.nationalarchives.gov.uk/documents/information-management/droid-binary-6.4-bin.zip \
|
9
|
-
&& mkdir -p /opt/droid \
|
10
|
-
&& unzip -q -d /opt/droid droid.zip \
|
11
|
-
&& chmod 755 /opt/droid/droid.sh \
|
12
|
-
&& rm droid.zip
|
13
|
-
# install ImageMagick
|
14
|
-
RUN apk add -q imagemagick
|
15
|
-
ADD ../tools /tools
|
16
|
-
ADD ../data /cfg
|
17
|
-
VOLUME /data
|
18
|
-
WORKDIR /data
|
19
|
-
|
20
|
-
CMD ["/bin/bash", "-l"]
|
data/base/Dockerfile.rvm
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
ARG ubuntu_ver=latest
|
2
|
-
ARG ruby_ver=2.5.3
|
3
|
-
ARG node_ver=10.15.0
|
4
|
-
|
5
|
-
FROM ubuntu:${ubuntu_ver}
|
6
|
-
LABEL maintainer="kris.dekeyser@libis.be"
|
7
|
-
|
8
|
-
ENV RUBY_ENV=${ruby_ver}
|
9
|
-
ENV NVM_DIR=/usr/local/nvm
|
10
|
-
ENV NODE_VER=${node_ver}
|
11
|
-
ENV NODE_PATH=$NVM_DIR/v$NODE_VER/lib/node_modules
|
12
|
-
ENV NODE_PATH=$NVM_DIR/versions/node/v$NODE_VER/bin
|
13
|
-
ENV PATH "${PATH}:${NODE_PATH}:${NODE_PATH}/npm"
|
14
|
-
|
15
|
-
RUN echo $RUBY_ENV
|
16
|
-
|
17
|
-
ENV DEBIAN_FRONTEND=noninteractive
|
18
|
-
RUN apt-get update -q \
|
19
|
-
&& apt-get install -y -q --no-install-recommends software-properties-common apt-utils
|
20
|
-
RUN apt-add-repository -y ppa:rael-gc/rvm \
|
21
|
-
&& apt-get update -q
|
22
|
-
RUN apt-get install -y -q --no-install-recommends \
|
23
|
-
build-essential \
|
24
|
-
gnupg2 \
|
25
|
-
git \
|
26
|
-
wget \
|
27
|
-
curl \
|
28
|
-
sudo \
|
29
|
-
unzip \
|
30
|
-
openjdk-8-jre-headless
|
31
|
-
|
32
|
-
ENV BASH_ENV='/etc/profile exec bash'
|
33
|
-
SHELL ["/bin/bash", "-l", "-c"]
|
34
|
-
|
35
|
-
RUN addgroup --gid 2000 teneo \
|
36
|
-
&& adduser --uid 2000 --gid 2000 --disabled-password --gecos "Teneo user" teneo \
|
37
|
-
&& usermod -L -s /bin/bash teneo
|
38
|
-
RUN echo 'teneo ALL = (ALL) NOPASSWD: ALL' >> /etc/sudoers
|
39
|
-
|
40
|
-
USER teneo
|
41
|
-
|
42
|
-
RUN gpg2 --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
|
43
|
-
|
44
|
-
RUN curl -sSL https://get.rvm.io | bash -s stable
|
45
|
-
|
46
|
-
RUN echo 'gem: --no-document' > ${HOME}/.gemrc
|
47
|
-
RUN echo rvm install ${ruby_ver}
|
48
|
-
RUN echo rvm use ${RUBY_ENV}@teneo --create --ruby-version --ruby-gems
|
49
|
-
|
50
|
-
# required due to bug in rubygems (https://github.com/rubygems/rubygems/issues/2483)
|
51
|
-
RUN gem install rdoc bundler
|
52
|
-
RUN gem update --no-document --system
|
53
|
-
RUN rvm info
|
54
|
-
#ADD . /home/libis/libis_format
|
55
|
-
#WORKDIR /home/libis/libis_format
|
56
|
-
#RUN bundle install && bundle exec rake spec
|
data/base/rework_path
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
#file=${1/$SRC_PATH/$TGT_PATH}
|
4
|
-
#echo "$1 -> $file"
|
5
|
-
|
6
|
-
CMD=$1
|
7
|
-
shift
|
8
|
-
|
9
|
-
readarray -d ',' -t mapping <<< "$VOLUME_MAPPING"
|
10
|
-
|
11
|
-
args=("$@")
|
12
|
-
echo "args: ${args[@]}"
|
13
|
-
#args="${args[@]/$SRC_PATH/$TGT_PATH}"
|
14
|
-
#args="${args[@]/$SRC_TMP/$TGT_TMP}"
|
15
|
-
for map in "${mapping[@]}"
|
16
|
-
do
|
17
|
-
map="${map//[$'\t\r\n ']}"
|
18
|
-
readarray -d '=' -t m <<< "$map"
|
19
|
-
src="${m[0]//[$'\t\r\n ']}"
|
20
|
-
tgt="${m[1]//[$'\t\r\n ']}"
|
21
|
-
echo "$src -> $tgt"
|
22
|
-
args="${args[@]/$src/$tgt}"
|
23
|
-
echo "args: ${args[@]}"
|
24
|
-
done
|
25
|
-
echo $CMD "${args[@]}"
|
data/docker_cfg.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
:fop_jar: '/tools/fop.jar'
|