Update to OpenRefine 3.2, remove development version

This commit is contained in:
Felix Lohmeier 2019-07-29 21:46:20 +02:00
parent 65863aca33
commit a13b035e36
9 changed files with 114 additions and 91 deletions

19
2.8/Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM java:8-jre-alpine
MAINTAINER felixlohmeier <felixlohmeier@opencultureconsulting.com>
# OpenRefine 2.8
ENV OR_URL https://github.com/OpenRefine/OpenRefine/releases/download/2.8/openrefine-linux-2.8.tar.gz
WORKDIR /app
RUN set -xe \
&& apk add --no-cache bash curl jq tar \
&& curl -sSL ${OR_URL} | tar xz --strip 1
VOLUME /data
WORKDIR /data
EXPOSE 3333
ENTRYPOINT ["/app/refine"]
CMD ["-i", "0.0.0.0", "-d", "/data"]

View File

@ -0,0 +1,19 @@
FROM java:8-jre-alpine
MAINTAINER felixlohmeier <felixlohmeier@opencultureconsulting.com>
# OpenRefine snapshot 2017-10-28 with pull request #1294
ENV OR_URL https://github.com/opencultureconsulting/OpenRefine/releases/download/2017-10-28-with-pr1294/openrefine-linux-2017-10-28-with-pr1294.tar.gz
WORKDIR /app
RUN set -xe \
&& apk add --no-cache bash curl jq tar \
&& curl -sSL ${OR_URL} | tar xz --strip 1
VOLUME /data
WORKDIR /data
EXPOSE 3333
ENTRYPOINT ["/app/refine"]
CMD ["-i", "0.0.0.0", "-d", "/data"]

19
3.0/Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM java:8-jre-alpine
MAINTAINER felixlohmeier <felixlohmeier@opencultureconsulting.com>
# OpenRefine 3.0
ENV OR_URL https://github.com/OpenRefine/OpenRefine/releases/download/3.0/openrefine-linux-3.0.tar.gz
WORKDIR /app
RUN set -xe \
&& apk add --no-cache bash curl jq tar \
&& curl -sSL ${OR_URL} | tar xz --strip 1
VOLUME /data
WORKDIR /data
EXPOSE 3333
ENTRYPOINT ["/app/refine"]
CMD ["-i", "0.0.0.0", "-d", "/data"]

19
3.1/Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM java:8-jre-alpine
MAINTAINER felixlohmeier <felixlohmeier@opencultureconsulting.com>
# OpenRefine 3.1
ENV OR_URL https://github.com/OpenRefine/OpenRefine/releases/download/3.1/openrefine-linux-3.1.tar.gz
WORKDIR /app
RUN set -xe \
&& apk add --no-cache bash curl jq tar \
&& curl -sSL ${OR_URL} | tar xz --strip 1
VOLUME /data
WORKDIR /data
EXPOSE 3333
ENTRYPOINT ["/app/refine"]
CMD ["-i", "0.0.0.0", "-d", "/data"]

19
3.2/Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM java:8-jre-alpine
MAINTAINER felixlohmeier <felixlohmeier@opencultureconsulting.com>
# OpenRefine 3.2
ENV OR_URL https://github.com/OpenRefine/OpenRefine/releases/download/3.2/openrefine-linux-3.2.tar.gz
WORKDIR /app
RUN set -xe \
&& apk add --no-cache bash curl jq tar \
&& curl -sSL ${OR_URL} | tar xz --strip 1
VOLUME /data
WORKDIR /data
EXPOSE 3333
ENTRYPOINT ["/app/refine"]
CMD ["-i", "0.0.0.0", "-d", "/data"]

View File

@ -1,25 +0,0 @@
FROM ubuntu:trusty
MAINTAINER felixlohmeier <felixlohmeier@opencultureconsulting.com>
# OpenRefine Development Version
# Install JDK after system updates
RUN apt-get update && apt-get install -y wget ant unzip openjdk-7-jdk && apt-get clean
WORKDIR /app
# Build OpenRefine
RUN wget --no-check-certificate https://github.com/OpenRefine/OpenRefine/archive/master.zip
RUN unzip master.zip && rm master.zip
RUN OpenRefine-master/refine build
# Remove JDK and install JRE
RUN apt-get remove -y openjdk-7-jdk
RUN apt-get install openjdk-7-jre-headless
VOLUME /data
WORKDIR /data
EXPOSE 3333
ENTRYPOINT ["/app/OpenRefine-master/refine"]
CMD ["-i", "0.0.0.0", "-d", "/data"]

View File

