Clone directly to /app/code; add CloudronManifest.json to image
This commit is contained in:
parent
2201ba83b1
commit
13dfae89e9
@ -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.6",
|
"version": "0.0.7",
|
||||||
"healthCheckPath": "/",
|
"healthCheckPath": "/",
|
||||||
"httpPort": 3000,
|
"httpPort": 3000,
|
||||||
"addons": {
|
"addons": {
|
||||||
|
@ -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 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 swipl -g "pack_install(terminus_store_prolog, [interactive(false)])"
|
||||||
RUN git clone https://github.com/terminusdb/terminusdb \
|
RUN git clone https://github.com/terminusdb/terminusdb . && make
|
||||||
&& cd terminusdb \
|
|
||||||
&& make
|
|
||||||
|
|
||||||
RUN mkdir -p /app/data
|
RUN mkdir -p /app/data
|
||||||
|
|
||||||
COPY start.sh /app/code/start.sh
|
COPY start.sh /app/code/
|
||||||
RUN chmod +x /app/code/start.sh
|
RUN chmod +x /app/code/start.sh
|
||||||
|
|
||||||
|
COPY CloudronManifest.json /app/code/
|
||||||
|
|
||||||
CMD /app/code/start.sh
|
CMD /app/code/start.sh
|
||||||
|
|
||||||
|
4
start.sh
4
start.sh
@ -13,10 +13,10 @@ export TERMINUSDB_HTTPS_ENABLED=false
|
|||||||
|
|
||||||
if [[ ! -f /app/data/.initialized ]]; then
|
if [[ ! -f /app/data/.initialized ]]; then
|
||||||
echo "First start, initializing default database at '/app/data'"
|
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
|
touch /app/data/.initialized
|
||||||
echo "Done."
|
echo "Done."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec /usr/local/bin/gosu cloudron:cloudron /app/code/terminusdb/terminusdb serve
|
exec /usr/local/bin/gosu cloudron:cloudron /app/code/terminusdb serve
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user