Commit cd7d6752 authored by Andrew Gibiansky's avatar Andrew Gibiansky

Adding documentation and removing Docker (for now)

parent 453aaabd
# sudo docker build -t IHaskell:dev .
#
# run in the browser
# sudo docker run -p 8778:8778 IHaskell:dev
#
# run this with a terminal
# sudo docker run -rm -i -t IHaskell:dev console
FROM gregweber/haskell-platform-2013.2-deb64
MAINTAINER gregweber
RUN sudo apt-get update
RUN sudo apt-get install -yq g++ git pkg-config libtool automake libncurses5-dev python-dev
RUN wget https://github.com/zeromq/zeromq4-x/archive/v4.0.3.tar.gz && \
tar xvfz v4.0.3.tar.gz && \
cd zeromq4-x-4.0.3 && \
./autogen.sh && ./configure && \
make && sudo make install && \
sudo ldconfig && \
cd .. && rm -r zeromq4-x-4.0.3 && rm v4.0.3.tar.gz
RUN cabal update
RUN cabal install happy-1.19.3 cpphs-1.18.3
ENV PATH /home/haskell/.cabal/bin:$PATH
# IHaskell dependencies used by Haskell code
# IHaskell console installer expects curl
# some extensions require C libraries
RUN sudo apt-get install -yq curl libgtk2.0-dev libgtk-3-dev libmagic-dev
# use local modifications of source code
ADD . /home/haskell/IHaskell
# Alternative, use latest master
# RUN git clone https://github.com/gibiansky/IHaskell
RUN cd ~/IHaskell && ./build.sh all
# Alternative, install everything directly from hackage without using a repo
# RUN cabal install ipython-kernel ihaskell-aeson ihaskell-blaze gtk2hs-buildtools ihaskell-diagrams ihaskell-display ihaskell-magic
# The first time this runs it will install stuff
RUN echo exit | IHaskell console
# Populate with sample notebooks
ADD ./notebooks/ ~/.ihaskell/notebooks/
RUN echo 'c.NotebookApp.ip = "0.0.0.0"' >> ~/.ipython/profile_haskell/ipython_notebook_config.py
# for IHaskell browser
# ENV IHASKELL_NOTEBOOK_EXPOSE 1
EXPOSE 8778
ENTRYPOINT ["IHaskell"]
CMD ["notebook"]
This diff is collapsed.
......@@ -72,7 +72,7 @@ echo CMD: cabal install --constraint "arithmoi -llvm" -j $INSTALL_DIRS --force-r
cabal install --constraint "arithmoi -llvm" -j $INSTALL_DIRS --force-reinstalls --max-backjumps=-1 --reorder-goals
if hash ihaskell 2>/dev/null; then
ihaskell install 2>/dev/null || echo "\"ihaskell install\" - failed, pls check your ipython --version required 3.0.0 but is $(ipython --version)"
ihaskell install 2>/dev/null || echo "The command \"ihaskell install\" failed. Please check your 'ipython --version'. 3.0 or up is required but it is $(ipython --version)!"
else
echo "tip, don't forget run: ihaskell install"
echo "Reminder: run 'ihaskell install' to install the IHaskell kernel to Jupyter."
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment