Closed palmoreck closed 3 years ago
Will be useful to give potential developers of processing systems a "Dockerfile standard" so their systems can be integrated in kube_sipecam framework.
Could be sth like:
FROM ubuntu:bionic ENV TIMEZONE America/Mexico_City ENV JUPYTERLAB_VERSION 2.1.4 ENV LANG C.UTF-8 ENV LC_ALL C.UTF-8 ENV DEBIAN_FRONTEND noninteractive ENV DEB_BUILD_DEPS="sudo nano less git python3-dev python3-pip python3-setuptools curl wget" ENV DEB_PACKAGES="" ENV PIP_PACKAGES_KALE="click==7.0 six==1.12.0 setuptools==41.0.0 urllib3==1.24.2 kubeflow-kale==0.5.0" RUN apt-get update && export $DEBIAN_FRONTEND && \ echo $TIMEZONE > /etc/timezone && apt-get install -y tzdata RUN apt-get update && apt-get install -y $DEB_BUILD_DEPS $DEB_PACKAGES && pip3 install --upgrade pip RUN curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - && apt-get install -y nodejs RUN pip3 install jupyter "jupyterlab<2.0.0" --upgrade RUN jupyter notebook --generate-config && sed -i "s/#c.NotebookApp.password = .*/c.NotebookApp.password = u'sha1:115e429a919f:21911277af52f3e7a8b59380804140d9ef3e2380'/" /root/.jupyter/jupyter_notebook_config.py RUN pip3 install $PIP_PACKAGES --upgrade RUN jupyter labextension install kubeflow-kale-launcher #install package, for example: RUN pip3 install "git+https://github.com/CONABIO/geonode.git#egg=geonode_conabio&subdirectory=python3_package_for_geonode" VOLUME ["/shared_volume"] #create url like: ENV NB_PREFIX geonodeurl #use url in: ENTRYPOINT ["/usr/local/bin/jupyter", "lab", "--ip=0.0.0.0", "--no-browser", "--allow-root", "--LabApp.allow_origin='*'", "--LabApp.base_url=geonodeurl"]
Solved by 1b49db5e099ed80c2300575f17961ac4eaef358b
Closes #21
Will be useful to give potential developers of processing systems a "Dockerfile standard" so their systems can be integrated in kube_sipecam framework.
Could be sth like: