14 Commits

Author SHA1 Message Date
Robert Schäfer
d579d19ad2 Modify migrate for development environment 2019-02-14 17:30:17 +01:00
Robert Schäfer
56936c4038 Setup a routine how to create indices initially
In order to create the indices programmatically we need to change the
default password for security concerns. To create the user we need to
start the neo4j database. So I decided to provide a bash script that
let us do it once the container are started.

In production we must change the NEO4J_PASSWORD.
2019-02-14 16:15:58 +01:00
Robert Schäfer
5492b282bc Refactoring: No uploads/ vol,access neo4j directly
Digital Ocean does not support shared directories. So we have to uploads
the images in `/uploads` via `kubectl cp` or something similar.
Likewise, it is not possible to share the exported mongodb .json files
with neo4j container. Therefore let's install `cypher-shell`, included
in `neo4j` package, to directly open a neo4j connection and bulk import
the data.
2019-02-04 14:31:40 +01:00
Robert Schäfer
494748c4c4 Import shouts 2019-01-22 12:48:06 +01:00
Robert Schäfer
932a593cfa Import follows 2019-01-22 12:48:06 +01:00
Robert Schäfer
ce7ce40272 Import badges 2019-01-22 12:48:06 +01:00
Robert Schäfer
f69a0daeef Import categories, manually assign correct icon
Big fun 👍
2019-01-22 12:48:06 +01:00
Robert Schäfer
2cab6fe9cf Replace scp with rsync
`rsync` is faster on multiple runs. The `--update` flag will only
download newer images and does not overwrite existing files. Thus, it will
only download missing images.
2019-01-22 12:48:06 +01:00
Robert Schäfer
5ccfed2994 Fix CodeFactor 2019-01-20 23:32:56 +01:00
Robert Schäfer
3aef664c8c Import collections in order 2019-01-20 23:18:42 +01:00
Robert Schäfer
b272024933 Import comments 2019-01-19 00:01:30 +01:00
Robert Schäfer
887a6d201f Import contributions to neo4j 2019-01-18 23:53:00 +01:00
Robert Schäfer
97e6acf46b Import of all users in one script:
```sh
docker-compose exec neo4j import/import.sh
```
2019-01-18 22:45:29 +01:00
Robert Schäfer
8d8dfb0640 Provision neo4j container with import script 2019-01-16 02:10:42 +01:00