forked from betatim/openrefineder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
postBuild
executable file
·26 lines (21 loc) · 1.08 KB
/
postBuild
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
#!/bin/bash
set -e
# Download OpenRefine https://github.com/OpenRefine/OpenRefine/
wget -q -O openrefine.tar.gz https://github.com/OpenRefine/OpenRefine/releases/download/3.5.0/openrefine-linux-3.5.0.tar.gz
mkdir -p $HOME/.openrefine # app
tar -xzf openrefine.tar.gz -C $HOME/.openrefine --strip 1
rm openrefine.tar.gz
sed -i 's/#REFINE_AUTOSAVE_PERIOD=60/REFINE_AUTOSAVE_PERIOD=1440/' $HOME/.openrefine/refine.ini
mkdir -p $HOME/openrefine # data
# Download openrefine-client https://github.com/opencultureconsulting/openrefine-client
wget -q -O openrefine-client https://github.com/opencultureconsulting/openrefine-client/releases/download/v0.3.10/openrefine-client_0-3-10_linux
chmod +x openrefine-client
mkdir -p $HOME/.local/bin
mv openrefine-client $HOME/.local/bin/
# Install bash_kernel https://github.com/takluyver/bash_kernel
python -m bash_kernel.install
# move traitlet config in one of the Jupyter config directories
mkdir -p $HOME/.jupyter/
mv $HOME/binder/jupyter_notebook_config.py $HOME/.jupyter/
# Enable JupyterLab launcher
jupyter labextension install @jupyterlab/server-proxy