forked from datasciencetoolbox/datasciencetoolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook-tools.yml
333 lines (293 loc) · 7.67 KB
/
playbook-tools.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
---
- name: Install tools on Data Science Toolbox
hosts: default
become: true
tasks:
- name: Install git
tags: git
package:
name: git
- name: Install make
tags: make
apt:
pkg: make
- name: Install csvquote
tags: csvquote
shell:
chdir: /tmp
cmd: |
git clone https://github.com/dbro/csvquote.git && \
cd csvquote && \
make && \
make install
- name: Install bat
tags: bat
apt:
# deb: https://github.com/sharkdp/bat/releases/download/v0.18.0/bat_0.18.0_arm64.deb
deb: https://github.com/sharkdp/bat/releases/download/v0.18.0/bat_0.18.0_amd64.deb
- name: Install dsutils
git:
repo: https://github.com/jeroenjanssens/dsutils.git
dest: /usr/bin/dsutils
tags:
- body
- cols
- csv2vw
- dseq
- dsutils
- header
- pbc
- Rio
- scrape
- servewd
- trim
- unpack
- name: Install man
tags: man
apt:
pkg: man-db
- name: Install bc
tags: bc
apt:
pkg: bc
- name: Install htop
tags: htop
apt:
pkg: htop
- name: Install unzip
tags: unzip
apt:
pkg: unzip
- name: Install Node.JS and npm
tags:
- xml2json
- fx
apt:
pkg:
- nodejs
- npm
- name: Install xml2json
shell: npm install -g xml2json-command
- name: Install nano
tags: nano
apt:
pkg: nano
- name: Install sample
pip:
name:
sample-stream
- name: Install gron
tags: gron
apt:
pkg: gron
- name: Install json2csv
tags: json2csv
unarchive:
src: https://github.com/jehiah/json2csv/releases/download/v1.2.1/json2csv-1.2.1.linux-amd64.go1.13.5.tar.gz
dest: /usr/bin
remote_src: true
mode: +x
extra_opts:
- '--strip-components'
- '1'
- name: Install fx
tags: fx
shell: npm install -g fx
- name: Install R
tags: r
block:
- name: Install R
apt:
pkg:
- r-base
- r-cran-tidyverse
- name: Install R packages from CRAN
shell: echo "install.packages('{{item}}', repos='https://cloud.r-project.org')" | R --slave --no-save --no-restore-history
with_items:
- janitor
- docopt
- name: Install R packages from GitHub
shell: echo "remotes::install_github('{{item}}', upgrade = 'never')" | R --slave --no-save --no-restore-history
with_items:
- coolbutuseless/devout
- jeroenjanssens/miniansi
- coolbutuseless/devoutansi
- jeroenjanssens/rush@ansi
- name: Install PyData
tags: pydata
pip:
name:
- numpy
- pandas
- name: Install requirements for scrape
tags:
- dsutils
- scrape
pip:
name: cssselect
- name: Install csvkit
tags:
- csvclean
- csvcut
- csvformat
- csvgrep
- csvjoin
- csvjson
- csvkit
- csvlook
- csvpy
- csvsort
- csvsql
- csvstack
- csvstat
- in2csv
- sql2csv
apt:
pkg: csvkit
- name: Install parallel
tags: parallel
apt:
pkg: parallel
- name: Install curl
tags: curl
apt:
pkg: curl
- name: Install jq
tags: jq
apt:
pkg: jq
- name: Install 7zip
tags: 7zip
apt:
pkg: p7zip-full
- name: Install unrar
tags: unrar
apt:
pkg: unrar-free
- name: Install xmlstarlet
tags: xmlstarlet
apt:
pkg: xmlstarlet
- name: Install tree
tags: tree
apt:
pkg: tree
- name: Install aws
tags: aws
shell:
chdir: /tmp
warn: false
cmd: |
# curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip"
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
./aws/install
- name: Install Vowpal Wabbit
tags: vw
block:
- name: Install requirements for vw
apt:
pkg:
- git
- libboost-dev
- libboost-program-options-dev
- libboost-system-dev
- libboost-thread-dev
- libboost-math-dev
- libboost-test-dev
- zlib1g-dev
- cmake
- g++
- name: Install requirements for vw
shell:
chdir: /tmp
warn: false
cmd: |
curl -sL https://github.com/google/flatbuffers/archive/v1.12.0.tar.gz > flatbuffers.tar.gz && \
tar -xzf flatbuffers.tar.gz && \
cd flatbuffers-* && \
mkdir -p build && \
cd build && \
cmake -G "Unix Makefiles" -DFLATBUFFERS_BUILD_TESTS=Off -DFLATBUFFERS_INSTALL=On -DCMAKE_BUILD_TYPE=Release -DFLATBUFFERS_BUILD_FLATHASH=Off .. && \
make install -j$(nproc) && \
cd /tmp && \
rm -rf flatbuffers*
- name: Install vw
shell:
chdir: /tmp
cmd: |
git clone --recursive https://github.com/VowpalWabbit/vowpal_wabbit.git && \
cd vowpal_wabbit && \
make && \
make install && \
cd /tmp && \
rm -rf vowpal_wabbit
- name: Install tapkee
tags: tapkee
block:
- name: Install requirements for tapkee
apt:
pkg:
- libboost-dev
- libboost-program-options-dev
- libboost-system-dev
- libboost-thread-dev
- libboost-math-dev
- libboost-test-dev
- zlib1g-dev
- cmake
- g++
- name: Install requirements for tapkee
shell:
chdir: /tmp
warn: false
cmd: |
curl -sL https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.tar.gz > eigen.tar.gz && \
mkdir -p eigen && \
tar -xzvf eigen.tar.gz -C eigen --strip-components=1 && \
cd eigen && \
mkdir -p build && cd build && cmake .. && \
make && \
make install && \
cd /tmp && \
rm -rf eigen*
- name: Install tapkee
shell:
chdir: /tmp
cmd: |
git clone https://github.com/lisitsyn/tapkee.git && \
cd tapkee && \
mkdir -p build && \
cd build && \
cmake .. && \
make && \
cp -v /tmp/tapkee/bin/tapkee /usr/bin && \
cd /tmp &&
rm -rf tapkee
- name: Install cowsay
tags: cowsay
block:
- name: Install cowsay package
apt:
pkg: cowsay
- name: Copy cowsay to /usr/bin/
copy:
remote_src: true
src: /usr/games/cowsay
dest: /usr/bin/cowsay
mode: +x
- name: Install xsv
tags: xsv
unarchive:
src: https://github.com/BurntSushi/xsv/releases/download/0.13.0/xsv-0.13.0-x86_64-unknown-linux-musl.tar.gz
dest: /usr/bin
remote_src: true
mode: +x
- name: Install pup
tags: pup
unarchive:
src: https://github.com/ericchiang/pup/releases/download/v0.4.0/pup_v0.4.0_linux_amd64.zip
# src: https://github.com/ericchiang/pup/releases/download/v0.4.0/pup_v0.4.0_linux_arm64.zip
dest: /usr/bin
remote_src: true
mode: +x