cc 3 years ago
parent
commit
015e5cbe48
2 changed files with 0 additions and 147 deletions
  1. 0 76
      jupyter/Dockerfile
  2. 0 71
      services.yml

+ 0 - 76
jupyter/Dockerfile

@@ -1,76 +0,0 @@
-FROM resin/rpi-raspbian:jessie-20170531
-
-# Set the variables
-ENV DEBIAN_FRONTEND noninteractive
-ENV PHTHON_VERSION 3.6.0
-
-WORKDIR /root
-
-# Install packages necessary for compiling python
-RUN apt-get update && apt-get upgrade && apt-get install -y \
-        build-essential \
-        libncursesw5-dev \
-        libgdbm-dev \
-        libc6-dev \
-        zlib1g-dev \
-        libsqlite3-dev \
-        tk-dev \
-        libssl-dev \
-        openssl \
-        curl \
-        vim \
-        mc
-
-# Download and compile python
-RUN apt-get install -y ca-certificates
-ADD "https://www.python.org/ftp/python/${PHTHON_VERSION}/Python-${PHTHON_VERSION}.tgz" /root/Python-${PHTHON_VERSION}.tgz
-RUN tar zxvf "Python-${PHTHON_VERSION}.tgz" \
-        && cd Python-${PHTHON_VERSION} \
-        && ./configure \
-        && make \
-        && make install \
-        && cd .. \
-        && rm -rf "./Python-${PHTHON_VERSION}" \
-        && rm "./Python-${PHTHON_VERSION}.tgz"
-
-# Update pip and install jupyter
-RUN apt-get install -y libncurses5-dev
-RUN pip3 install --upgrade pip
-RUN pip3 install readline notebook==5.2.0 pillow
-
-# Configure jupyter
-# we run this manually after mounting /root/.jupyter
-# RUN jupyter notebook --generate-config
-# RUN mkdir notebooks
-# RUN sed -i "/c.NotebookApp.open_browser/c c.NotebookApp.open_browser = False" /root/.jupyter/jupyter_notebook_config.py \
-#        && sed -i "/c.NotebookApp.ip/c c.NotebookApp.ip = '*'" /root/.jupyter/jupyter_notebook_config.py \
-#        && sed -i "/c.NotebookApp.notebook_dir/c c.NotebookApp.notebook_dir = '/root/notebooks'" /root/.jupyter/jupyter_notebook_config.py
-
-# change to letscode.00
-# sudo vi /opt/fast/jupyter/config_root/jupyter_notebook_config.py
-
-
-VOLUME /root/notebooks
-
-# Add Tini. Tini operates as a process subreaper for jupyter. This prevents kernel crashes.
-ENV TINI_VERSION 0.14.0
-ENV CFLAGS="-DPR_SET_CHILD_SUBREAPER=36 -DPR_GET_CHILD_SUBREAPER=37"
-
-ADD https://github.com/krallin/tini/archive/v${TINI_VERSION}.tar.gz /root/v${TINI_VERSION}.tar.gz
-RUN apt-get install -y cmake
-RUN tar zxvf v${TINI_VERSION}.tar.gz \
-        && cd tini-${TINI_VERSION} \
-        && cmake . \
-        && make \
-        && cp tini /usr/bin/. \
-        && cd .. \
-        && rm -rf "./tini-${TINI_VERSION}" \
-        && rm "./v${TINI_VERSION}.tar.gz"
-
-ENTRYPOINT ["/usr/bin/tini", "--"]
-
-EXPOSE 8888
-
-CMD ["jupyter", "notebook", "--allow-root"]
-
-HEALTHCHECK --interval=10s CMD curl -sS --fail http://localhost:8888 || exit 1

+ 0 - 71
services.yml

@@ -1,28 +1,5 @@
 ---
 
-jupyter: # pw: letscode.00
-  host:
-    himbeere:
-      fqdn: code.cere.duckdns.org
-      docker:
-        build: jupyter
-        ports: 17888:80
-        volumes:
-          - /mnt/ssdext/data/jupyter/notebooks:/root/notebooks
-          - /mnt/ssdext/data/jupyter/config:/root/.local
-          - /mnt/ssdext/data/jupyter/config_root:/root/.jupyter
-
-    #~ blaubeere:
-      #~ docker:
-        #~ build: jupyter
-        #~ ports: 17888:8888
-        #~ volumes:
-          #~ - /opt/jupyter/notebooks:/root/notebooks
-          #~ - /opt/jupyter/config:/root/.local
-          #~ - /opt/jupyter/config_root:/root/.jupyter
-  docker:
-    build: jupyter
-
 jlab:
   host: stachelbeere
   docker:
@@ -58,39 +35,6 @@ domoticz:
       backup_db: /bin/bash -c "cp -p /opt/domoticz/userdata/domoticz.db /opt/domoticz/userdata/domoticz.db.`date +%Y.%m.%d.%H.%M.%S`"
       cleanup_meter_values: python3 /fix_meter_values.py
 
-
-#~ influxdb: # receive data from domoticz
-  #~ host: himbeere
-  #~ fqdn: influx.cere.duckdns.org
-  #~ docker:
-    #~ image: arm32v7/influxdb:latest
-    #~ volumes:
-      #~ - /mnt/ssdext/data/influxdb/data:/var/lib/influxdb2
-      #~ # - /mnt/ssdext/data/influxdb/config:/etc/influxdb2
-    #~ env:
-      #~ VIRTUAL_PORT: 8086
-      #~ # DOCKER_INFLUXDB_INIT_MODE: setup
-      #~ # DOCKER_INFLUXDB_INIT_USERNAME: dirk
-      #~ # DOCKER_INFLUXDB_INIT_PASSWORD: "#*influx.00"
-      #~ # DOCKER_INFLUXDB_INIT_ORG: rothe
-      #~ # DOCKER_INFLUXDB_INIT_BUCKET: home_bucket
-      #~ # DOCKER_INFLUXDB_INIT_RETENTION: 1w
-      #~ # DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: "123XY.00"
-      #~ INFLUXDB_REPORTING_DISABLED: true
-      #~ INFLUXDB_ADMIN_USER: influx_admin
-      #~ INFLUXDB_ADMIN_PASSWORD: pass
-      #~ INFLUXDB_HTTP_AUTH_ENABLED: "true"
-
-#~ chronograf:
-  #~ host: himbeere
-  #~ fqdn: chronograf.cere.duckdns.org
-  #~ docker:
-    #~ image: arm32v7/chronograf:latest
-    #~ volumes:
-      #~ - /mnt/ssdext/data/chronograf/data:/var/lib/chronograf
-    #~ env:
-      #~ VIRTUAL_PORT: 8888
-
 grafana:
   host: himbeere
   fqdn: grafana.cere.duckdns.org
@@ -197,21 +141,6 @@ ngp: # nginx proxy with lets encrypt
         - /var/run/docker.sock:/var/run/docker.sock:ro
         - /mnt/ssdext/data/nginx/vhost.d:/etc/nginx/vhost.d:rw
 
-#~ nexus:
-  #~ host: himbeere
-  #~ docker:
-    #~ build: nexus
-    #~ volumes:
-      #~ - /etc/localtime:/etc/localtime
-      #~ - /mnt/ssdext/data/nexus:/opt/sonatype-work
-    #~ ports: 1381:8081
-
-#~ pypy:
-  #~ host: himbeere
-  #~ docker:
-    #~ build: pypy
-    #~ volumes:
-      #~ - /etc/localtime:/etc/localtime
 piusv:
   host: himbeere
   docker: