494 Commits

Author SHA1 Message Date
Wolfgang Huß
ee7000c5b9 Replace https://github.com/Human-Connection/Human-Connection 2020-12-03 12:50:47 +01:00
Wolfgang Huß
f17d506bc3 Merge branch 'master' of https://github.com/Ocelot-Social-Community/Ocelot-Social into 4043-new-digital-ocean-kubernetes-cluster
# Conflicts:
#	webapp/pages/logout.vue
2020-12-03 12:35:23 +01:00
Wolfgang Huß
e73cd620dc Change folder name deployment/human-connection to deployment/ocelot-social 2020-12-03 10:50:34 +01:00
Wolfgang Huß
cc293222e1 Set ocelot-social as Kubernetes namespace 2020-12-02 23:34:54 +01:00
Moriz Wahl
af54ec3704 further changes requested by Tirokk 2020-12-01 10:46:41 +01:00
Moriz Wahl
e47671c52a further changed requested by Tirokk 2020-11-24 19:10:46 +01:00
Moriz Wahl
ecb0bb3766 Starting rebranding to ocelot.social 2020-11-10 12:08:44 +01:00
Moriz Wahl
bd962bbfcc merging rebranding branch from / 2020-11-10 10:28:20 +01:00
Wolfgang Huß
47e97f2ad9 Correct Readme 2020-11-02 11:16:07 +01:00
Wolfgang Huß
4d64dd144d Correct file docker_push.sh
- Name Docker repos like on Docker Hub.
- correct readme's.
2020-11-02 11:09:16 +01:00
Wolfgang Huß
da91be2136 Change docker repository to develop-maintenance
- maintenance  —>  develop-maintenance
2020-10-29 11:14:09 +01:00
Wolfgang Huß
558ef75471 Change docker repository to develop-maintenance-worker
- maintenance-worker, nitro-maintenance-worker  —>  develop-maintenance-worker
2020-10-29 10:57:39 +01:00
Wolfgang Huß
a1e4a5bf5f Change docker repository to develop-neo4j
- neo4j  —>  develop-neo4j
2020-10-29 10:39:09 +01:00
Wolfgang Huß
884e876208 Change docker repository to develop-neo4j
- nitro-neo4j  —>  develop-neo4j
2020-10-28 11:10:41 +01:00
Wolfgang Huß
13c70903e1 Change docker repository to develop-backend
- nitro-backend  —>  develop-backend
2020-10-28 10:59:36 +01:00
Wolfgang Huß
b6c8acab36 Change docker repository to develop-webapp
- nitro-web  —>  develop-webapp
2020-10-28 10:52:07 +01:00
Wolfgang Huß
360f545fb7 Change docker account
- humanconnection  —>  ocelotsocialnetwork
2020-10-28 10:36:14 +01:00
roschaefer
23ae569509 Rename dockerhub organizations
..plus get rid of obsolete prefix `nitro-`.
2020-06-04 13:04:05 +02:00
mattwr18
5ff7bf993f fix(grammar): avoid first person in docs 2020-04-06 18:32:54 +02:00
mattwr18
29a9567bce chore: Update docs for spaces backups 2020-04-06 14:39:00 +02:00
mattwr18
8773589d82 Add develop mailserver, upgrade version 2020-02-11 11:57:25 +01:00
mattwr18
8f6d71e4be Update helm charts 2020-02-10 10:46:55 +01:00
mattwr18
5fad1bb628 Update to version 0.3.0, version image in webapp 2020-02-04 15:46:08 +01:00
mattwr18
b9e5686860 Add basic documentation for Helm deploy 2020-01-31 15:32:33 +01:00
mattwr18
9f3f6cfe02 Set up PVC with helm!!
- It turns out we can set it up with helm, it was just an issue with not
  starting with a clean slate. I guess it probably would have been
better to just set it up from scratch and deleted the develop server,
like we intend to do in production.
2020-01-30 21:02:27 +01:00
mattwr18
baf3b7818d Escape double quotes to deploy configmap
- It was failing without them... also ACCEPT_LICENSE_AGREEMENT wasn't
  set properly using .Values
2020-01-30 21:00:56 +01:00
mattwr18
8647cba648 Temporarily use latest image for migration job
- it hasn't been deployed yet, therefore is not in any versioned image
2020-01-30 20:59:56 +01:00
mattwr18
4cbe8a2c5a Update deployments following Helm best practices
- image is set configurable and set to the app version for version
  control
- imagePullPolicy revert earlier changes to flatten hierarchy since helm
  create uses .Values.image.pullPolicy
- update imagePullPolicy to IfNotPresent since this is the default with
  helm create and fits with our strategy as well.
