소스 검색

latest home stuff

dirkse 8 년 전
부모
커밋
b8a8de95df
5개의 변경된 파일35개의 추가작업 그리고 2개의 파일을 삭제
  1. 17 0
      alexa/Dockerfile
  2. 1 0
      alexa/server.py
  3. 1 1
      autocli.yml
  4. 7 0
      jupyter/Dockerfile
  5. 9 1
      services.yml

+ 17 - 0
alexa/Dockerfile

@@ -0,0 +1,17 @@
+FROM resin/rpi-raspbian:jessie-20170531
+
+RUN apt-get update
+RUN apt-get install -y python python-dev
+
+ADD https://bootstrap.pypa.io/get-pip.py /tmp/get-pip.py
+RUN python /tmp/get-pip.py
+RUN pip install flask flask-ask unidecode
+
+COPY server.py /app/server.py
+
+WORKDIR /app
+
+EXPOSE 80
+
+CMD python -u /app/server.py
+

+ 1 - 0
alexa/server.py

@@ -0,0 +1 @@
+

+ 1 - 1
autocli.yml

@@ -22,7 +22,7 @@ image:
     build_host: himbeere
 
 service:
-    path: c:\apps\_home\services.yml
+    infrastructure: c:\apps\_home\services.yml
 
 docker_host:
     names: [himbeere]

+ 7 - 0
jupyter/Dockerfile

@@ -49,6 +49,13 @@ RUN pip3 install readline jupyter
 #        && 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
+
+
+
+passwd()
+
 VOLUME /root/notebooks
 
 # Add Tini. Tini operates as a process subreaper for jupyter. This prevents kernel crashes.

+ 9 - 1
services.yml

@@ -1,6 +1,6 @@
 ---
 
-jupyter:
+jupyter: # pw: letscode.00
   host: himbeere
   fqdn: code.cere.duckdns.org
   docker:
@@ -109,6 +109,7 @@ gogs:
     ports: 3022:22
     env:
       VIRTUAL_PORT: 3000
+
 graphite:
   host: himbeere
   docker:
@@ -121,3 +122,10 @@ graphite:
       - 13080:8000
       - 8125:8125/udp
       - 8126:8126
+
+alexa:
+  fqdn: alexa.cere.duckdns.org
+  host: himbeere
+  docker:
+    build: alexa
+