Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.
Stéphane Traumat edited this page Nov 21, 2019 · 18 revisions

How-to

Reset the database.

First, stop neo4j services with the command :

service neo4j stop

Then, delete all the data :

rm -rdf /var/lib/neo4j/data/

Restart the service neo4j service with the command :

service neo4j start

You will have to set again the password with the command :

curl -H "Content-Type: application/json" -X POST -d '{"password":"YOUR_NEW_PASSWORD"}' -u neo4j:neo4j http://localhost:7474/user/neo4j/password

Database backup

sudo neo4j-admin dump --database=graph.db --to=/mnt/disk/backup/2016-11-03.dump

Audit tomcat8 and neo4j memory.

On your server create, a file named jstatd.policy with this content :

grant codebase "file:${java.home}/../lib/tools.jar" {
        permission java.security.AllPermission;
};

Then run on your server :

jstatd -J-Djava.security.policy=jstatd.policy

On your computer, run jvisualvm and connect to your server.

Make a release.

First, change the docker release in docker-compose, then, in the blockchain2graph directory.

Switching remote URLs from HTTPS to SSH

Use git remote -v to check if in https ou ssh.

Switch to ssh : git remote set-url origin git@github.com:straumat/blockchain2graph.git

Start the release

First of all, change the docker-compose release number of blockchain2graph.

mvn gitflow:release-start

Finalize the release

mvn gitflow:release-finish

Push all commits and tags

git push --tags;git push origin master;git push origin development

Docker installation for continious integration.

  • Install docker with this documentation.
  • Allow user to use docker without being root : gpasswd -a $USER docker;newgrp docker.