143 Commits

Author SHA1 Message Date
4b5138880d
missing default .env file 2019-05-28 17:07:54 +02:00
301e7fa60c
fixed data export for alpha:
- include all collections
- refactored mongodb export script
- renamed to export
- use of .env file for (additional) configurations / configuration overrides
2019-05-28 17:03:44 +02:00
340a26fc5d
Merge pull request #585 from Human-Connection/doc-update-minikube-setup-documentation
More descriptive minikube setup instructions
2019-05-27 15:20:19 +02:00
Robert Schäfer
29c5c64c4e Fix wrong screenshot in kubernetes docs
I made a mistake. The correct external IP address is visible on your
Digital Ocean dashboard, not the kubernetes dashboard.
2019-05-16 23:26:01 +02:00
Robert Schäfer
5881a7d5df
Merge pull request #573 from Human-Connection/docs-354-kubernetes_cron_job_for_backups
Docs 354 kubernetes cron job for backups
2019-05-15 18:52:53 +02:00
Robert Schäfer
0ef2c26f03 Clean up and add a content warning 2019-05-15 16:25:01 +02:00
Robert Schäfer
1b3ee63565 Document Volume Snapshots 2019-05-15 16:25:01 +02:00
Robert Schäfer
222b153242 Provide volume snapshot according to DO support
Read:
https://github.com/Human-Connection/Human-Connection/pull/573#issuecomment-491358847
2019-05-15 16:25:01 +02:00
Robert Schäfer
018dd89797 Followed docs for heptio-ark and DO plugin v0.11.0 2019-05-15 16:24:05 +02:00
Robert Schäfer
8485b583a4 Update docs, remove redundant instructions 2019-05-15 16:24:05 +02:00
Robert Schäfer
90aae2f872 Add docs how to setup velero schedules 2019-05-15 16:24:05 +02:00
Robert Schäfer
49e6457cfd Setup relevant annotations 2019-05-15 16:24:05 +02:00
Robert Schäfer
e2ecd7904d Write docs for Velero and Disaster Recovery 2019-05-15 16:24:05 +02:00
Robert Schäfer
d70719040e Consequently create another template folder
... in human-connection/ where we store our specific kubernetes
configuraitons.
2019-05-15 14:01:07 +02:00
Robert Schäfer
24fe55c2d5 Streamline https configuration
I added a folder /templates to make it easier to reproduce.
2019-05-15 14:01:07 +02:00
Dominic Motuka
3e2b9666ca
More descriptive minikube setup instructions 2019-05-09 16:27:27 +03:00
Robert Schäfer
dfef37b3f6 Prevent argument list too long error 2019-05-08 00:46:07 +02:00
Robert Schäfer
bcc2c4dbbb Configure scripts and docker-compose.yml
After endless try/error I found the way to share volumes between
multiple docker-compose.ymls: You have to place those files in the same
folder. Also the import scripts must be adapted.
2019-05-07 21:48:09 +02:00
Robert Schäfer
5771efc920 Add binary idle to keep container spinning 2019-05-07 19:17:42 +02:00
Robert Schäfer
7c139bed1a Remove obsolete binary to create RSA keys
We can supply files on kubernetes through secrets
2019-05-07 19:17:21 +02:00
Robert Schäfer
b5d91cffef Implement @appinteractive's suggestions
This:
https://github.com/Human-Connection/Human-Connection/pull/529#discussion_r280065855
2019-05-07 19:15:47 +02:00
Robert Schäfer
497f77ae10 Breakthrough! Use split+indices for performance
@appinteractive thanks for pointing out `split`. You just saved me some
days of work to refactor the import statements to use CSV instead of
JSON files.

@Tirokk when I enter `:schema` in Neo4J web UI, I see the following:
```
:schema
Indexes
   ON :Badge(id) ONLINE
   ON :Category(id) ONLINE
   ON :Comment(id) ONLINE
   ON :Post(id) ONLINE
   ON :Tag(id) ONLINE
   ON :User(id) ONLINE

No constraints
```

