diff --git a/Dockerfile b/Dockerfile index c1a8ddb..bad3afa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,26 +1,31 @@ -FROM python:3.8 +FROM ubuntu:20.04 ARG uid RUN apt-get update && apt-get install -y \ default-mysql-client \ + libmysqlclient-dev \ git \ nano \ vim +RUN apt-get install -y python3.8 +RUN apt-get install -y python3-pip + + # DEV only # for dot => PNG diagrams generation with pyreverse (pylint) +RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata RUN apt-get install -y graphviz graphviz-dev +RUN apt-get install -y python3-tk # Guitastro RUN apt-get install -y \ # - ASTROMETRY.NET (in order to process images locally, without having to send (big) images to astrometry.net) - astrometry.net astrometry-data-tycho2 + astrometry.net astrometry-data-tycho2 \ #astrometry-data-2mass # - PIL - #python3-pil python3-pil.imagetk - #python3-venv - #python3-pip + python3-pil python3-pil.imagetk # - INDI => for Guitastro # https://indilib.org/get-indi/download-ubuntu.html @@ -36,16 +41,16 @@ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 487CEC2B3F #RUN apt-key adv --keyserver hkp://pool.sks-keyservers.net:80 --recv-keys 487CEC2B3F33A288 #10 1.751 E: The repository 'http://ppa.launchpad.net/mutlaqja/ppa/ubuntu jammy InRelease' is not signed. RUN apt-get update -#RUN apt-get install -y indi-full -#RUN apt-get install -y gsc -#RUN apt-get install -y kstars-bleeding -#RUN apt-get install -y libindi1 -#RUN apt-get install -y indi-bin -#RUN apt-get install -y swig -#RUN apt-get install -y libz3-dev -#RUN apt-get install -y libcfitsio-dev -#RUN apt-get install -y libnova-dev -#RUN apt-get install -y libindi-dev +RUN apt-get install -y indi-full +RUN apt-get install -y gsc +RUN apt-get install -y kstars-bleeding +RUN apt-get install -y libindi1 +RUN apt-get install -y indi-bin +RUN apt-get install -y swig +RUN apt-get install -y libz3-dev +RUN apt-get install -y libcfitsio-dev +RUN apt-get install -y libnova-dev +RUN apt-get install -y libindi-dev # Obligatoire ? #RUN pip install --user --install-option="--prefix=" pyindi-client @@ -58,11 +63,14 @@ RUN rm ./astap_amd64.deb # - PYLON (Cameras BASLER) => for Guitastro # https://www.baslerweb.com/en/products/software/basler-pylon-camera-software-suite/ +# (you will have to fill a form to be able to download) # pylon_6.3.0.23157_x86_64_setup.tar.gz # tar -xvf pylon_6.3.0.23157_x86_64_setup.tar.gz # copier le fichier pylon_6.3.0.23157_x86_64.tar.gz à l’endroit où installer le logiciel. # tar -xvf pylon_6.3.0.23157_x86_64.tar.gz # apt-get install ./pylon_6.3.0.23157-deb0_amd64.deb +COPY ./install/guitastro/pylon_6.3.0.23157-deb0_amd64.deb . +RUN apt-get install ./pylon_6.3.0.23157-deb0_amd64.deb # Guitastro DEV only @@ -75,6 +83,10 @@ RUN rm ./astap_amd64.deb # apt install spyder # apt install graphviz libgraphviz-dev +#RUN apt-get install -y firefox x11vnc xvfb +#RUN echo "exec firefox" > ~/.xinitrc && chmod +x ~/.xinitrc +#CMD ["x11vnc", "-create", "-forever"] +#RUN x11vnc -create -forever # Get IRAP self signed certificate @@ -92,9 +104,9 @@ WORKDIR /home/pyros_user/app USER pyros_user RUN pip install --user --upgrade pip -RUN pip install --user wheel +#RUN pip install --user wheel # TODO: pourquoi numpy ??? A virer ? -RUN pip install --user numpy +#RUN pip install --user numpy # Copy local host machine files to image COPY --chown=pyros_user:pyros_user . . -- libgit2 0.21.2