diff --git a/release/3.2.x/3.2.37-tp3/Dockerfile b/release/3.2.x/3.2.37-tp3/Dockerfile new file mode 100644 index 0000000..fe2da39 --- /dev/null +++ b/release/3.2.x/3.2.37-tp3/Dockerfile @@ -0,0 +1,53 @@ +############################################################ +# Dockerfile to run an OrientDB (Graph) Container +############################################################ + +FROM eclipse-temurin:8-jdk + +MAINTAINER OrientDB LTD (info@orientdb.com) + +# Override the orientdb download location with e.g.: +# docker build -t mine --build-arg ORIENTDB_DOWNLOAD_SERVER=https://repo1.maven.org/maven2/com/orientechnologies/ . +ARG ORIENTDB_DOWNLOAD_SERVER + +ENV ORIENTDB_VERSION 3.2.36 +ENV ORIENTDB_DOWNLOAD_MD5 9c7941c1e6bb5617b9f331fe9933e2c7 +ENV ORIENTDB_DOWNLOAD_SHA1 d70b8a8e2bc9208e2a141e23f2339b8202e8b966 + +ENV ORIENTDB_DOWNLOAD_URL ${ORIENTDB_DOWNLOAD_SERVER:-https://repo1.maven.org/maven2/com/orientechnologies}/orientdb-tp3/$ORIENTDB_VERSION/orientdb-tp3-$ORIENTDB_VERSION.tar.gz + +RUN apt update \ + && apt install -y curl wget \ + && rm -rf /var/lib/apt/lists/* + +#download distribution tar, untar and DON'T delete databases (tp3 endopoint won't works if db isn't present) +RUN mkdir /orientdb && \ + wget $ORIENTDB_DOWNLOAD_URL \ + && echo "$ORIENTDB_DOWNLOAD_MD5 *orientdb-tp3-$ORIENTDB_VERSION.tar.gz" | md5sum -c - \ + && echo "$ORIENTDB_DOWNLOAD_SHA1 *orientdb-tp3-$ORIENTDB_VERSION.tar.gz" | sha1sum -c - \ + && tar -xvzf orientdb-tp3-$ORIENTDB_VERSION.tar.gz -C /orientdb --strip-components=1 \ + && rm orientdb-tp3-$ORIENTDB_VERSION.tar.gz \ + && rm -rf /orientdb/databases/* + + +#overrides internal gremlin-server to set binding to 0.0.0.0 instead of localhost +ADD gremlin-server.yaml /orientdb/config + +ENV PATH /orientdb/bin:$PATH + +VOLUME ["/orientdb/backup", "/orientdb/databases", "/orientdb/config"] + +WORKDIR /orientdb + +#OrientDb binary +EXPOSE 2424 + +#OrientDb http +EXPOSE 2480 + +#Gremlin server +EXPOSE 8182 + +# Default command start the server +CMD ["server.sh"] + diff --git a/release/3.2.x/3.2.37-tp3/gremlin-server.yaml b/release/3.2.x/3.2.37-tp3/gremlin-server.yaml new file mode 100644 index 0000000..0dbb217 --- /dev/null +++ b/release/3.2.x/3.2.37-tp3/gremlin-server.yaml @@ -0,0 +1,60 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +host: 0.0.0.0 +port: 8182 +evaluationTimeout: 30000 +channelizer: org.apache.tinkerpop.gremlin.server.channel.WebSocketChannelizer +graphManager : com.orientechnologies.tinkerpop.server.OrientGremlinGraphManager +graphs: { + graph : ../config/demodb.properties +} +scriptEngines: { + gremlin-groovy: { + plugins: { org.apache.tinkerpop.gremlin.server.jsr223.GremlinServerGremlinPlugin: {}, + org.apache.tinkerpop.gremlin.orientdb.jsr223.OrientDBGremlinPlugin: {}, + org.apache.tinkerpop.gremlin.jsr223.ImportGremlinPlugin: {classImports: [java.lang.Math], methodImports: [java.lang.Math#*]}, + org.apache.tinkerpop.gremlin.jsr223.ScriptFileGremlinPlugin: {files: [../config/demodb.groovy]}, + org.apache.tinkerpop.gremlin.groovy.jsr223.GroovyCompilerGremlinPlugin: {compilerConfigurationOptions: { OptimizationOptions: { asmResolving: false}}} + } + } +} + +serializers: + - { className: org.apache.tinkerpop.gremlin.util.ser.GraphSONMessageSerializerV3, config: { ioRegistries: [org.apache.tinkerpop.gremlin.orientdb.io.OrientIoRegistry] }} # application/json +processors: + - { className: org.apache.tinkerpop.gremlin.server.op.session.SessionOpProcessor, config: { sessionTimeout: 28800000 }} + - { className: org.apache.tinkerpop.gremlin.server.op.traversal.TraversalOpProcessor, config: { cacheExpirationTime: 600000, cacheMaxSize: 1000 }} +metrics: { + consoleReporter: {enabled: true, interval: 180000}, + csvReporter: {enabled: true, interval: 180000, fileName: /tmp/gremlin-server-metrics.csv}, + jmxReporter: {enabled: true}, + slf4jReporter: {enabled: true, interval: 180000}} +strictTransactionManagement: false +maxInitialLineLength: 4096 +maxHeaderSize: 8192 +maxChunkSize: 8192 +maxContentLength: 65536 +maxAccumulationBufferComponents: 1024 +resultIterationBatchSize: 64 +writeBufferLowWaterMark: 32768 +writeBufferHighWaterMark: 65536 +authentication: { + authenticator: com.orientechnologies.tinkerpop.server.auth.OGremlinServerAuthenticator + } +ssl: { + enabled: false} diff --git a/release/3.2.x/3.2.37/Dockerfile b/release/3.2.x/3.2.37/Dockerfile new file mode 100644 index 0000000..7309bc2 --- /dev/null +++ b/release/3.2.x/3.2.37/Dockerfile @@ -0,0 +1,47 @@ +############################################################ +# Dockerfile to run an OrientDB (Graph) Container +############################################################ + +FROM eclipse-temurin:8-jdk + +MAINTAINER OrientDB LTD (info@orientdb.com) + +# Override the orientdb download location with e.g.: +# docker build -t mine --build-arg ORIENTDB_DOWNLOAD_SERVER=https://repo1.maven.org/maven2/com/orientechnologies/ . +ARG ORIENTDB_DOWNLOAD_SERVER + +ENV ORIENTDB_VERSION 3.2.36 +ENV ORIENTDB_DOWNLOAD_MD5 977653e88a7c37e8593ed0dc5ca6a554 +ENV ORIENTDB_DOWNLOAD_SHA1 be9c442524d101d29f33a3542012bfc7b7d88862 + +ENV ORIENTDB_DOWNLOAD_URL ${ORIENTDB_DOWNLOAD_SERVER:-https://repo1.maven.org/maven2/com/orientechnologies}/orientdb-community/$ORIENTDB_VERSION/orientdb-community-$ORIENTDB_VERSION.tar.gz + +RUN apt update \ + && apt install -y curl wget \ + && rm -rf /var/lib/apt/lists/* + +#download distribution tar, untar and delete databases +RUN mkdir /orientdb && \ + wget $ORIENTDB_DOWNLOAD_URL \ + && echo "$ORIENTDB_DOWNLOAD_MD5 *orientdb-community-$ORIENTDB_VERSION.tar.gz" | md5sum -c - \ + && echo "$ORIENTDB_DOWNLOAD_SHA1 *orientdb-community-$ORIENTDB_VERSION.tar.gz" | sha1sum -c - \ + && tar -xvzf orientdb-community-$ORIENTDB_VERSION.tar.gz -C /orientdb --strip-components=1 \ + && rm orientdb-community-$ORIENTDB_VERSION.tar.gz \ + && rm -rf /orientdb/databases/* + + +ENV PATH /orientdb/bin:$PATH + +VOLUME ["/orientdb/backup", "/orientdb/databases", "/orientdb/config"] + +WORKDIR /orientdb + +#OrientDb binary +EXPOSE 2424 + +#OrientDb http +EXPOSE 2480 + +# Default command start the server +CMD ["server.sh"] +