Permalink
Browse files

Require acceptance of license in Enterprise Edition.

  • Loading branch information...
srbaker committed Nov 1, 2017
1 parent cbbb009 commit aa31654ee8544cd544b369d2646cf372086f7b70
@@ -5,7 +5,8 @@ RUN apk add --no-cache --quiet \
curl

ENV NEO4J_SHA256=dbbc65683d65018c48fc14d82ee7691ca75f8f6ea79823b21291970638de5d88 \
NEO4J_TARBALL=neo4j-community-3.3.0-unix.tar.gz
NEO4J_TARBALL=neo4j-community-3.3.0-unix.tar.gz \
NEO4J_EDITION=community
ARG NEO4J_URI=http://dist.neo4j.org/neo4j-community-3.3.0-unix.tar.gz

COPY ./local-package/* /tmp/
@@ -1,6 +1,30 @@
#!/bin/bash -eu

if [ "$1" == "neo4j" ]; then
if [ "$NEO4J_EDITION" == "enterprise" ]; then
if [ "${NEO4J_ACCEPT_LICENSE_AGREEMENT:=no}" != "yes" ]; then
echo "
In order to use Neo4j Enterprise Edition you must accept the license agreement.
(c) Network Engine for Objects in Lund AB. 2017. All Rights Reserved.
Use of this Software without a proper commercial license with Neo4j,
Inc. or its affiliates is prohibited.
Email inquiries can be directed to: licensing@neo4j.com
More information is also available at: https://neo4j.com/licensing/
To accept the license agreemnt set the environment variable
NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
To do this you can use the following docker argument:
--env=NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
"
exit 1
fi
fi

# Env variable naming convention:
# - prefix NEO4J_
@@ -5,7 +5,8 @@ RUN apk add --no-cache --quiet \
curl

ENV NEO4J_SHA256=62914134ce50cbb251bb70ef9311516808c5278412aade1a13c03239a0c18214 \
NEO4J_TARBALL=neo4j-enterprise-3.3.0-unix.tar.gz
NEO4J_TARBALL=neo4j-enterprise-3.3.0-unix.tar.gz \
NEO4J_EDITION=enterprise
ARG NEO4J_URI=http://dist.neo4j.org/neo4j-enterprise-3.3.0-unix.tar.gz

COPY ./local-package/* /tmp/
@@ -1,6 +1,30 @@
#!/bin/bash -eu

if [ "$1" == "neo4j" ]; then
if [ "$NEO4J_EDITION" == "enterprise" ]; then
if [ "${NEO4J_ACCEPT_LICENSE_AGREEMENT:=no}" != "yes" ]; then
echo "
In order to use Neo4j Enterprise Edition you must accept the license agreement.
(c) Network Engine for Objects in Lund AB. 2017. All Rights Reserved.
Use of this Software without a proper commercial license with Neo4j,
Inc. or its affiliates is prohibited.
Email inquiries can be directed to: licensing@neo4j.com
More information is also available at: https://neo4j.com/licensing/
To accept the license agreemnt set the environment variable
NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
To do this you can use the following docker argument:
--env=NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
"
exit 1
fi
fi

# Env variable naming convention:
# - prefix NEO4J_

0 comments on commit aa31654

Please sign in to comment.