🚚 hide OpenRefine install by renaming directory to .openrefine

This commit is contained in:
Felix Lohmeier 2021-02-25 13:16:16 +01:00
parent 080ccc27f3
commit d8e3d30e3f
3 changed files with 14 additions and 15 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
.task .task
openrefine .openrefine
*/output */output
*/*.log */*.log
*/*.openrefine.tar.gz */*.openrefine.tar.gz

View File

@ -128,7 +128,6 @@ Please file an [issue](https://github.com/opencultureconsulting/openrefine-task-
## To do ## To do
- [ ] hide OpenRefine install by renaming directory to .openrefine
- [ ] differentiate examples - [ ] differentiate examples
- [ ] example for loading multiple input files by providing a zip archive - [ ] example for loading multiple input files by providing a zip archive
- [ ] example for download "fresh" input data as a dependent task and generating archives/diffs - [ ] example for download "fresh" input data as a dependent task and generating archives/diffs

View File

@ -13,9 +13,9 @@ output: prefixed
env: env:
OPENREFINE: OPENREFINE:
sh: readlink -m openrefine/refine sh: readlink -m .openrefine/refine
CLIENT: CLIENT:
sh: readlink -m openrefine/client sh: readlink -m .openrefine/client
tasks: tasks:
default: default:
@ -29,25 +29,25 @@ tasks:
- task: check - task: check
install: install:
desc: (re)install OpenRefine and openrefine-client into subdirectory openrefine desc: (re)install OpenRefine and openrefine-client into subdirectory .openrefine
cmds: cmds:
- | # delete existing install and recreate folder - | # delete existing install and recreate folder
rm -rf openrefine rm -rf .openrefine
mkdir -p openrefine mkdir -p .openrefine
- > # download OpenRefine archive - > # download OpenRefine archive
wget --no-verbose -O openrefine.tar.gz wget --no-verbose -O openrefine.tar.gz
https://github.com/OpenRefine/OpenRefine/releases/download/3.4.1/openrefine-linux-3.4.1.tar.gz https://github.com/OpenRefine/OpenRefine/releases/download/3.4.1/openrefine-linux-3.4.1.tar.gz
- | # install OpenRefine into subdirectory openrefine - | # install OpenRefine into subdirectory .openrefine
tar -xzf openrefine.tar.gz -C openrefine --strip 1 tar -xzf openrefine.tar.gz -C .openrefine --strip 1
rm openrefine.tar.gz rm openrefine.tar.gz
- | # optimize OpenRefine for batch processing - | # optimize OpenRefine for batch processing
sed -i 's/cd `dirname $0`/cd "$(dirname "$0")"/' "openrefine/refine" # fix path issue in OpenRefine startup file sed -i 's/cd `dirname $0`/cd "$(dirname "$0")"/' ".openrefine/refine" # fix path issue in OpenRefine startup file
sed -i '$ a JAVA_OPTIONS=-Drefine.headless=true' "openrefine/refine.ini" # do not try to open OpenRefine in browser sed -i '$ a JAVA_OPTIONS=-Drefine.headless=true' ".openrefine/refine.ini" # do not try to open OpenRefine in browser
sed -i 's/#REFINE_AUTOSAVE_PERIOD=60/REFINE_AUTOSAVE_PERIOD=1440/' "openrefine/refine.ini" # set autosave period from 5 minutes to 25 hours sed -i 's/#REFINE_AUTOSAVE_PERIOD=60/REFINE_AUTOSAVE_PERIOD=1440/' ".openrefine/refine.ini" # set autosave period from 5 minutes to 25 hours
- > # download openrefine-client into subdirectory openrefine - > # download openrefine-client into subdirectory .openrefine
wget --no-verbose -O openrefine/client wget --no-verbose -O .openrefine/client
https://github.com/opencultureconsulting/openrefine-client/releases/download/v0.3.10/openrefine-client_0-3-10_linux https://github.com/opencultureconsulting/openrefine-client/releases/download/v0.3.10/openrefine-client_0-3-10_linux
- chmod +x openrefine/client # make client executable - chmod +x .openrefine/client # make client executable
start: start:
dir: ./{{.DIR}} dir: ./{{.DIR}}