Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Change install location of neo4j server to $CONDA_DIR

  • Loading branch information
psychemedia committed Dec 18, 2019
1 parent 0fb77b0 commit 4aa256b170498eb3d130ea4d30a7d2697263714c
Showing with 7 additions and 3 deletions.
  1. +2 −0 README.md
  2. +4 −2 binder/postBuild
  3. +1 −1 binder/start
@@ -4,6 +4,8 @@ Example of a Binderised repo running neo4j.

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/psychemedia/binder-neo4j/master)

The neo4j server is installed into `$CONDA_DIR` (by default, `/srv/conda`), the only guaranteed writeable path outside `$HOME`.

Demo test code in the `py/` folder.

(Since this repo also runs `jupytext`, if you click on the `neo4j-demo.py` file from the notebook server `tree/` page and it will open *as a notebook*.)
@@ -5,16 +5,18 @@ if [ ! -f neo4j-community-3.5.8-unix.tar.gz ]; then
fi

tar -xvf neo4j-community-3.5.8-unix.tar.gz
mv neo4j-community-3.5.8 ${CONDA_DIR}/
rm neo4j-community-3.5.8-unix.tar.gz

# Not sure if the neo4j web UI is working via the proxy
# This should allow the db to listen if it does...
# Comment it out if you'd rather be a bit more secure
echo "dbms.connectors.default_listen_address=0.0.0.0" >> neo4j-community-3.5.8/conf/neo4j.conf
echo "dbms.connectors.default_listen_address=0.0.0.0" >> ${CONDA_DIR}/neo4j-community-3.5.8/conf/neo4j.conf

# neo4j has aa default password: neo4j
# However, if you log in with that, the session will soon time out
# and you will be required to update the original default password
neo4j-community-3.5.8/bin/neo4j-admin set-initial-password neo4jbinder
${CONDA_DIR}/neo4j-community-3.5.8/bin/neo4j-admin set-initial-password neo4jbinder


#cypher kernel
@@ -1,6 +1,6 @@
#!/bin/bash
set -eux

neo4j-community-3.5.8/bin/neo4j start
${CONDA_DIR}/neo4j-community-3.5.8/bin/neo4j start

exec "$@"

0 comments on commit 4aa256b

Please sign in to comment.
You can’t perform that action at this time.