- Source, https://helm.sh/docs/topics/chart_best_practices/pods/
2020-01-30 17:39:13 +01:00
mattwr18
7472a0bc72 Add labels following Helm best practices
- There are 4 recommended labels, and one optional that were added.
- Source, https://helm.sh/docs/topics/chart_best_practices/labels/
2020-01-30 17:20:15 +01:00
mattwr18
43753e52f2 Rename Job file following Helm best practices
- "Template file names should reflect the resource kind in the name."
- Source, https://helm.sh/docs/topics/chart_best_practices/templates/#structure-of-templates
2020-01-30 16:48:36 +01:00
mattwr18
2e6dfbbd42 Refactor values.yaml following Helm best practices
- Variables should use camel case.
- Favor flat hierarchy over nested.
- "Every defined property in values.yaml should be documented. The
  documentation string should begin with the name of the property it
describes, and then give at least a one-sentence description."
- Source, https://helm.sh/docs/topics/chart_best_practices/values/
2020-01-30 16:37:12 +01:00
mattwr18
c3548e5d8d Add db-migrations-job, not working yet 2020-01-30 15:50:51 +01:00
mattwr18
a74abbb053 Reorganize helm charts, add lifecycle hooks
- remove namespace, since it's best practice to use the cli to add it,
  @roschaefer points out
- organize templates into directories
- migrations should be ran after the backend has started...
- should init really be ran every time??
2020-01-29 20:39:47 +01:00
mattwr18
aa799e6f6b Merge branch 'master' of github.com:Human-Connection/Human-Connection into helm 2020-01-28 21:07:17 +01:00
mattwr18
6a1079ac42 Clean up 2020-01-28 21:05:26 +01:00
mattwr18
1c10f3769c Drop nitro prefix 2020-01-28 20:57:55 +01:00
mattwr18
b05e997743 Update templates and deploy to develop
- proof of concept that this works!
2020-01-28 20:55:08 +01:00
Robert Schäfer
5cd57a0cc5
docs(deployment): Explain how to setup metrics (#2825)
* docs(deployment): Explain how to setup metrics

close #2411
close #2777

* Update docs with some info I found useful

Co-authored-by: mattwr18 <mattwr18@gmail.com>
2020-01-21 23:19:17 +01:00
roschaefer
7c6d5b5129 fix: Re-enable webfinger feature
Ok, so here is the plan. Let's give both our cucumber features and your
cypress tests a prominent place to live. That would be the root level
folder of our application. Second, let's revive formerly dead code step
by step.

Ie. move code from the former location `backend/features/` to `features/`
when it is ready. All edge cases should be tested with unit tests in
`backend/`, see my `webfinger.spec.js` as an example.
2019-12-02 17:31:56 +01:00
roschaefer
84d3323856 refactor: remove redundant port configuration
If you set GRAPQHL_URI the port is already in there
2019-11-15 11:45:52 +01:00
mattwr18
d105739c0b Update docs for deploying new server, env variables 2019-11-11 11:10:02 +01:00
mattwr18
a02ad972d4 Add documentation for online backups/restoring after disaster 2019-10-03 16:11:52 +02:00
roschaefer
2363c285e1 Implement ingress and letsencrypt issuers 2019-09-18 02:13:20 +02:00
roschaefer
6e0b7c86e1 Conditionally deploy mailserver 2019-09-18 02:13:20 +02:00
roschaefer
c8c345be48 Fixup bug dath 2019-09-18 02:13:20 +02:00
roschaefer
c189b62073 Set app version 2019-09-18 02:13:20 +02:00
roschaefer
18ffafcabc Assign the neo4j pod at least 1G memory
I just went into memory issues when creating all the pods. Neo4j was in
a crash loop with exit code 137. Apparently this one:

https://success.docker.com/article/what-causes-a-container-to-exit-with-code-137
2019-09-18 02:13:19 +02:00
roschaefer
fccf53a176 Implement services and maintenance deployment
Also found:
```
Some users have raised concerns that the Neo4j image changes file permissions on the host machine.

By default, Neo4j runs as the user neo4j who only exists in the container, not on the host. That means that it's hard to set up mount folders on the host which this new user has write permissions for. We have updated the error messaging with advice about how to fix file permission errors. We also introduced writability checks and reduced the amount of file permission changes the image will perform. This has been found to interfere with some Kubernetes setups, so is currently an opt-in feature.

To enforce stricter file permissions checking you can pass this environment variable to the container:

--env SECURE_FILE_PERMISSIONS=yes
```
from https://hub.docker.com/_/neo4j

Implemented the above ☝️
2019-09-18 02:13:19 +02:00
roschaefer
a2a71975ab Templates for webapp+neo4j, use camelCase 2019-09-17 22:22:14 +02:00
roschaefer
af3bdaef52 Don't create accounts for unverified users 2019-09-17 19:16:56 +02:00