From 35009b403ce2b29bd69c94209865e60f44c5f31f Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sun, 4 Oct 2020 09:03:02 -0700 Subject: [PATCH] WIP: Neo4j --- backend/src/langs.ts | 8 ++++++++ scripts/docker-install-phase1.bash | 2 ++ scripts/docker-install-phase3c.bash | 3 +++ 3 files changed, 13 insertions(+) diff --git a/backend/src/langs.ts b/backend/src/langs.ts index 8cb7be9..32b997f 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -2272,6 +2272,14 @@ message: compile: "nekoc main.neko", run: "neko main", template: `$print("Hello, world!\\n"); +`, + }, + neo4j: { + name: "Neo4j", + setup: `cp -R /etc/neo4j conf && sed -i "s#/var/lib/neo4j/data#$PWD/data#; s#/var/log/neo4j#$PWD/logs#" conf/neo4j.conf`, + repl: `NEO4J_CONF="$PWD/conf" neo4j console`, + main: "main.cypher", + template: `RETURN "Hello, world!" `, }, nickle: { diff --git a/scripts/docker-install-phase1.bash b/scripts/docker-install-phase1.bash index 285758a..cb11e01 100755 --- a/scripts/docker-install-phase1.bash +++ b/scripts/docker-install-phase1.bash @@ -16,6 +16,7 @@ ubuntu_ver="$(lsb_release -rs)" ubuntu_name="$(lsb_release -cs)" curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - +curl -sSL https://debian.neo4j.com/neotechnology.gpg.key | apt-key add - curl -sSL https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - curl -sSL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - curl -sSL https://downloads.ceylon-lang.org/apt/ceylon-debian-repo.gpg.key | apt-key add - @@ -34,6 +35,7 @@ tee -a /etc/apt/sources.list.d/custom.list >/dev/null <