deploy1 6 年之前
当前提交
f0049b7453
共有 4 个文件被更改,包括 127 次插入0 次删除
  1. 35 0
      CloudronManifest.json
  2. 50 0
      Dockerfile
  3. 1 0
      README.md
  4. 41 0
      start.sh

+ 35 - 0
CloudronManifest.json

@@ -0,0 +1,35 @@
+{
+    "id": "dk.tum.serverarium",
+    "title": "serverarium app",
+    "author": "boot",
+    "description": "file://DESCRIPTION.md",
+    "changelog": "./CHANGELOG",
+    "tagline": "serverarium",
+    "version": "0.0.0",
+    "healthCheckPath": "/healthcheck",
+    "httpPort": 3004,
+    "addons": {
+        "ldap": {},
+        "localstorage": {}
+    },
+    "tcpPorts": {
+        "S_PORT": {
+            "title": "S Port",
+            "description": "S Port.",
+            "defaultValue": 11299
+        },
+        "B_PORT": {
+            "title": "B Port",
+            "description": "B Port.",
+            "defaultValue": 4382
+        }
+    },
+    "manifestVersion": 1,
+    "website": "",
+    "contactEmail": "",
+    "icon": "logo.png",
+    "tags": [
+        "serverarium"
+    ],
+    "mediaLinks": []
+}

+ 50 - 0
Dockerfile

@@ -0,0 +1,50 @@
+FROM docker.iske.dk/base-image:0.0.1
+
+RUN mkdir -p /app/code
+WORKDIR /app/code
+
+#RUN ln /
+
+RUN apt-get update -y 
+
+#RUN npm install -g hypercored
+#RUN npm install -g dat
+#RUN npm install -g pm2  
+
+#WORKDIR /app
+#RUN npm install https://git.tum.dk/tum.dk/aserver/archive/v0.0.14.tar.gz
+
+RUN ln -s /usr/local/node-8.12.0/bin/node /usr/bin/node
+
+#RUN npm install -g openpgp
+RUN npm install -g https://git.tum.dk/tum.dk/servera/archive/v0.0.18.tar.gz --unsafe-perm
+
+
+#RUN curl -L https://git.tum.dk/tum.dk/aserver/archive/v0.0.1.tar.gz | tar -vxz --strip-components 1 -f -
+
+#RUN npm install 
+
+
+
+# node_modules have to be in data to allow plugins to be installable at runtime
+#RUN cd /app/code/src && npm install && \
+#    ln -s /app/data/node_modules /app/code/node_modules
+
+# https://github.com/ether/etherpad-lite/issues/2683
+#RUN touch src/.ep_initialized
+
+#COPY settings.json.template /app/code/settings.json.template
+#RUN mv src/static/custom src/static/custom_templates && ln -s /app/data/custom src/static/custom
+
+# make these writable (var is used for cache)
+# node_modules contains plugins, the etherpad code is only linked into /app/data/node_modules
+#RUN ln -s /app/data/APIKEY.txt /app/code/APIKEY.txt && \
+#    ln -s /app/data/SESSIONKEY.txt /app/code/SESSIONKEY.txt && \
+#    rm -rf /app/code/var && ln -s /run/etherpad-lite/var /app/code/var && \
+#    rm -rf /home/cloudron/.npm && ln -s /tmp/.npm /home/cloudron/.npm && \
+#    rm -rf /root/.npm && ln -s /tmp/.npm /root/.npm
+#COPY index.js /app/code/
+
+COPY start.sh /app/code/
+
+CMD [ "/app/code/start.sh" ]

+ 1 - 0
README.md

@@ -0,0 +1 @@
+##serveraium

+ 41 - 0
start.sh

@@ -0,0 +1,41 @@
+#!/bin/bash
+
+echo "START"
+
+ 
+
+cd /app/data
+
+  
+echo "PATH: " $PATH
+echo "NODE:" $(which node)  
+
+echo "SERVERA:" $(which servera) 
+
+#node /app/code/index.js
+
+servera --verbose
+
+#dat dat://0b8c56d3dcf9e3eae168a883cc131e1e6a1780172ff3f53f0c60abcf4cac2436 ./demo 
+
+#cd ./demo 
+#dat pull
+
+
+
+
+#if [[ -f ./demo/server.js ]]; then
+#	node ./demo/server.js
+#
+#else
+#	echo "no server"
+#fi
+
+
+
+
+
+
+
+
+