Skip to content

Commit

Permalink
Require acceptance of license in Enterprise Edition.
Browse files Browse the repository at this point in the history
  • Loading branch information
srbaker committed Nov 1, 2017
1 parent cbbb009 commit aa31654
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 2 deletions.
3 changes: 2 additions & 1 deletion 3.3.0/community/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
24 changes: 24 additions & 0 deletions 3.3.0/community/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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_
Expand Down
3 changes: 2 additions & 1 deletion 3.3.0/enterprise/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
24 changes: 24 additions & 0 deletions 3.3.0/enterprise/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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_
Expand Down

0 comments on commit aa31654

Please sign in to comment.