Browse Source

first commit for MOS

Signed-off-by: Nicholas Tan Jerome <nicholas.jerome@kit.edu>
Nicholas Tan Jerome 5 years ago
commit
0f8721aa31
7 changed files with 29 additions and 0 deletions
  1. 7 0
      .gitignore
  2. 3 0
      .gitmodules
  3. 6 0
      app.py
  4. BIN
      background.png
  5. 1 0
      bora
  6. 9 0
      requirements.txt
  7. 3 0
      trigger.sh

+ 7 - 0
.gitignore

@@ -0,0 +1,7 @@
+config.yaml
+cache.yaml
+style.yaml
+.tmp.yaml
+*.yaml
+backup
+images/

+ 3 - 0
.gitmodules

@@ -0,0 +1,3 @@
+[submodule "bora"]
+	path = bora
+	url = https://github.com/kit-ipe/bora.git

+ 6 - 0
app.py

@@ -0,0 +1,6 @@
+import subprocess
+import os
+from shutil import copyfile
+
+copyfile("./background.png", "./bora/static/background.png")
+subprocess.call(["python", "./bora/core.py"])

BIN
background.png


+ 1 - 0
bora

@@ -0,0 +1 @@
+Subproject commit 6f42327669e1ea1401a06cdd4961c0d3456a3782

+ 9 - 0
requirements.txt

@@ -0,0 +1,9 @@
+PyYAML==3.12
+backports-abc==0.4
+backports.ssl-match-hostname==3.5.0.1
+certifi==2016.8.31
+requests==2.11.1
+singledispatch==3.4.0.3
+six==1.10.0
+tornado==4.4.1
+wsgiref==0.1.2

+ 3 - 0
trigger.sh

@@ -0,0 +1,3 @@
+# This is a manual trigger to the CPS pod at the OpenShift platform.
+# Only run this when the webhook is not working.
+curl -X POST -k https://kaas.kit.edu:8443/oapi/v1/namespaces/bora/buildconfigs/cps/webhooks/<SECRET>/generic