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",
"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"
}

View File

@ -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

View File

@ -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