So I temporarily removed the unique constraints on `slug` and added
plain indices on `id` for all relevant node types. We cannot omit the
`:Label` unfortunately, neo4j does not allow this. So I had to add all
indices for all known node labels instead.

With indices the import finishes in:
```
Time elapsed: 351 seconds
```
🎉

@appinteractive when I keep the unique indices on slug, I get an error
during import that a node with label `:User` and slug `tobias` already
exists. Ie. we have unqiue constraint violations in our production data.

@mattwr18 @ulfgebhardt @ogerly I started the application on my machine
on the production data and it turns out that the index page
http://localhost:3000/ takes way to long. Visiting my profile page at
http://localhost:3000/profile/5b1693daf850c11207fa6109/robert-schafer
is fine, though. Even pagination works. When I visit a post page with
not too many comments, the application is fast enough, too:
http://localhost:3000/post/5bbf49ebc428ea001c7ca89c/neues-video-format-human-connection-tech-news
2019-05-01 12:25:28 +02:00
Robert Schäfer
43ac10f7d7 Nice catch @Tirokk 2019-04-25 11:43:43 +02:00
Robert Schäfer
c350fb37a9 Fine tuning documentation 2019-04-24 23:55:49 +02:00
Robert Schäfer
86c0307ddb Reclaim volume claims for maintenance worker 2019-04-24 23:46:06 +02:00
Robert Schäfer
3edb590849 Dedicate extra chapter to volumes 2019-04-24 22:48:39 +02:00
Robert Schäfer
783d34f53a Fix README for minikube 2019-04-24 14:30:35 +02:00
Robert Schäfer
7f2df14ef3 Update human connection specific configuration 2019-04-24 12:52:10 +02:00
Robert Schäfer
31cff10206 Clean up kubernetes config for maintenance-worker
We're going into the direction of removing the backend and database
deployments, accessing `/uploads` and `/data` through the maintenance
worker pod and carrying out tasks from there.
2019-04-24 01:10:35 +02:00
Robert Schäfer
6ed5ad58d5 Merge maintenance with deployment 2019-04-24 00:27:58 +02:00
Robert Schäfer
f1c28ee0cc Further structuring in https + dashboard chapters 2019-04-24 00:15:08 +02:00
Robert Schäfer
8b83a27da1 Structure DO and minikube into separate pages 2019-04-23 23:56:35 +02:00
Robert Schäfer
543b7c6888 Configure neo4j deployment to have 1 pod max 2019-04-23 23:12:16 +02:00
Robert Schäfer
77ac0ce7a6 Rename db-migration-worker to maintenance-worker 2019-04-23 23:12:00 +02:00
mattwr18
500221314a
Update backup.md 2019-04-23 12:29:34 -03:00
Robert Schäfer
718b2da6e7 Improve the docs with @datenbrei 2019-04-23 17:21:45 +02:00
Robert Schäfer
980fab01b3 Add documentation for neo4j backups in kubernetes 2019-04-20 13:55:32 +02:00
Robert Schäfer
705493daff Update kubernetes README 2019-04-12 14:01:28 +02:00
Robert Schäfer
f7a1ca9911 Remove deployment todos 2019-04-12 13:55:22 +02:00
Robert Schäfer
216fc2b67c DRY + Better naming: Testing flavours and Github
cc @mattwr18

I would suggest that each subfolder like `/backend/`, `/webapp/`,
`/deployment/` and so on should have a file README.md. Thus, not only
gitbook will pick it up but also Github itself. Github is looking for a
file called README.md when iterating through subfolders.
2019-04-12 13:48:47 +02:00
Robert Schäfer
901f5b5b22 Move deployment in separate folder 2019-04-12 13:37:31 +02:00
mattwr18
4383431260
GitBook: [342-merge_documentation] 56 pages and 14 assets modified 2019-04-11 22:12:37 +00:00
Robert Schäfer
138d9a0011 Merging origin to 342-merge_documentation 2019-04-04 00:52:21 +02:00