diff --git a/CloudronManifest.json b/CloudronManifest.json new file mode 100644 index 0000000..12691e2 --- /dev/null +++ b/CloudronManifest.json @@ -0,0 +1,25 @@ +{ + "id": "com.terminusdb.cloudronapp", + "title": "TerminusDB", + "author": "TerminusDB", + "description": "TerminusDB is an open-source graph database and document store. It is designed for collaboratively building data-intensive applications and knowledge graphs.", + "tagline": "If you want to collaborate with colleagues or build data-intensive applications, nothing will make you more productive.", + "version": "0.0.1", + "healthCheckPath": "/", + "httpPort": 3000, + "addons": { + }, + "optionalSso": true, + "memoryLimit": 1610612736, + "manifestVersion": 2, + "website": "https://terminusdb.com", + "contactEmail": "support@clourdon.io", + "icon": "", + "tags": [ "graph database", "revision control" ], + "mediaLinks": [], + "postInstallMessage": "good luck", + "minBoxVersion": "5.3.0", + "documentationUrl": "https://terminusdb.com/docs/terminusdb/#/", + "forumUrl": "https://forum.cloudron.io/", + "changelog": "Initial build" +} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4cf01a1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM cloudron/base:3.0.0@sha256:455c70428723e3a823198c57472785437eb6eab082e79b3ff04ea584faf46e92 + +ARG VERSION=4.2.0 + +WORKDIR /app/code + +RUN curl -L https://github.com/terminusdb/terminusdb/releases/download/v${VERSION}/terminusdb_${VERSION}_amd64.deb -o terminusdb.deb \ + && apt-get update \ + && apt-get install ./terminusdb.deb -y \ + && apt-get clean \ + && rm terminusdb.deb + +COPY start.sh /app/code/start.sh +RUN chmod +x /app/code/start.sh + +CMD start.sh + diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..56fb9c9 --- /dev/null +++ b/start.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -eu + +chown -R cloudron:cloudron /app/data + +export TERMINUSDB_ADMIN_PASS=root +export TERMINUSDB_SERVER_PORT=3000 +export TERMINUSDB_AUTOLOGIN=true +export TERMINUSDB_ENABLE_WELCOME_SCREEN=true +export TERMINUSDB_SERVER_DB_PATH=/app/data + +exec /usr/local/bin/gosu cloudron:cloudron /usr/local/bin/terminusdb serve +