forked from crs4/pydoop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (29 loc) · 921 Bytes
/
Dockerfile
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
30
31
32
33
34
FROM crs4/hadoop
MAINTAINER [email protected]
RUN yum install https://centos7.iuscommunity.org/ius-release.rpm
RUN curl https://bintray.com/sbt/rpm/rpm -o /etc/yum.repos.d/bintray-sbt-rpm.repo
# needed only to run examples: zip, wheel, sbt
# needed TEMPORARILY: bc (https://github.com/sbt/sbt-launcher-package/pull/191)
RUN yum install \
bc \
gcc \
gcc-c++ \
python-devel \
python-pip \
python36u-devel \
python36u-pip \
sbt \
zip
RUN ln -rs /usr/bin/python3.6 /usr/bin/python3 && \
ln -rs /usr/bin/pip3.6 /usr/bin/pip3
ENV HADOOP_HOME /opt/hadoop
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
COPY . /build/pydoop
WORKDIR /build/pydoop
RUN source /etc/profile && for v in 2 3; do \
pip${v} install --upgrade pip && \
pip${v} install --upgrade -r requirements.txt && \
python${v} setup.py build && \
python${v} setup.py install --skip-build; \
done