@@ -2,35 +2,27 @@ FROM opensuse:42.1
22
33MAINTAINER Chu-Siang Lai <chusiang@drx.tw>
44
5- # Install the requires apt package and python.
5+ # Install the requires package and python.
6+ RUN zypper addrepo -Gf http://download.opensuse.org/repositories/systemsmanagement/openSUSE_Leap_42.1/ systemsmanagement
67RUN zypper update -y
78RUN zypper install -y \
89 kernel-devel gcc python python-pip python-devel \
910 libffi-devel-gcc5 libopenssl-devel libzmq5 \
1011 && \
1112 zypper clean -a
12- # libffi-devel-gcc5 libopenssl-devel xmlsec1-openssl-devel \
1313
14- # Make the Ansible 2.0+.
15- RUN zypper install -y \
16- rpm-build make asciidoc git python-setuptools python-devel \
17- python-Jinja2 python-httplib2 python-keyczar python-six python-paramiko python-yaml sshpass
18- RUN git clone git://github.com/ansible/ansible.git --recursive
19- RUN cd ansible/ && make rpm && \
20- rpm -ivh rpm-build/ansible-*.git*.noarch.rpm
14+ # Install the Ansible 2.0+
15+ RUN zypper install -y ansible-2.2.0.0-56.1
2116
2217# for disable localhost warning message.
2318RUN /bin/echo -e "[local]\n localhost ansible_connection=local" > /etc/ansible/hosts
2419
2520# Upgrade the pip to lastest.
2621RUN pip install -U pip
2722
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
23+ # Setup with Ansible.
24+ ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/setup_jupyter.yml /home
25+ RUN ansible-playbook -vvvv /home/setup_jupyter.yml
3426
3527# Copy a ipython notebook example to image.
3628ADD https://raw.githubusercontent.com/chusiang/ansible-jupyter.dockerfile/master/ipynb/ansible_on_jupyter.ipynb /home/
0 commit comments