Grzegorz Leoniec
bfb8afc662
Improved post edit guard
2019-02-05 11:04:41 +01:00
Grzegorz Leoniec
605011e4e6
GitBook: [master] 10 pages and 5 assets modified
2019-02-05 08:52:45 +00:00
dependabot[bot]
ed9b0daf97
Bump Nitro-Web from 70aca85 to 9ba2200
...
Bumps [Nitro-Web](https://github.com/Human-Connection/Nitro-Web ) from `70aca85` to `9ba2200`.
- [Release notes](https://github.com/Human-Connection/Nitro-Web/releases )
- [Commits](70aca8579a...9ba22002b7 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-05 04:32:09 +00:00
Robert Schäfer
8c6bc72bd2
Update README
2019-02-04 22:05:24 +01:00
Robert Schäfer
1fbec5f525
Set NEO4J_URI to localhost
...
Apparently, if you have a mult-container setup, the same pod is
accessible via localhost.
2019-02-04 22:00:53 +01:00
Robert Schäfer
82c679aaf1
Check the environment variables early on
...
I was missing NEO4J_URI and was told very late - let's check env vars at
the very beginning.
2019-02-04 21:42:44 +01:00
Robert Schäfer
5b674cd95f
Hopefully fix migrate on Digital Ocean
...
It kept crashing, maybe because we're piping too much stuff to STDOUT.
Let's see.
2019-02-04 21:33:48 +01:00
Robert Schäfer
d876a3f442
Multiple container per pod setup
2019-02-04 20:44:07 +01:00
Robert Schäfer
2bc1e88920
Make CodeFactor happy
2019-02-04 19:55:59 +01:00
Robert Schäfer
693e7da95b
Merge branch 'master' into refactoring_db_migration_worker
2019-02-04 19:51:18 +01:00
Robert Schäfer
084f610ec8
Turnaround: *use* volumes for sharing data
...
... but use it in the same pod. It seems to be possible to have shared
volumes in the same pod:
https://kubernetes.io/docs/tasks/access-application-cluster/communicate-containers-same-pod-shared-volume/
2019-02-04 19:44:39 +01:00
Robert Schäfer
955383f169
Separate docker-compose.yml to test db migration
...
I think it's not that relevant to our new contributors to install the
db-migration-worker.
2019-02-04 19:19:31 +01:00
Robert Schäfer
01a145be29
Container db-migration-worker need no volumes
...
You can simply run `docker-compose exec db-migration-worker migrate` and
that's it. Of course you have to provide all the environment variables.
2019-02-04 17:49:48 +01:00
Grzegorz Leoniec
63925e4046
Throw error if the user is not the owner of the post while edit
2019-02-04 17:36:52 +01:00
Grzegorz Leoniec
cc5701a193
Do not catch issues on user assign at post create
2019-02-04 17:20:04 +01:00
Grzegorz Leoniec
ca076bbcb9
Assign post to current user on creation
2019-02-04 17:19:26 +01:00
Grzegorz Leoniec
37a81d59e5
Merge branch 'editor' of github.com:appinteractive/hc-prototype-ui into editor
2019-02-04 17:19:11 +01:00
Grzegorz Leoniec
9d76a904e8
Made very basic edit and create of posts possible
2019-02-04 17:19:06 +01:00
Robert Schäfer
cdf92cc6ea
Remove obsolete kubernetes folder
2019-02-04 15:36:39 +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
81ae557be1
Create a persistent volume claim for uploads
2019-02-04 13:00:00 +01:00
Robert Schäfer
20908cd062
Docker and .gitignore entire .ssh folder
...
On kubernetes, the ssh keys are added as a volume from a secret
2019-02-04 12:41:03 +01:00
Robert Schäfer
064e98943d
Remove sub-directories in /mongo-export
...
On Digital Ocean a persistent volume has a folder `lost+found` by
default. This script stops throws error messages because it can't remove
that folder if we don't add `-r` flag.
2019-02-04 12:37:03 +01:00
dependabot[bot]
9ba22002b7
Merge pull request #161 from Human-Connection/dependabot/npm_and_yarn/eslint-5.13.0
2019-02-04 10:46:35 +00:00
dependabot[bot]
d404353e31
Bump eslint from 5.12.1 to 5.13.0
...
Bumps [eslint](https://github.com/eslint/eslint ) from 5.12.1 to 5.13.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v5.12.1...v5.13.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-04 10:12:42 +00:00
dependabot[bot]
245c3e48bf
Merge pull request #160 from Human-Connection/dependabot/npm_and_yarn/@vue/server-test-utils-1.0.0-beta.29
2019-02-04 10:09:02 +00:00
Grzegorz Leoniec
3583259aa6
Merge branch 'master' into editor
2019-02-04 10:56:32 +01:00
Grzegorz Leoniec
1f9e95864a
Merge branch 'master' into editor
2019-02-04 10:56:20 +01:00
dependabot[bot]
12d82f23ce
Bump @vue/server-test-utils from 1.0.0-beta.28 to 1.0.0-beta.29
...
Bumps [@vue/server-test-utils](https://github.com/vuejs/vue-test-utils ) from 1.0.0-beta.28 to 1.0.0-beta.29.
- [Release notes](https://github.com/vuejs/vue-test-utils/releases )
- [Changelog](https://github.com/vuejs/vue-test-utils/blob/dev/CHANGELOG.md )
- [Commits](https://github.com/vuejs/vue-test-utils/compare/v1.0.0-beta.28...v1.0.0-beta.29 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-04 04:58:24 +00:00
Robert Schäfer
fb929da2cd
Refactor db-migration-worker deployment
...
Instead of creating a deployment with a replica set, we just create the
pod once. Also the pod should have everything in the future to run the
database migration. Ie. have `cypher-shell` to write directly to the
database in the current network. All required configuration is passed
manually to the `db-migration-worker`-pod directly. SSH-keys are copied
through a secrets file. This altogether made many configuration files
obsolete.
2019-02-04 01:37:35 +01:00
Grzegorz Leoniec
bca18d097d
Merge pull request #139 from Human-Connection/tansaku-patch-1
...
Create CODE_OF_CONDUCT.md
2019-02-03 23:40:43 +01:00
Robert Schäfer
246a46c2e8
Remove obsolete volume in deployment
2019-02-03 14:01:19 +01:00
Robert Schäfer
3bc272c8bc
Merge pull request #17 from Tirokk/Tirokk-Docker-Neo4j-1-1
...
Add instructions to get Neo4j Desktop to work
2019-02-03 13:42:48 +01:00
Robert Schäfer
9ab049bbf1
Merge branch 'master' into Tirokk-Docker-Neo4j-1-1
2019-02-03 13:41:35 +01:00
Robert Schäfer
672770ad18
Merge pull request #5 from Human-Connection/digital_ocean
...
Fix certain configuration for Digital Ocean
2019-02-02 21:22:47 +01:00
Matt Rider
f09d3ed685
Write steps, start implemenation of search input component
2019-02-02 17:22:40 -02:00
Robert Schäfer
abf623bd51
Rename .yml to .yaml files for consistency
...
See:
https://stackoverflow.com/a/21059164
@appinteractive
2019-02-02 18:47:17 +01:00
Robert Schäfer
0b075830bc
Put many configuration files in one folder
2019-02-02 13:38:43 +01:00
Robert Schäfer
15f3915394
Adding dashboard deployment for digital ocean
2019-02-02 13:17:23 +01:00
Robert Schäfer
671826e060
Bundle all configuration in one folder staging/
2019-02-02 12:40:29 +01:00
Robert Schäfer
af15ec6393
Fix certain configuration for Digital Ocean
2019-02-02 00:00:29 +01:00
Robert Schäfer
d8c23c3452
Reproduced the whole setup locally with success
2019-02-01 19:53:09 +01:00
Robert Schäfer
6fed4797ed
Add commits to configuration to deploy :latest tag
...
The recommended way to update a kubernetes deployment to a new image is
to change the image tag. However, our build server is configured to push
every commit of the `master` branch to docker hub to the respective
repository and tag `:latest`. So adding some configuration that can be
changed seems to be a trick to re-deploy the `:latest` image.
See here:
https://stackoverflow.com/a/51835397
2019-02-01 19:23:00 +01:00
Wolfgang Huß
637ee0ff0c
Minor change
...
„$“ added
2019-02-01 08:53:19 +01:00
Wolfgang Huß
75d3536c9a
Moved the command to add upstream
...
Command "Add the original Human Connection repository as upstream“ is moved behind „Change into the new folder.“.
I added a clarifying text.
2019-02-01 08:48:55 +01:00
Robert Schäfer
ad3a974076
Base64 encode default secrets in template
...
The JWT_SECRET is taken from the current default secret in
`Nitro-Backend`, the MONGODB_PASSWORD is just the label encoded.
2019-02-01 01:56:12 +01:00
Robert Schäfer
9b5f88d7ac
Kubernetes best practices:
...
* put many configurations in one file
* expose services before you start pods
See: https://kubernetes.io/docs/concepts/configuration/overview/
2019-02-01 01:25:05 +01:00
Robert Schäfer
e8b212f5cc
Backend is accessible only from internal network
...
I think this is better. For development it might be interesting to have
access to the backend but I think one should do development with
docker-compose not minikube and such.
2019-02-01 01:09:41 +01:00
Robert Schäfer
7b981c06d0
Point web service to backend of internal network
2019-02-01 00:23:53 +01:00
Robert Schäfer
c6661def31
Improve README
2019-01-31 23:52:24 +01:00