FROM jupyter/minimal-notebook #FROM tensorflow/tensorflow:1.15.5-gpu-py3-jupyter #RUN echo Bla $uid_gid #RUN false #USER root #RUN apt-get update #RUN apt-get install -y wget #ARG uid_gid #RUN mkdir /home/user #RUN chown $uid_gid /home/user #ENV HOME=/home/user #RUN mkdir /work #RUN chown $uid_gid /work #USER $uid_gid #RUN cd /tmp; wget https://repo.anaconda.com/miniconda/Miniconda3-py39_4.9.2-Linux-x86_64.sh #RUN sh /tmp/Miniconda3-py39_4.9.2-Linux-x86_64.sh -b && rm /tmp/Miniconda3-py39_4.9.2-Linux-x86_64.sh #RUN conda install xeus-cling -c conda-forge #RUN chown $uid_gid /opt/conda/pkgs/urls.txt #RUN ls -la /work/miniconda3/bin #RUN true #ENV PATH=/home/user/miniconda3/bin:$PATH #RUN export PATH=$(echo $PATH | sed 's,/opt/conda/bin,/home/user/miniconda3/bin,') #ENV PATH=/home/user/miniconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin #RUN echo $PATH #RUN which conda #RUN false #RUN conda create -n cling RUN conda install xeus-cling notebook ipywidgets -c conda-forge RUN conda install opencv -c conda-forge #RUN conda run --no-capture-output -n cling conda install xeus-cling notebook ipywidgets -c conda-forge #RUN conda install -c conda-forge ipywidgets #RUN jupyter nbextension enable --py widgetsnbextension #RUN pip3 install matplotlib #RUN pip3 install pandas #RUN pip3 install seaborn #RUN pip3 install numpy scipy #RUN pip3 install ipyvolume #RUN pip3 install ipyvtk-simple pyvista RUN pip3 install pysolar USER root RUN apt-get update RUN apt-get install -y cmake git USER $NB_UID RUN git clone https://github.com/Algomorph/pyboostcvconverter RUN conda install -c conda-forge boost #RUN conda install -c conda-forge boost #RUN python -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))" RUN echo "#define NUMPY_IMPORT_ARRAY_RETVAL 0" | cat - pyboostcvconverter/src/python_module.cpp > /tmp/out && mv /tmp/out pyboostcvconverter/src/python_module.cpp #RUN bash -c 'cd pyboostcvconverter && mkdir build && cd build && echo cmake -DPYTHON_DESIRED_VERSION=3.X -DPYTHON_INCLUDE_DIR=$(python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") -DPYTHON_LIBRARIES=$(python -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))") .. && make' #RUN bash -c 'cd pyboostcvconverter && mkdir build && cd build && cmake -DPYTHON_DESIRED_VERSION=3.X -DPYTHON_INCLUDE_DIR=/opt/conda/include/python3.8 -DPYTHON_LIBRARIES=/opt/conda/lib .. && make' #RUN bash -c 'cd pyboostcvconverter && mkdir build && cd build && cmake -DPYTHON_DESIRED_VERSION=3.X -DPYTHON3_INCLUDE_DIR=/opt/conda/include/python3.8 -DPYTHON3_LIBRARY=/opt/conda/lib/python3.8/site-packages -DCMAKE_SKIP_RPATH=ON .. && make -j 4' RUN bash -c 'cd pyboostcvconverter && mkdir build && cd build && cmake -DPYTHON_DESIRED_VERSION=3.X -DPYTHON3_INCLUDE_DIR=/opt/conda/include/python3.8 -DPYTHON3_LIBRARY=/opt/conda/lib/python3.8/site-packages -DPYTHON3_PACKAGES_PATH=/opt/conda/lib/python3.8/site-packages .. && make -j 4' USER root RUN cd pyboostcvconverter/build && make install RUN conda install matplotlib -c conda-forge #RUN apt-get install -y strace RUN apt-get install -y libgl1 #RUN python -c "import cv2" RUN conda install scipy RUN conda install pandas RUN conda install -c conda-forge quaternion RUN conda install -c plotly plotly=4.14.3 # TODO: use conda for the following packages? RUN pip install exifread RUN pip install timezonefinder[numba] #RUN false # this fixes "xcpp -v" segfault when running as (non-existent) UID 1001 #RUN echo "jovyan:x:1001:100::/home/jovyan:/bin/bash" >> /etc/passwd RUN chmod -R a+rw /home/jovyan # hack: allow anyone to read/write ... allow running the installed tools as any user USER $NB_UID #WORKDIR /work