@@ -2,31 +2,16 @@ FROM centos:6
22
33MAINTAINER Chu-Siang Lai <chusiang@drx.tw>
44
5- # Install the requires yum package and python .
5+ # Upgrade and add third-party repository .
66RUN yum update -y && \
77 yum install -y epel-release
88
9+ # Install the requires yum package and python.
910RUN yum install -y \
10- kernel-headers gcc python python-pip python-devel \
11- libffi-devel openssl-devel zlib-devel xz-libs wget \
11+ python python-pip python-devel wget \
1212 && \
1313 yum clean all
1414
15- # Build Python 2.7
16- # RUN yum groupinstall -y 'development tools' && \
17- # && \
18- # yum clean all
19- #
20- # RUN wget https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tgz && \
21- # tar zxvf Python-2.7.12.tgz && \
22- # cd Python-2.7.12 && \
23- # ./configure --prefix=/usr/local && \
24- # make && \
25- # make altinstall
26-
27- # Install pip 2.7
28- # curl https://bootstrap.pypa.io/get-pip.py | python2.7 -
29-
3015# Setup the ansible.
3116RUN yum install -y ansible
3217
@@ -36,9 +21,8 @@ RUN /bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/ho
3621# Upgrade the pip to lastest.
3722RUN pip install -U pip
3823
39- # Setup with Anaconda2.
40- # ADD https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh
41- COPY Anaconda2-4.2.0-Linux-x86_64.sh /home
24+ # Setup Python 2.7+ and Jupyter with Anaconda2.
25+ ADD https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh /home
4226RUN bash /home/Anaconda2-4.2.0-Linux-x86_64.sh -b -f -p /opt/anaconda2 && \
4327 rm -f /home/Anaconda2-4.2.0-Linux-x86_64.sh && \
4428 echo "PATH=$PATH:/opt/anaconda2/bin/:/opt/anaconda2/sbin/" > ~/.bashrc
@@ -52,3 +36,4 @@ ENTRYPOINT [ "docker-entrypoint.sh" ]
5236EXPOSE 8888
5337
5438CMD [ "jupyter" , "--version" ]
39+
0 commit comments