-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
542219e
commit b01fe84
Showing
2 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Dockerfile for YANG-DB graph database | ||
# MAINTAINER Lior Perry<www.youngdb.org> | ||
# Java | ||
FROM openjdk:8-alpine | ||
# Cerebro | ||
#FROM lmenezes/cerebro:0.8.3 | ||
RUN wget https://github.com/lmenezes/cerebro/releases/download/v0.8.4/cerebro-0.8.4.tgz -O /cerebro-0.8.4.tgz | ||
RUN tar -xvf /cerebro-0.8.4.tgz -C / | ||
RUN rm /cerebro-0.8.4.tgz | ||
|
||
RUN apk add --no-cache bash | ||
RUN mkdir -p /opt/engine | ||
WORKDIR /opt/engine | ||
|
||
# this is a specific yang.db assembly used for custom based ontology - a custom index schema | ||
COPY distrib/dragon-dragon /opt/engine | ||
COPY distrib/dragon-dragon.zip /opt/engine | ||
|
||
RUN chmod 755 /opt/engine/start-fuse-service.sh | ||
# clean | ||
RUN rm -rf /var/tmp/* | ||
|
||
# define health check api | ||
HEALTHCHECK --interval=5m --timeout=3s \ | ||
CMD curl -f http://0.0.0.0:8888/fuse/health || exit 1 | ||
|
||
# Run cerebro | ||
CMD ["/cerebro-0.8.4/bin/cerebro"] | ||
# Run fuse | ||
CMD ["/opt/engine/start-fuse-service.sh"] | ||
|
||
EXPOSE 8888 | ||
EXPOSE 9000 | ||
EXPOSE 9200 | ||
EXPOSE 9300 | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Dockerfile for YANG-DB graph database | ||
# MAINTAINER Lior Perry<www.youngdb.org> | ||
# Java | ||
FROM openjdk:8-alpine | ||
# Cerebro | ||
#FROM lmenezes/cerebro:0.8.3 | ||
RUN wget https://github.com/lmenezes/cerebro/releases/download/v0.8.4/cerebro-0.8.4.tgz -O /cerebro-0.8.4.tgz | ||
RUN tar -xvf /cerebro-0.8.4.tgz -C / | ||
RUN rm /cerebro-0.8.4.tgz | ||
|
||
RUN apk add --no-cache bash | ||
RUN mkdir -p /opt/engine | ||
WORKDIR /opt/engine | ||
|
||
# this is a specific yang.db assembly used for knowledge based ontology - a general purpose RDF schema | ||
COPY distrib/knowledge-knowledge /opt/engine | ||
COPY distrib/knowledge-fuse-source.zip /opt/engine | ||
|
||
RUN chmod 755 /opt/engine/start-fuse-service.sh | ||
# clean | ||
RUN rm -rf /var/tmp/* | ||
|
||
# define health check api | ||
HEALTHCHECK --interval=5m --timeout=3s \ | ||
CMD curl -f http://0.0.0.0:8888/fuse/health || exit 1 | ||
|
||
# Run cerebro | ||
CMD ["/cerebro-0.8.4/bin/cerebro"] | ||
# Run fuse | ||
CMD ["/opt/engine/start-fuse-service.sh"] | ||
|
||
EXPOSE 8888 | ||
EXPOSE 9000 | ||
EXPOSE 9200 | ||
EXPOSE 9300 | ||
|
||
|
||
|