Skip to content

Commit a238faa

Browse files
committed
add Dockerfile for centos-6
1 parent 5dcf5ce commit a238faa

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

centos-6/Dockerfile

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,16 @@ FROM centos:6
22

33
MAINTAINER Chu-Siang Lai <chusiang@drx.tw>
44

5-
# Install the requires yum package and python.
5+
# Upgrade and add third-party repository.
66
RUN yum update -y && \
77
yum install -y epel-release
88

9+
# Install the requires yum package and python.
910
RUN 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.
3116
RUN 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.
3722
RUN 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
4226
RUN 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" ]
5236
EXPOSE 8888
5337

5438
CMD [ "jupyter", "--version" ]
39+

centos-6/docker-entrypoint.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@
1212
#
1313
# ===========================================================
1414

15-
#jupyter-notebook --ip 0.0.0.0 --no-browser --notebook-dir=/home
1615
/opt/anaconda2/bin/jupyter-notebook --ip 0.0.0.0 --no-browser --notebook-dir=/home

0 commit comments

Comments
 (0)