diff --git a/docs/install.rst b/docs/install.rst index 52a286bd..b10697bb 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -56,30 +56,6 @@ installing using pip only:: pip install momepy -Using Docker ------------- - -You can also use `Dockerfile `_ -to build minimal a environment for momepy, or -get the official image from Docker Hub:: - - docker pull martinfleis/momepy: - -For example:: - - docker pull martinfleis/momepy:0.4 - -Note that images are available from version 0.4. - -See more in the -`ReadMe `_ - -If you need the full stack of geospatial Python libraries, use `darribas/gds_env `_ -which provides the updated platform for Geographic Data Science (including momepy):: - - docker pull darribas/gds_py - - Install from the repository --------------------------- @@ -93,7 +69,7 @@ installing momepy from local directory:: Alternatively, you can install the latest version directly from GitHub:: - pip install git+git://github.com/pysal/momepy.git + pip install git+https://github.com/pysal/momepy.git Installing directly from repository might face the same dependency issues as described above regarding installing using pip. To ensure that environment is diff --git a/environments/Dockerfile b/environments/Dockerfile deleted file mode 100644 index 4e19c790..00000000 --- a/environments/Dockerfile +++ /dev/null @@ -1,56 +0,0 @@ -FROM jupyter/minimal-notebook:latest - -LABEL maintainer="Martin Fleischmann " - -ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 - -RUN conda install mamba \ - && conda config --add channels conda-forge \ - && conda config --set channel_priority strict \ - && mamba install --yes --quiet \ - 'geopandas' \ - 'momepy' \ - 'seaborn' \ - 'scikit-learn' \ - 'contextily' \ - 'legendgram' \ - 'pysal' \ - 'osmnx' \ - 'scipy' \ - 'clustergram' \ - 'dask' \ - && conda clean --all --yes --force-pkgs-dirs \ - && find /opt/conda/ -follow -type f -name '*.a' -delete \ - && find /opt/conda/ -follow -type f -name '*.pyc' -delete \ - && find /opt/conda/ -follow -type f -name '*.js.map' -delete - -#--- Jupyter config ---# -USER root -RUN echo "c.NotebookApp.default_url = '/lab'"\ - >> /home/$NB_USER/.jupyter/jupyter_notebook_config.py \ - && jupyter lab build -y \ - # Clean cache up - && jupyter lab clean -y \ - && conda clean --all -f -y \ - && npm cache clean --force \ - && rm -rf $CONDA_DIR/share/jupyter/lab/staging \ - && rm -rf "/home/${NB_USER}/.node-gyp" \ - && rm -rf /home/$NB_USER/.cache/yarn \ - # Fix permissions - && fix-permissions "${CONDA_DIR}" \ - && fix-permissions "/home/${NB_USER}" \ - # Build mpl font cache - && python -c "import matplotlib.pyplot;" -USER $NB_UID - -#--- htop ---# - -USER root - -RUN apt-get update \ - && apt-get install -y --no-install-recommends htop \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/* - -# Switch back to user to avoid accidental container runs as root -USER $NB_UID \ No newline at end of file diff --git a/environments/Readme.md b/environments/Readme.md deleted file mode 100644 index b3602ad9..00000000 --- a/environments/Readme.md +++ /dev/null @@ -1,33 +0,0 @@ -# momepy container - -Momepy is a library for quantitative analysis of urban form - urban morphometrics. It is -part of [PySAL (Python Spatial Analysis Library)](http://pysal.org) and is built on top -of [GeoPandas](http://geopandas.org), other [PySAL](http://pysal.org) modules and -[networkX](http://networkx.github.io). -This container provides the minimal environment needed to run momepy. - -Documentation: http://docs.momepy.org/en/stable/ - -Source code: https://github.com/pysal/momepy - -Docker repository: https://hub.docker.com/repository/docker/martinfleis/momepy - -If you need the full stack of geospatial Python libraries, use [`darribas/gds_env`](https://darribas.org/gds_env/) which provides the updated platform for Geographic Data Science (including momepy). - -## Install -``` -docker pull martinfleis/momepy:0.4 -``` - -## Run -To start Jupyter lab instance: - -``` -docker run -it -p 8888:8888 -v ${PWD}:/home/jovyan/work martinfleis/momepy:0.4 -``` - -To start a command line interface: - -``` -docker run -it -p 8888:8888 -v ${PWD}:/home/jovyan/work martinfleis/momepy:0.4 start.sh -```