73 Commits

Author SHA1 Message Date
Robert Schäfer
628b57aa29
feat(other): major improvement of deployment (#7925)
* feat(other): major improvement of deployment

Motivation
----------

Kubernetes:
* backend becomes a statefulset (exclusive volume mount)
  See: https://spacelift.io/blog/statefulset-vs-deployment
* implement neo4j backup with job

Docker:
* consistent targets across all dockerfiles
* remove redundant labels
* remove unnecessary build args
* remove obsolete networks
* remove development dependencies for production

Rebranding:
* add image tags for local tagging and pulling
* use Github's docker build workflows
* use Github container registry
* ONBUILD to simplify caller Dockerfiles
* docker compose for branding

Tooling:
* same node --version as in dockerfile

Docs:
* missing step in README.md

* refactor: remove submodules

It's better to keep them all in a separate repository

* improve kubernetes chart

* better image tag defaults
* split neo4j into its own chart (for re-use)
* use application defaults where possible

* optional resources for all pods

* remove obsolete key/value pair from secrets

* remove obsolete build argsand

and add labels for neo4j enterprise

* env vars for webapp

* allow to define redirect domains

Define a list of Domains that redirect to the domain of the project. The
idea is to provide the ability to redirect eg. www.domain.tld to
domain.tld

* remove maintenance part regarding database

* move backup job outside template folder

* name the ingress

* updated ingress

* handle empty case of middlewares

* try to default the ingress

* use quote

* restore todo-next-update

* fix docu check

* fix naming

* try using prod:migrate

* try using override config

* copy src folder

* try using base as image instead of build

* fix test build

* force build

* comment for the problem

* fix webapp tests (potentially)

---------

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2025-02-28 18:22:23 +01:00
Wolfgang Huß
1a2c7abfe8 Fix warning because of lower case 'as' instead of uppercase 'AS' in dockerfiles 2024-08-29 16:19:19 +02:00
mahula
0bb5b3985c set update docker node image versions to 20.12.1 2024-04-10 14:13:28 +02:00
mahula
aca6c819b1 update docker image versions 2024-04-10 13:46:34 +02:00
mahula
5d6d52a6fa update docker image versions 2024-04-10 13:23:39 +02:00
Wolfgang Huß
5d2c41d12e Fix Dockerfile labels 2023-10-02 13:14:55 +02:00
Wolfgang Huß
988e874934 Degrade Node version from v20.7.0 to v20.2.0 2023-10-02 13:06:52 +02:00
dependabot[bot]
1dc58a0489
Bump node from 20.6.0-alpine3.17 to 20.7.0-alpine3.17 in /webapp
Bumps node from 20.6.0-alpine3.17 to 20.7.0-alpine3.17.

---
updated-dependencies:
- dependency-name: node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-23 01:58:52 +00:00
dependabot[bot]
655bd067f0
Bump node from 20.2.0-alpine3.17 to 20.6.0-alpine3.17 in /webapp
Bumps node from 20.2.0-alpine3.17 to 20.6.0-alpine3.17.

---
updated-dependencies:
- dependency-name: node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-07 08:17:08 +00:00
f9e5fce546
downgrade node version again as it seems to cause problems 2023-06-17 14:04:54 +02:00
dependabot[bot]
12af4c23b2
Bump node from 20.2.0-alpine3.17 to 20.3.0-alpine3.17 in /webapp
Bumps node from 20.2.0-alpine3.17 to 20.3.0-alpine3.17.

---
updated-dependencies:
- dependency-name: node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-16 21:45:06 +00:00
dependabot[bot]
c754b766f8
Bump node from 20.1.0-alpine3.17 to 20.2.0-alpine3.17 in /webapp
Bumps node from 20.1.0-alpine3.17 to 20.2.0-alpine3.17.

---
updated-dependencies:
- dependency-name: node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-23 08:49:33 +00:00
dependabot[bot]
fb2c924083
Bump node from 19.9.0-alpine3.17 to 20.1.0-alpine3.17 in /webapp
Bumps node from 19.9.0-alpine3.17 to 20.1.0-alpine3.17.

---
updated-dependencies:
- dependency-name: node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-15 14:07:15 +00:00
dependabot[bot]
7cbe8feab9
Bump node from 19.8.1-alpine3.17 to 19.9.0-alpine3.17 in /webapp
Bumps node from 19.8.1-alpine3.17 to 19.9.0-alpine3.17.

---
updated-dependencies:
- dependency-name: node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-15 01:56:57 +00:00
dependabot[bot]
a8da88acd2
Bump node from 19.4.0-alpine3.17 to 19.8.1-alpine3.17 in /webapp
Bumps node from 19.4.0-alpine3.17 to 19.8.1-alpine3.17.

---
updated-dependencies:
- dependency-name: node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-06 10:24:41 +00:00
Wolfgang Huß
14426b4397 Add node gyp dependencies 2023-02-23 13:23:23 +01:00
e86ece0247
upgrade node version to 19.4 2023-01-28 04:14:38 +01:00
bc9f390612
updated docker node version in frontend & maintenance to 16.19.0 2023-01-04 10:01:37 +01:00
Wolfgang Huß
5f9155805d Fix 'Dockerfile' for webapp and backend for running locally and in cluster 2022-07-17 20:32:03 +02:00
Wolfgang Huß
9894abb29a Revert remove of '${DOCKER_WORKDIR}' 2021-06-07 19:03:55 +02:00
Wolfgang Huß
3f7d1c7bd0 Follow suggestions of Moriz and Robert 2021-06-07 18:50:21 +02:00
02f5434ef3
production=false for webapp 2021-06-07 15:07:59 +02:00
92bda02f0e
use some ebug builds since its not working out of the box 2021-06-07 14:58:28 +02:00
791d873df2
-remove node_modules
-build production
2021-06-07 14:04:36 +02:00
Wolfgang Huß
931705976d Establish new deployment structure with base and code Docker images, first step 2021-05-30 17:58:04 +02:00
79beb840c5
-separate commands in two, docker build & save to allow multi-line commands
-have arg and env variables
2021-04-17 13:15:45 +02:00
d354f9630a
Use build args instead of envs for the version, date & commit 2021-04-17 12:44:01 +02:00
6110557abf
fixed versions to follow SemVer 2.0 style (https://semver.org/spec/v2.0.0.html) 2021-02-25 20:48:20 +01:00
02d31d0a94
fixed prodution stage of webapp container 2021-02-12 03:03:41 +01:00
737c5fc53a
updated docker files - removed todo
remove `docker_push.sh` script
2021-02-08 20:54:26 +01:00
8a0b3a2826
- build test images 2021-01-30 19:25:39 +01:00
52842c51bb
- working production docker-compose setup 2021-01-23 03:10:07 +01:00
289e62ddb4
corrected image & service names 2021-01-22 14:14:34 +01:00
c41d32d527
- fixed node_modules running out of sync since they are on a volume for development docker builds 2021-01-20 13:43:22 +01:00
c9a5df0cd6
- fixed build version in webapp and backend 2021-01-19 23:18:52 +01:00
2518e38582
- webapp Dockerfile
- cleanup backend Dockerfile
- docker-compose cleanup
- docker-compose networks
- docker-compose for production, docker-compose.override for development
- security
- todos
2021-01-19 23:18:52 +01:00
Wolfgang Huß
f25f4109d2 Fix webapp Dockerfile
- As I build the webapp Docker image locally pushed it to Docker Hub and used it on DO Kubernetes wir.social a file in the constants folder where missing. So I find out that the whole folder was not copied.
2020-12-21 09:36:06 +01:00
Wolfgang Huß
c286b556f2 Downgrade Node version to v12.19.0-alpine3.10
- Testing if this solves the failing build.
2020-12-02 18:34:06 +01:00
Wolfgang Huß
d2d257bc1c Merge branch 'master' of https://github.com/Ocelot-Social-Community/Ocelot-Social into white-labeling
# Conflicts:
#	backend/Dockerfile
#	webapp/Dockerfile
#	webapp/Dockerfile.maintenance
#	webapp/components/LoginForm/LoginForm.vue
#	webapp/package.json
2020-12-02 11:11:26 +01:00
dependabot-preview[bot]
b6fe5483cc
Bump node from 12.19.0-alpine3.10 to 15.3.0-alpine3.10 in /webapp
Bumps node from 12.19.0-alpine3.10 to 15.3.0-alpine3.10.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-25 04:57:43 +00:00
Moriz Wahl
e47671c52a further changed requested by Tirokk 2020-11-24 19:10:46 +01:00
Moriz Wahl
bd962bbfcc merging rebranding branch from / 2020-11-10 10:28:20 +01:00
Wolfgang Huß
844da649f0 Fix node version to 'node:12.19.0-alpine3.10'
- Changed from 'node:lts-alpine' to 'node:12.19.0-alpine3.10'.
2020-11-03 13:02:24 +01:00
Wolfgang Huß
b6c8acab36 Change docker repository to develop-webapp
- nitro-web  —>  develop-webapp
2020-10-28 10:52:07 +01:00
roschaefer
37b3014ac7 Parameterize manifest 2020-06-05 17:37:16 +02:00
roschaefer
a741721295 Remove labels from Dockerfiles
Version was out of date anyways
2020-06-05 11:19:57 +02:00
roschaefer
23ae569509 Rename dockerhub organizations
..plus get rid of obsolete prefix `nitro-`.
2020-06-04 13:04:05 +02:00
mattwr18
dae1062ad0 Use node LTS in production 2020-01-09 13:33:05 +01:00
dependabot-preview[bot]
1a15dd4db5
build(deps): bump node from 13.5.0-alpine to 13.6.0-alpine in /webapp
Bumps node from 13.5.0-alpine to 13.6.0-alpine.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-09 04:19:10 +00:00
dependabot-preview[bot]
9d1751f779
build(deps): bump node from 13.4.0-alpine to 13.5.0-alpine in /webapp
Bumps node from 13.4.0-alpine to 13.5.0-alpine.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-20 04:18:47 +00:00