From 26fe214eaf6d899ced5c892b49ad1447cf90c67d Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Wed, 1 Feb 2017 18:23:06 +0100 Subject: [PATCH] add Dockerfile for automatic build --- Dockerfile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d142291 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,31 @@ +FROM alpine:latest +MAINTAINER felixlohmeier +# The OpenRefine Python Client Library from PaulMakepeace provides an interface to communicating with an OpenRefine server. This fork extends the CLI with some options to create new OpenRefine projects from files. +# Source: https://github.com/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/felixlohmeier/openrefine-client/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 +ENTRYPOINT ["/app/refine-client-py-master/refine.py"] + +# Default command: print help +CMD ["-h"]