From f7bc284dd99f75cc644e97d77bae111ba6af5516 Mon Sep 17 00:00:00 2001
From: Guillaume Schurck <g.schurck@gmail.com>
Date: Sun, 20 Nov 2022 21:17:38 +0100
Subject: [PATCH] clean neo4j config

---
 neo4j/Dockerfile        | 14 --------------
 neo4j/script.sh         |  1 -
 neo4j/scripts/import.sh |  1 +
 3 files changed, 1 insertion(+), 15 deletions(-)
 delete mode 100755 neo4j/script.sh
 create mode 100644 neo4j/scripts/import.sh

diff --git a/neo4j/Dockerfile b/neo4j/Dockerfile
index 2b3baeb..25461ce 100755
--- a/neo4j/Dockerfile
+++ b/neo4j/Dockerfile
@@ -1,19 +1,5 @@
 FROM neo4j:4.4.0
 
-
-#ARG UID
-#ARG GID
-#
-#ENV UID=${UID}
-#ENV GID=${GID}
-#
-#RUN addgroup -g ${GID} --system neo4j
-#RUN adduser -G neo4j --system -D -s /bin/sh -u ${UID} neo4j
-#COPY import/* import/
-#RUN bash -c "neo4j-admin load --from=/import/software-graph.dump --verbose --database=software-graph"
-#RUN bash -c "neo4j-admin load --from=import/software-graph.dump --database=data --force --verbose"
-#RUN bash -c "cypher-shell -u neo4j -p test --non-interactive -f import/data_cypher.cypher"
-
 USER neo4j
 
 EXPOSE 7474 7473 7687
\ No newline at end of file
diff --git a/neo4j/script.sh b/neo4j/script.sh
deleted file mode 100755
index cd539d6..0000000
--- a/neo4j/script.sh
+++ /dev/null
@@ -1 +0,0 @@
-neo4j-admin load --from=import/software-graph.dump --database=neo4j --force
\ No newline at end of file
diff --git a/neo4j/scripts/import.sh b/neo4j/scripts/import.sh
new file mode 100644
index 0000000..7c19464
--- /dev/null
+++ b/neo4j/scripts/import.sh
@@ -0,0 +1 @@
+cypher-shell -u neo4j -p test --non-interactive -f import/data_cypher.cypher
\ No newline at end of file
-- 
GitLab