From f7d6bc64a81a02ce23fd58f0ee5c480214e1df92 Mon Sep 17 00:00:00 2001 From: infogulch Date: Tue, 9 Mar 2021 22:12:31 -0600 Subject: [PATCH] Build app from source --- CloudronManifest.json | 4 ++-- Dockerfile | 12 +++++++----- start.sh | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/CloudronManifest.json b/CloudronManifest.json index 12691e2..0e929e4 100644 --- a/CloudronManifest.json +++ b/CloudronManifest.json @@ -4,7 +4,7 @@ "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", + "version": "0.0.2", "healthCheckPath": "/", "httpPort": 3000, "addons": { @@ -21,5 +21,5 @@ "minBoxVersion": "5.3.0", "documentationUrl": "https://terminusdb.com/docs/terminusdb/#/", "forumUrl": "https://forum.cloudron.io/", - "changelog": "Initial build" + "changelog": "Build from source" } diff --git a/Dockerfile b/Dockerfile index 4cf01a1..1e379ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,14 +4,16 @@ 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 +RUN sudo apt-add-repository ppa:swi-prolog/stable && apt-get update && apt-get install cargo swi-prolog -y && apt-get clean +RUN swipl -g "pack_install(terminus_store_prolog, [interactive(false)])" +RUN git clone https://github.com/terminusdb/terminusdb \ + && cd terminusdb \ + && make COPY start.sh /app/code/start.sh RUN chmod +x /app/code/start.sh +RUN mkdir -p /app/data + CMD start.sh diff --git a/start.sh b/start.sh index 56fb9c9..52301d0 100644 --- a/start.sh +++ b/start.sh @@ -10,5 +10,5 @@ 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 +exec /usr/local/bin/gosu cloudron:cloudron /app/code/terminusdb/terminusdb serve