Build app from source

This commit is contained in:
Joe 2021-03-09 22:12:31 -06:00
parent 5392395115
commit f7d6bc64a8
3 changed files with 10 additions and 8 deletions

View File

@ -4,7 +4,7 @@
"author": "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.", "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.", "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": "/", "healthCheckPath": "/",
"httpPort": 3000, "httpPort": 3000,
"addons": { "addons": {
@ -21,5 +21,5 @@
"minBoxVersion": "5.3.0", "minBoxVersion": "5.3.0",
"documentationUrl": "https://terminusdb.com/docs/terminusdb/#/", "documentationUrl": "https://terminusdb.com/docs/terminusdb/#/",
"forumUrl": "https://forum.cloudron.io/", "forumUrl": "https://forum.cloudron.io/",
"changelog": "Initial build" "changelog": "Build from source"
} }

View File

@ -4,14 +4,16 @@ ARG VERSION=4.2.0
WORKDIR /app/code WORKDIR /app/code
RUN curl -L https://github.com/terminusdb/terminusdb/releases/download/v${VERSION}/terminusdb_${VERSION}_amd64.deb -o terminusdb.deb \ RUN sudo apt-add-repository ppa:swi-prolog/stable && apt-get update && apt-get install cargo swi-prolog -y && apt-get clean
&& apt-get update \ RUN swipl -g "pack_install(terminus_store_prolog, [interactive(false)])"
&& apt-get install ./terminusdb.deb -y \ RUN git clone https://github.com/terminusdb/terminusdb \
&& apt-get clean \ && cd terminusdb \
&& rm terminusdb.deb && make
COPY start.sh /app/code/start.sh COPY start.sh /app/code/start.sh
RUN chmod +x /app/code/start.sh RUN chmod +x /app/code/start.sh
RUN mkdir -p /app/data
CMD start.sh CMD start.sh

View File

@ -10,5 +10,5 @@ export TERMINUSDB_AUTOLOGIN=true
export TERMINUSDB_ENABLE_WELCOME_SCREEN=true export TERMINUSDB_ENABLE_WELCOME_SCREEN=true
export TERMINUSDB_SERVER_DB_PATH=/app/data 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