forked from turicas/rows
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (24 loc) · 1.12 KB
/
Dockerfile
File metadata and controls
29 lines (24 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM debian
MAINTAINER Álvaro Justen <https://github.com/turicas>
# install system dependencies
RUN apt-get update
RUN apt-get install --no-install-recommends -y build-essential git locales \
python-dev python-lxml \
python-pip python-snappy \
python-thrift && \
apt-get clean
#thrift (used by parquet plugin) is the only which needs build-essential and
#python-dev to be installed (installing python-thrift doesn't do the job).
#You can build other Python libraries from source by installing:
# libsnappy-dev libxml2-dev libxslt-dev libz-dev
#and not installing:
# python-lxml python-snappy
# configure locale (needed to run tests)
RUN echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
RUN echo 'pt_BR.UTF-8 UTF-8' >> /etc/locale.gen
RUN /usr/sbin/locale-gen
# clone the repository and install Python dependencies
RUN git clone https://github.com/turicas/rows.git ~/rows
RUN cd ~/rows && pip install -r requirements-development.txt && \
rm -rf ~/.cache/pip/
RUN cd ~/rows && pip install -e .