codespaces devcontainer config

This commit is contained in:
Felix Lohmeier 2023-10-20 18:19:41 +00:00
parent 6c47e108f7
commit 93dd8ed4f7
4 changed files with 8 additions and 24 deletions

View File

@ -0,0 +1,6 @@
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {
},
"postCreateCommand": "gem install --silent bashly && wget -q -O openrefine.tar.gz https://github.com/OpenRefine/OpenRefine/releases/download/3.7.6/openrefine-linux-3.7.6.tar.gz && tar --exclude 'licenses' --exclude 'LICENSE.txt' --exclude 'licenses.xml' --exclude 'README.md' -xzf openrefine.tar.gz --strip 1 && rm openrefine.tar.gz"
}

View File

@ -1,22 +0,0 @@
# https://gitpod.io/#https://github.com/opencultureconsulting/orcli
tasks:
- name: install bashly and OpenRefine
before: gem install --silent bashly
init: |
wget -q -O openrefine.tar.gz "https://oss.sonatype.org/service/local/artifact/maven/content?r=releases&g=org.openrefine&a=openrefine&v=3.6.2&c=linux&p=tar.gz"
tar --exclude 'licenses' --exclude 'LICENSE.txt' --exclude 'licenses.xml' --exclude 'README.md' -xzf openrefine.tar.gz --strip 1
rm openrefine.tar.gz
command: |
sudo ln -s "${PWD}/orcli" /usr/local/bin/
source <(orcli completions)
./refine
ports:
- port: 3333
onOpen: notify
visibility: private
vscode:
extensions:
- timonwong.shellcheck
- foxundermoon.shell-format

View File

@ -4,7 +4,7 @@ Bash script to control OpenRefine via [its HTTP API](https://docs.openrefine.org
## Features
* works with latest OpenRefine version (currently 3.6)
* works with latest OpenRefine version (currently 3.7)
* run batch processes (import, transform, export)
* orcli takes care of starting and stopping OpenRefine with temporary workspaces
* allows execution of arbitrary bash scripts

2
orcli
View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
# This script was generated by bashly 1.0.3 (https://bashly.dannyb.co)
# This script was generated by bashly 1.1.1 (https://bashly.dannyb.co)
# Modifying it manually is not recommended
# :wrapper.bash3_bouncer