Clone directly to /app/code; add CloudronManifest.json to image

This commit is contained in:
Joe 2021-03-10 11:07:14 -06:00
parent 2201ba83b1
commit 13dfae89e9
3 changed files with 7 additions and 7 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.6",
"version": "0.0.7",
"healthCheckPath": "/",
"httpPort": 3000,
"addons": {

View File

@ -6,14 +6,14 @@ WORKDIR /app/code
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
RUN git clone https://github.com/terminusdb/terminusdb . && make
RUN mkdir -p /app/data
COPY start.sh /app/code/start.sh
COPY start.sh /app/code/
RUN chmod +x /app/code/start.sh
COPY CloudronManifest.json /app/code/
CMD /app/code/start.sh

View File

@ -13,10 +13,10 @@ 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
/usr/local/bin/gosu cloudron:cloudron /app/code/terminusdb store init
touch /app/data/.initialized
echo "Done."
fi
exec /usr/local/bin/gosu cloudron:cloudron /app/code/terminusdb/terminusdb serve
exec /usr/local/bin/gosu cloudron:cloudron /app/code/terminusdb serve