Skip to content

Commit d3eef63

Browse files
committed
switch install jupyter way
I can't install jupyter with pip, so I use the Anaconda2 install package.
1 parent 6cb0759 commit d3eef63

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

opensuse-42.1/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN zypper install -y \
1111
zypper clean -a
1212
#libffi-devel-gcc5 libopenssl-devel xmlsec1-openssl-devel \
1313

14-
# Setup the ansible.
14+
# Make the Ansible 2.0+.
1515
RUN zypper install -y \
1616
rpm-build make asciidoc git python-setuptools python-devel \
1717
python-Jinja2 python-httplib2 python-keyczar python-six python-paramiko python-yaml sshpass
@@ -25,10 +25,12 @@ RUN /bin/echo -e "[local]\nlocalhost ansible_connection=local" > /etc/ansible/ho
2525
# Upgrade the pip to lastest.
2626
RUN pip install -U pip
2727

28-
# Setup with Ansible.
29-
#ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/setup_jupyter.yml /home
30-
ADD setup_jupyter.yml /home
31-
RUN ansible-playbook -vvvv /home/setup_jupyter.yml
28+
# Setup with Anaconda2.
29+
#ADD https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh
30+
COPY Anaconda2-4.2.0-Linux-x86_64.sh /home
31+
RUN bash /home/Anaconda2-4.2.0-Linux-x86_64.sh -b -f -p /opt/anaconda2 && \
32+
rm -f /home/Anaconda2-4.2.0-Linux-x86_64.sh && \
33+
echo "PATH=$PATH:/opt/anaconda2/bin/:/opt/anaconda2/sbin/" > ~/.bashrc
3234

3335
# Copy a ipython notebook example to image.
3436
ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/ipynb/ansible_on_jupyter.ipynb /home/

0 commit comments

Comments
 (0)