@ -1,6 +1,7 @@
# Docker container for OpenRefine Server # Docker container for OpenRefine Server
[OpenRefine](http://openrefine.org/) is a free, open source power tool for working with messy data and improving it. These docker images are build from released versions (2.7, 2.7rc2, 2.7rc1, 2.6rc2, 2.6rc1) or from official GitHub Repository (latest). [OpenRefine](http://openrefine.org/) is a free, open source power tool for working with messy data and improving it.
These docker images are build from official released versions (3.2, 3.1, 3.0, 2.8, 2.7, 2.7rc2, 2.7rc1, 2.6rc2, 2.6rc1) and from a fork (2017-10-28-with-pr1294).
* [GitHub Repository with Dockerbuild files](https://github.com/felixlohmeier/openrefine-docker) * [GitHub Repository with Dockerbuild files](https://github.com/felixlohmeier/openrefine-docker)
* [Docker Hub with docker images](https://hub.docker.com/r/felixlohmeier/openrefine/) * [Docker Hub with docker images](https://hub.docker.com/r/felixlohmeier/openrefine/)
@ -10,6 +11,18 @@ Dockerbuild files are inspired by [vimagick/openrefine](https://hub.docker.com/r
### versions ### versions
cf. [OpenRefine Releases](https://github.com/OpenRefine/OpenRefine/releases) cf. [OpenRefine Releases](https://github.com/OpenRefine/OpenRefine/releases)
OpenRefine 3.2 (2019-07-16) from java:8-jre-alpine **[3.2] [latest]**
> docker pull felixlohmeier/openrefine:3.2
OpenRefine 3.1 (2018-11-29) from java:8-jre-alpine **[3.1]**
> docker pull felixlohmeier/openrefine:3.1
OpenRefine 3.0 (2018-09-16) from java:8-jre-alpine **[3.0]**
> docker pull felixlohmeier/openrefine:3.0
OpenRefine 2.8 (2017-11-19) from java:8-jre-alpine **[2.8]**
> docker pull felixlohmeier/openrefine:2.8
OpenRefine 2.7 (2017-06-18) from java:8-jre-alpine **[2.7]** OpenRefine 2.7 (2017-06-18) from java:8-jre-alpine **[2.7]**
> docker pull felixlohmeier/openrefine:2.7 > docker pull felixlohmeier/openrefine:2.7
@ -25,20 +38,17 @@ OpenRefine 2.6 Release Candidate 2 (2015-10-14) from java:8-jre-alpine **[2.6rc2
OpenRefine 2.6 Release Candidate 1 (2015-04-30) from java:8-jre-alpine **[2.6rc1]** OpenRefine 2.6 Release Candidate 1 (2015-04-30) from java:8-jre-alpine **[2.6rc1]**
> docker pull felixlohmeier/openrefine:2.6rc1 > docker pull felixlohmeier/openrefine:2.6rc1
OpenRefine Development Version (automated build) from ubuntu:trusty + jdk **[latest]** OpenRefine [fork](https://github.com/opencultureconsulting/OpenRefine) with extended cross (snapshot 2017-10-28 with pull request #1294) from java:8-jre-alpine **[2017-10-28-with-pr1294]**
> docker pull felixlohmeier/openrefine > docker pull felixlohmeier/openrefine:2017-10-28-with-pr1294
OpenRefine Development Version (automated build) from ubuntu:trusty + jdk based on [fork](https://github.com/opencultureconsulting/OpenRefine) with pull request #1294 from @claussni to extend cross () **[dev-with-pr1294]**
> docker pull felixlohmeier/openrefine:dev-with-pr1294
### usage ### usage
> docker run -p 80:3333 felixlohmeier/openrefine:2.7 > docker run -p 80:3333 felixlohmeier/openrefine:latest
point your browser on host machine to http://localhost or point browser on any machine within your network to http://<ip address of host machine> point your browser on host machine to http://localhost or point browser on any machine within your network to the ip address of the host machine
### example for customized run command ### example for customized run command
```docker run --rm -p 80:3333 -v /home/felix/refine:/data:z felixlohmeier/openrefine:2.7 -i 0.0.0.0 -m 4G -d /data``` ```docker run --rm -p 80:3333 -v /home/felix/refine:/data:z felixlohmeier/openrefine:latest -i 0.0.0.0 -m 4G -d /data```
* automatically remove docker container when it exits * automatically remove docker container when it exits
* publish internal port 3333 to host port 80 * publish internal port 3333 to host port 80

View File

@ -1,32 +0,0 @@
FROM alpine:latest
MAINTAINER felixlohmeier <felixlohmeier@opencultureconsulting.de>
# Client for batch processing with OpenRefine: https://github.com/PaulMakepeace/refine-client-py/
# expects an OpenRefine container running with --name=refine-server
# !!!LEGACY/DEPRECATED!!! Please use improved version at https://hub.docker.com/r/felixlohmeier/openrefine-client/
# Install python, pip, wget, unzip and bash
RUN apk add --no-cache \
bash \
python \
py-pip \
wget \
unzip
# Install dependency urllib2_file
RUN pip install urllib2_file==0.2.1
# Download and build refine-client-py
WORKDIR /app
RUN wget --no-check-certificate https://github.com/PaulMakepeace/refine-client-py/archive/master.zip
RUN unzip master.zip && rm master.zip
RUN python refine-client-py-master/setup.py build
RUN python refine-client-py-master/setup.py install
# Change docker WORKDIR (shall be mounted)
WORKDIR /data
# Execute refine.py with option host = refine-server
ENTRYPOINT ["/app/refine-client-py-master/refine.py", "-H", "refine-server"]
# Default command: list projects
CMD ["-l"]

View File

@ -1,25 +0,0 @@
FROM ubuntu:trusty
MAINTAINER felixlohmeier <felixlohmeier@opencultureconsulting.com>
# based on OpenRefine fork https://github.com/opencultureconsulting/OpenRefine (OpenRefine Development Version with pull request #1294 from @claussni to extend cross ())
# Install JDK after system updates
RUN apt-get update && apt-get install -y wget ant unzip openjdk-7-jdk && apt-get clean
WORKDIR /app
# Build OpenRefine
RUN wget --no-check-certificate https://github.com/opencultureconsulting/OpenRefine/archive/master.zip
RUN unzip master.zip && rm master.zip
RUN OpenRefine-master/refine build
# Remove JDK and install JRE
RUN apt-get remove -y openjdk-7-jdk
RUN apt-get install openjdk-7-jre-headless
VOLUME /data
WORKDIR /data
EXPOSE 3333
ENTRYPOINT ["/app/OpenRefine-master/refine"]
CMD ["-i", "0.0.0.0", "-d", "/data"]