Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

Commit

Permalink
Change install location of neo4j server to $CONDA_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
psychemedia committed Dec 18, 2019
1 parent 0fb77b0 commit 4aa256b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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*.)
Expand Down
6 changes: 4 additions & 2 deletions binder/postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion binder/start
Original file line number Diff line number Diff line change
@@ -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.