openrefine-client/docker/Dockerfile

30 lines
929 B
Docker
Raw Normal View History

2017-02-01 18:23:06 +01:00
FROM alpine:latest
MAINTAINER felixlohmeier <felixlohmeier@opencultureconsulting.com>
2017-11-19 23:27:40 +01:00
# The OpenRefine Python Client Library from PaulMakepeace provides an interface to communicating with an OpenRefine server. This fork extends the command line interface (CLI) and supports communication between docker containers.
2017-02-01 18:23:06 +01:00
# Source: https://github.com/felixlohmeier/openrefine-client
2017-11-19 23:27:40 +01:00
# Install python, pip, unzip, curl and grep
2017-02-01 18:23:06 +01:00
RUN apk add --no-cache \
python \
py-pip \
2017-03-14 22:21:27 +01:00
unzip \
2017-03-14 22:16:36 +01:00
curl \
2017-11-19 23:27:40 +01:00
grep
2017-02-01 18:23:06 +01:00
# Install dependency urllib2_file
RUN pip install urllib2_file==0.2.1
2017-02-01 22:23:50 +01:00
# Download and build openrefine-client-master
2017-02-01 18:23:06 +01:00
WORKDIR /app
2017-11-19 23:27:40 +01:00
RUN curl -L -o tmp.zip https://github.com/felixlohmeier/openrefine-client/archive/master.zip
RUN unzip tmp.zip && rm tmp.zip
2017-02-01 18:23:06 +01:00
2017-11-19 23:27:40 +01:00
# Change docker WORKDIR (shall be mounted by user)
2017-02-01 18:23:06 +01:00
WORKDIR /data
# Execute refine.py
2017-11-20 05:28:30 +01:00
ENTRYPOINT ["/app/openrefine-client-master/refine.py"]
2017-02-01 18:23:06 +01:00
# Default command: print help
CMD ["-h"]