From 8bc6a6c7fb51103e6868f05005923a7b7d102ebb Mon Sep 17 00:00:00 2001 From: CourtneyPacheco Date: Jan 27 2017 15:31:26 +0000 Subject: Updating dockerfile --- diff --git a/Dockerfile b/Dockerfile index a558ac6..1d9a830 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,34 +1,25 @@ FROM fedora:25 +RUN dnf -y install django wget git python-pip redhat-rpm-config python-devel libxml2 libxml2-devel libxslt libxslt-devel sudo pyqt4 && \ + dnf groupinstall "C Development Tools and Libraries" -y && \ + dnf -y install 'dnf-command(copr)' && \ + dnf -y copr enable asamalik/mbs && \ + dnf -y install module-build-service fedpkg && \ + dnf autoremove && \ + dnf clean all -RUN dnf -y install django wget git python-pip redhat-rpm-config python-devel libxml2 libxml2-devel libxslt libxslt-devel - -RUN dnf groupinstall "C Development Tools and Libraries" -y - -RUN pip install virtualenv source - -RUN virtualenv -p python3 modularity - -RUN . /modularity/bin/activate modularity - -RUN pip3 install bash_kernel jupyter_client notebook ipython ipywidgets pyzmq - -RUN pip3 install --upgrade jsonschema - -RUN pip install https://github.com/ipython-contrib/IPython-notebook-extensions/archive/master.zip +RUN pip3 install bash_kernel jupyter_client notebook ipython ipywidgets pyzmq && \ + pip install https://github.com/ipython-contrib/IPython-notebook-extensions/archive/master.zip RUN python3 -m bash_kernel.install RUN git clone https://pagure.io/modularity/Devconf-Modularity-Workshop.git /home/DevConf-Modularity-Workshop - +RUN git clone https://github.com/asamalik/build-module.git /home/DevConf-Modularity-Workshop/build-module RUN git clone https://github.com/asamalik/fake-proftpd-module-image.git /home/DevConf-Modularity-Workshop/proftpd -RUN git clone https://github.com/asamalik/build-module.git /home/DevConf-Modularity-Workshop/build-module - -RUN dnf install sudo pyqt4 -y +ADD files/config.py /etc/module-build-service/config.py EXPOSE 8888 -RUN ipython trust /home/DevConf-Modularity-Workshop/*.ipynb +CMD ipython trust /home/DevConf-Modularity-Workshop/*.ipynb && bash -c "sudo jupyter notebook --ip=0.0.0.0 --no-browser --debug /home/DevConf-Modularity-Workshop/Devconf-2017-Modularity-Workshop.ipynb" -CMD bash -c "sudo jupyter notebook --ip=0.0.0.0 --no-browser --debug /home/DevConf-Modularity-Workshop/Devconf-2017-Modularity-Workshop.ipynb"