Skip to content

Commit aa31654

Browse files
committed
Require acceptance of license in Enterprise Edition.
1 parent cbbb009 commit aa31654

4 files changed

Lines changed: 52 additions & 2 deletions

File tree

3.3.0/community/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ RUN apk add --no-cache --quiet \
55
curl
66

77
ENV NEO4J_SHA256=dbbc65683d65018c48fc14d82ee7691ca75f8f6ea79823b21291970638de5d88 \
8-
NEO4J_TARBALL=neo4j-community-3.3.0-unix.tar.gz
8+
NEO4J_TARBALL=neo4j-community-3.3.0-unix.tar.gz \
9+
NEO4J_EDITION=community
910
ARG NEO4J_URI=http://dist.neo4j.org/neo4j-community-3.3.0-unix.tar.gz
1011

1112
COPY ./local-package/* /tmp/

3.3.0/community/docker-entrypoint.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
11
#!/bin/bash -eu
22

33
if [ "$1" == "neo4j" ]; then
4+
if [ "$NEO4J_EDITION" == "enterprise" ]; then
5+
if [ "${NEO4J_ACCEPT_LICENSE_AGREEMENT:=no}" != "yes" ]; then
6+
echo "
7+
In order to use Neo4j Enterprise Edition you must accept the license agreement.
8+
9+
(c) Network Engine for Objects in Lund AB. 2017. All Rights Reserved.
10+
Use of this Software without a proper commercial license with Neo4j,
11+
Inc. or its affiliates is prohibited.
12+
13+
Email inquiries can be directed to: licensing@neo4j.com
14+
15+
More information is also available at: https://neo4j.com/licensing/
16+
17+
18+
To accept the license agreemnt set the environment variable
19+
NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
20+
21+
To do this you can use the following docker argument:
22+
23+
--env=NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
24+
"
25+
exit 1
26+
fi
27+
fi
428

529
# Env variable naming convention:
630
# - prefix NEO4J_

3.3.0/enterprise/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ RUN apk add --no-cache --quiet \
55
curl
66

77
ENV NEO4J_SHA256=62914134ce50cbb251bb70ef9311516808c5278412aade1a13c03239a0c18214 \
8-
NEO4J_TARBALL=neo4j-enterprise-3.3.0-unix.tar.gz
8+
NEO4J_TARBALL=neo4j-enterprise-3.3.0-unix.tar.gz \
9+
NEO4J_EDITION=enterprise
910
ARG NEO4J_URI=http://dist.neo4j.org/neo4j-enterprise-3.3.0-unix.tar.gz
1011

1112
COPY ./local-package/* /tmp/

3.3.0/enterprise/docker-entrypoint.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
11
#!/bin/bash -eu
22

33
if [ "$1" == "neo4j" ]; then
4+
if [ "$NEO4J_EDITION" == "enterprise" ]; then
5+
if [ "${NEO4J_ACCEPT_LICENSE_AGREEMENT:=no}" != "yes" ]; then
6+
echo "
7+
In order to use Neo4j Enterprise Edition you must accept the license agreement.
8+
9+
(c) Network Engine for Objects in Lund AB. 2017. All Rights Reserved.
10+
Use of this Software without a proper commercial license with Neo4j,
11+
Inc. or its affiliates is prohibited.
12+
13+
Email inquiries can be directed to: licensing@neo4j.com
14+
15+
More information is also available at: https://neo4j.com/licensing/
16+
17+
18+
To accept the license agreemnt set the environment variable
19+
NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
20+
21+
To do this you can use the following docker argument:
22+
23+
--env=NEO4J_ACCEPT_LICENSE_AGREEMENT=yes
24+
"
25+
exit 1
26+
fi
27+
fi
428

529
# Env variable naming convention:
630
# - prefix NEO4J_

0 commit comments

Comments
 (0)