diff --git a/CloudronManifest.json b/CloudronManifest.json index 0e929e4..ff91ed3 100644 --- a/CloudronManifest.json +++ b/CloudronManifest.json @@ -4,17 +4,18 @@ "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.2", + "version": "0.0.4", "healthCheckPath": "/", "httpPort": 3000, "addons": { + "proxyAuth": {} }, "optionalSso": true, "memoryLimit": 1610612736, "manifestVersion": 2, "website": "https://terminusdb.com", "contactEmail": "support@clourdon.io", - "icon": "", + "icon": "logo512.png", "tags": [ "graph database", "revision control" ], "mediaLinks": [], "postInstallMessage": "good luck", diff --git a/Dockerfile b/Dockerfile index 1e379ab..4d87b51 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,10 +10,10 @@ RUN git clone https://github.com/terminusdb/terminusdb \ && cd terminusdb \ && make +RUN mkdir -p /app/data + COPY start.sh /app/code/start.sh RUN chmod +x /app/code/start.sh -RUN mkdir -p /app/data - -CMD start.sh +CMD /app/code/start.sh diff --git a/start.sh b/start.sh index 52301d0..d89c79b 100644 --- a/start.sh +++ b/start.sh @@ -9,6 +9,14 @@ export TERMINUSDB_SERVER_PORT=3000 export TERMINUSDB_AUTOLOGIN=true export TERMINUSDB_ENABLE_WELCOME_SCREEN=true export TERMINUSDB_SERVER_DB_PATH=/app/data +export TERMINUSDB_HTTPS_ENABLED=false + +if [[ ! -f /app/data/.initialized ]]; then + echo "First start, initializing default database at '/app/data'" + /usr/local/bin/gosu cloudron:cloudron /app/code/terminusdb/terminusdb store init + touch /app/data/.initialized + echo "Done." +fi exec /usr/local/bin/gosu cloudron:cloudron /app/code/terminusdb/terminusdb serve