mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge branch 'master' of github.com:Ocelot-Social-Community/Ocelot-Social into 6030-remove-docker-compose-file-for-apple-m1
This commit is contained in:
commit
a3670f6275
203
.github/dependabot.yml
vendored
203
.github/dependabot.yml
vendored
@ -1,179 +1,62 @@
|
|||||||
version: 2
|
version: 2
|
||||||
updates:
|
updates:
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: weekly
|
||||||
|
day: "saturday"
|
||||||
|
timezone: "Europe/Berlin"
|
||||||
|
time: "03:00"
|
||||||
|
# open-pull-requests-limit: 10
|
||||||
|
# ignore:
|
||||||
|
|
||||||
- package-ecosystem: npm
|
- package-ecosystem: npm
|
||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: daily
|
interval: weekly
|
||||||
time: "04:00"
|
day: "saturday"
|
||||||
open-pull-requests-limit: 10
|
timezone: "Europe/Berlin"
|
||||||
ignore:
|
time: "03:00"
|
||||||
- dependency-name: cypress
|
|
||||||
versions:
|
|
||||||
- 6.3.0
|
|
||||||
- 6.4.0
|
|
||||||
- 6.5.0
|
|
||||||
- 6.6.0
|
|
||||||
- 6.7.1
|
|
||||||
- 6.8.0
|
|
||||||
- 7.0.0
|
|
||||||
- 7.0.1
|
|
||||||
- 7.1.0
|
|
||||||
- dependency-name: cypress-cucumber-preprocessor
|
|
||||||
versions:
|
|
||||||
- 4.0.0
|
|
||||||
- 4.0.1
|
|
||||||
- 4.0.3
|
|
||||||
- dependency-name: date-fns
|
|
||||||
versions:
|
|
||||||
- 2.16.1
|
|
||||||
- 2.17.0
|
|
||||||
- 2.18.0
|
|
||||||
- 2.19.0
|
|
||||||
- 2.20.0
|
|
||||||
- 2.20.1
|
|
||||||
- 2.20.2
|
|
||||||
- 2.20.3
|
|
||||||
- 2.21.0
|
|
||||||
- dependency-name: cypress-file-upload
|
|
||||||
versions:
|
|
||||||
- 5.0.2
|
|
||||||
- 5.0.3
|
|
||||||
- 5.0.4
|
|
||||||
- 5.0.5
|
|
||||||
- dependency-name: neo4j-driver
|
|
||||||
versions:
|
|
||||||
- 4.2.2
|
|
||||||
- package-ecosystem: npm
|
- package-ecosystem: npm
|
||||||
directory: "/backend"
|
directory: "/backend"
|
||||||
schedule:
|
schedule:
|
||||||
interval: daily
|
interval: weekly
|
||||||
time: "04:00"
|
day: "saturday"
|
||||||
open-pull-requests-limit: 10
|
timezone: "Europe/Berlin"
|
||||||
ignore:
|
time: "03:00"
|
||||||
- dependency-name: y18n
|
|
||||||
versions:
|
|
||||||
- 4.0.1
|
|
||||||
- 4.0.2
|
|
||||||
- dependency-name: metascraper-publisher
|
|
||||||
versions:
|
|
||||||
- 5.16.16
|
|
||||||
- 5.18.1
|
|
||||||
- 5.18.12
|
|
||||||
- 5.18.2
|
|
||||||
- 5.18.4
|
|
||||||
- 5.18.5
|
|
||||||
- 5.18.6
|
|
||||||
- 5.18.9
|
|
||||||
- 5.20.0
|
|
||||||
- 5.21.0
|
|
||||||
- 5.21.2
|
|
||||||
- 5.21.3
|
|
||||||
- 5.21.4
|
|
||||||
- 5.21.5
|
|
||||||
- dependency-name: metascraper-author
|
|
||||||
versions:
|
|
||||||
- 5.16.16
|
|
||||||
- 5.18.1
|
|
||||||
- 5.18.12
|
|
||||||
- 5.18.2
|
|
||||||
- 5.18.4
|
|
||||||
- 5.18.5
|
|
||||||
- 5.18.6
|
|
||||||
- 5.18.9
|
|
||||||
- 5.20.0
|
|
||||||
- 5.21.0
|
|
||||||
- 5.21.2
|
|
||||||
- 5.21.3
|
|
||||||
- 5.21.4
|
|
||||||
- 5.21.5
|
|
||||||
- dependency-name: neo4j-driver
|
|
||||||
versions:
|
|
||||||
- 4.2.2
|
|
||||||
- dependency-name: neo4j-graphql-js
|
|
||||||
versions:
|
|
||||||
- 2.19.1
|
|
||||||
- dependency-name: mustache
|
|
||||||
versions:
|
|
||||||
- 4.1.0
|
|
||||||
- package-ecosystem: npm
|
- package-ecosystem: npm
|
||||||
directory: "/webapp"
|
directory: "/webapp"
|
||||||
schedule:
|
schedule:
|
||||||
interval: daily
|
interval: weekly
|
||||||
time: "04:00"
|
day: "saturday"
|
||||||
open-pull-requests-limit: 10
|
timezone: "Europe/Berlin"
|
||||||
ignore:
|
time: "03:00"
|
||||||
- dependency-name: nuxt
|
|
||||||
versions:
|
|
||||||
- 2.14.12
|
|
||||||
- 2.15.0
|
|
||||||
- 2.15.1
|
|
||||||
- 2.15.2
|
|
||||||
- 2.15.3
|
|
||||||
- dependency-name: v-tooltip
|
|
||||||
versions:
|
|
||||||
- 2.1.2
|
|
||||||
- dependency-name: "@vue/server-test-utils"
|
|
||||||
versions:
|
|
||||||
- 1.1.2
|
|
||||||
- 1.1.3
|
|
||||||
- dependency-name: node-notifier
|
|
||||||
versions:
|
|
||||||
- 8.0.1
|
|
||||||
- package-ecosystem: docker
|
|
||||||
directory: "/webapp"
|
|
||||||
schedule:
|
|
||||||
interval: daily
|
|
||||||
time: "04:00"
|
|
||||||
open-pull-requests-limit: 10
|
|
||||||
ignore:
|
|
||||||
- dependency-name: node
|
|
||||||
versions:
|
|
||||||
- ">= 15.5.a, < 15.6"
|
|
||||||
- dependency-name: node
|
|
||||||
versions:
|
|
||||||
- 15.10.0.pre.alpine3.10
|
|
||||||
- 15.11.0.pre.alpine3.10
|
|
||||||
- 15.12.0.pre.alpine3.10
|
|
||||||
- 15.13.0.pre.alpine3.10
|
|
||||||
- 15.7.0.pre.alpine3.10
|
|
||||||
- 15.8.0.pre.alpine3.10
|
|
||||||
- 15.9.0.pre.alpine3.10
|
|
||||||
- package-ecosystem: docker
|
- package-ecosystem: docker
|
||||||
directory: "/backend"
|
directory: "/backend"
|
||||||
schedule:
|
schedule:
|
||||||
interval: daily
|
interval: weekly
|
||||||
time: "04:00"
|
day: "saturday"
|
||||||
open-pull-requests-limit: 10
|
timezone: "Europe/Berlin"
|
||||||
ignore:
|
time: "03:00"
|
||||||
- dependency-name: node
|
- package-ecosystem: docker
|
||||||
versions:
|
directory: "/webapp"
|
||||||
- ">= 15.4.a, < 15.5"
|
schedule:
|
||||||
- dependency-name: node
|
interval: weekly
|
||||||
versions:
|
day: "saturday"
|
||||||
- ">= 15.5.a, < 15.6"
|
timezone: "Europe/Berlin"
|
||||||
- dependency-name: node
|
time: "03:00"
|
||||||
versions:
|
|
||||||
- 15.10.0.pre.alpine3.10
|
|
||||||
- 15.11.0.pre.alpine3.10
|
|
||||||
- 15.12.0.pre.alpine3.10
|
|
||||||
- 15.13.0.pre.alpine3.10
|
|
||||||
- 15.7.0.pre.alpine3.10
|
|
||||||
- 15.8.0.pre.alpine3.10
|
|
||||||
- 15.9.0.pre.alpine3.10
|
|
||||||
- package-ecosystem: docker
|
- package-ecosystem: docker
|
||||||
directory: "/neo4j"
|
directory: "/neo4j"
|
||||||
schedule:
|
schedule:
|
||||||
interval: daily
|
interval: weekly
|
||||||
time: "04:00"
|
day: "saturday"
|
||||||
open-pull-requests-limit: 10
|
timezone: "Europe/Berlin"
|
||||||
ignore:
|
time: "03:00"
|
||||||
- dependency-name: neo4j
|
|
||||||
versions:
|
|
||||||
- 4.2.3
|
|
||||||
- 4.2.4
|
|
||||||
- package-ecosystem: docker
|
- package-ecosystem: docker
|
||||||
directory: "/deployment/legacy-migration/maintenance-worker"
|
directory: "/deployment/src/docker"
|
||||||
schedule:
|
schedule:
|
||||||
interval: daily
|
interval: weekly
|
||||||
time: "04:00"
|
day: "saturday"
|
||||||
open-pull-requests-limit: 10
|
timezone: "Europe/Berlin"
|
||||||
|
time: "03:00"
|
||||||
|
|||||||
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -168,6 +168,8 @@ jobs:
|
|||||||
name: Unit tests - backend
|
name: Unit tests - backend
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build_test_neo4j,build_test_backend]
|
needs: [build_test_neo4j,build_test_backend]
|
||||||
|
permissions:
|
||||||
|
checks: write
|
||||||
steps:
|
steps:
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# CHECKOUT CODE ##########################################################
|
# CHECKOUT CODE ##########################################################
|
||||||
@ -225,6 +227,8 @@ jobs:
|
|||||||
name: Unit tests - webapp
|
name: Unit tests - webapp
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build_test_webapp]
|
needs: [build_test_webapp]
|
||||||
|
permissions:
|
||||||
|
checks: write
|
||||||
steps:
|
steps:
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# CHECKOUT CODE ##########################################################
|
# CHECKOUT CODE ##########################################################
|
||||||
|
|||||||
@ -7,6 +7,7 @@ services:
|
|||||||
dockerfile: ../webapp/Dockerfile
|
dockerfile: ../webapp/Dockerfile
|
||||||
context: ../webapp
|
context: ../webapp
|
||||||
target: base
|
target: base
|
||||||
|
command: sleep 0
|
||||||
|
|
||||||
webapp-code:
|
webapp-code:
|
||||||
image: ocelotsocialnetwork/webapp:local-code
|
image: ocelotsocialnetwork/webapp:local-code
|
||||||
@ -14,10 +15,11 @@ services:
|
|||||||
dockerfile: ../webapp/Dockerfile
|
dockerfile: ../webapp/Dockerfile
|
||||||
context: ../webapp
|
context: ../webapp
|
||||||
target: code
|
target: code
|
||||||
|
command: sleep 0
|
||||||
|
|
||||||
webapp:
|
webapp:
|
||||||
image: ocelotsocialnetwork/webapp-branded:local-${CONFIGURATION}
|
image: ocelotsocialnetwork/webapp-branded:local-${CONFIGURATION}
|
||||||
container_name: webapp
|
container_name: webapp-branded
|
||||||
build:
|
build:
|
||||||
dockerfile: src/docker/webapp.Dockerfile
|
dockerfile: src/docker/webapp.Dockerfile
|
||||||
target: branded
|
target: branded
|
||||||
@ -51,6 +53,7 @@ services:
|
|||||||
dockerfile: ../backend/Dockerfile
|
dockerfile: ../backend/Dockerfile
|
||||||
context: ../backend
|
context: ../backend
|
||||||
target: base
|
target: base
|
||||||
|
command: sleep 0
|
||||||
|
|
||||||
backend-code:
|
backend-code:
|
||||||
image: ocelotsocialnetwork/backend:local-code
|
image: ocelotsocialnetwork/backend:local-code
|
||||||
@ -58,13 +61,14 @@ services:
|
|||||||
dockerfile: ../backend/Dockerfile
|
dockerfile: ../backend/Dockerfile
|
||||||
context: ../backend
|
context: ../backend
|
||||||
target: code
|
target: code
|
||||||
|
command: sleep 0
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
image: ocelotsocialnetwork/backend-branded:local-${CONFIGURATION}
|
image: ocelotsocialnetwork/backend-branded:local-${CONFIGURATION}
|
||||||
container_name: backend
|
container_name: backend
|
||||||
build:
|
build:
|
||||||
dockerfile: src/docker/backend.Dockerfile
|
dockerfile: src/docker/backend.Dockerfile
|
||||||
target: branded
|
target: branded-branded
|
||||||
context: .
|
context: .
|
||||||
args:
|
args:
|
||||||
- CONFIGURATION=$CONFIGURATION
|
- CONFIGURATION=$CONFIGURATION
|
||||||
@ -106,6 +110,7 @@ services:
|
|||||||
dockerfile: ../webapp/Dockerfile.maintenance
|
dockerfile: ../webapp/Dockerfile.maintenance
|
||||||
context: ../webapp
|
context: ../webapp
|
||||||
target: base
|
target: base
|
||||||
|
command: sleep 0
|
||||||
|
|
||||||
maintenance-code:
|
maintenance-code:
|
||||||
image: ocelotsocialnetwork/maintenance:local-code
|
image: ocelotsocialnetwork/maintenance:local-code
|
||||||
@ -113,11 +118,12 @@ services:
|
|||||||
dockerfile: ../webapp/Dockerfile.maintenance
|
dockerfile: ../webapp/Dockerfile.maintenance
|
||||||
context: ../webapp
|
context: ../webapp
|
||||||
target: code
|
target: code
|
||||||
|
command: sleep 0
|
||||||
|
|
||||||
maintenance:
|
maintenance:
|
||||||
# name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there
|
# name the image so that it cannot be found in a DockerHub repository, otherwise it will not be built locally from the 'dockerfile' but pulled from there
|
||||||
image: ocelotsocialnetwork/maintenance-branded:local-${CONFIGURATION}
|
image: ocelotsocialnetwork/maintenance-branded:local-${CONFIGURATION}
|
||||||
container_name: maintenance
|
container_name: maintenance-branded
|
||||||
build:
|
build:
|
||||||
# TODO: Separate from webapp, this must be independent
|
# TODO: Separate from webapp, this must be independent
|
||||||
dockerfile: src/docker/maintenance.Dockerfile
|
dockerfile: src/docker/maintenance.Dockerfile
|
||||||
@ -152,7 +158,7 @@ services:
|
|||||||
|
|
||||||
mailserver:
|
mailserver:
|
||||||
image: djfarrelly/maildev
|
image: djfarrelly/maildev
|
||||||
container_name: mailserver
|
container_name: mailserver-branded
|
||||||
ports:
|
ports:
|
||||||
- 1080:80
|
- 1080:80
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
22
deployment/scripts/cluster.maintenance.sh
Executable file
22
deployment/scripts/cluster.maintenance.sh
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# base setup
|
||||||
|
SCRIPT_PATH=$(realpath $0)
|
||||||
|
SCRIPT_DIR=$(dirname $SCRIPT_PATH)
|
||||||
|
|
||||||
|
# configuration
|
||||||
|
CONFIGURATION=${CONFIGURATION:-"example"}
|
||||||
|
KUBECONFIG=${KUBECONFIG:-${SCRIPT_DIR}/../configurations/${CONFIGURATION}/kubeconfig.yaml}
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
on)
|
||||||
|
kubectl --kubeconfig=${KUBECONFIG} patch ingress ingress-ocelot-webapp --type merge --patch-file ${SCRIPT_DIR}/../src/kubernetes/patches/patch.ingress.maintenance.on.yaml
|
||||||
|
;;
|
||||||
|
off)
|
||||||
|
kubectl --kubeconfig=${KUBECONFIG} patch ingress ingress-ocelot-webapp --type merge --patch-file ${SCRIPT_DIR}/../src/kubernetes/patches/patch.ingress.maintenance.off.yaml
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo -e "Run this script with first argument either 'on' or 'off'"
|
||||||
|
exit
|
||||||
|
;;
|
||||||
|
esac
|
||||||
@ -14,7 +14,12 @@ ARG CONFIGURATION=example
|
|||||||
# copy public constants into the Docker image to brand it
|
# copy public constants into the Docker image to brand it
|
||||||
COPY configurations/${CONFIGURATION}/branding/static/ static/
|
COPY configurations/${CONFIGURATION}/branding/static/ static/
|
||||||
COPY configurations/${CONFIGURATION}/branding/constants/ constants/
|
COPY configurations/${CONFIGURATION}/branding/constants/ constants/
|
||||||
COPY configurations/${CONFIGURATION}/branding/locales/ locales/
|
|
||||||
|
# locales
|
||||||
|
COPY configurations/${CONFIGURATION}/branding/locales/*.json locales/tmp/
|
||||||
|
COPY src/tools/ tools/
|
||||||
|
RUN apk add --no-cache bash jq
|
||||||
|
RUN tools/merge-locales.sh
|
||||||
|
|
||||||
##################################################################################
|
##################################################################################
|
||||||
# BUILD ##########################################################################
|
# BUILD ##########################################################################
|
||||||
|
|||||||
@ -12,17 +12,16 @@ FROM $APP_IMAGE_CODE as code
|
|||||||
ARG CONFIGURATION=example
|
ARG CONFIGURATION=example
|
||||||
|
|
||||||
# copy public constants into the Docker image to brand it
|
# copy public constants into the Docker image to brand it
|
||||||
COPY src/tools/ tools/
|
|
||||||
COPY configurations/${CONFIGURATION}/branding/static/ static/
|
COPY configurations/${CONFIGURATION}/branding/static/ static/
|
||||||
COPY configurations/${CONFIGURATION}/branding/constants/ constants/
|
COPY configurations/${CONFIGURATION}/branding/constants/ constants/
|
||||||
COPY configurations/${CONFIGURATION}/branding/locales/html/ locales/html/
|
COPY configurations/${CONFIGURATION}/branding/locales/html/ locales/html/
|
||||||
# COPY configurations/${CONFIGURATION}/branding/locales/index.js locales/index.js
|
|
||||||
COPY configurations/${CONFIGURATION}/branding/locales/*.json locales/tmp/
|
|
||||||
COPY configurations/${CONFIGURATION}/branding/assets/styles/imports/ assets/styles/imports/
|
COPY configurations/${CONFIGURATION}/branding/assets/styles/imports/ assets/styles/imports/
|
||||||
COPY configurations/${CONFIGURATION}/branding/assets/fonts/ assets/fonts/
|
COPY configurations/${CONFIGURATION}/branding/assets/fonts/ assets/fonts/
|
||||||
|
|
||||||
|
# locales
|
||||||
|
COPY configurations/${CONFIGURATION}/branding/locales/*.json locales/tmp/
|
||||||
|
COPY src/tools/ tools/
|
||||||
RUN apk add --no-cache bash jq
|
RUN apk add --no-cache bash jq
|
||||||
|
|
||||||
RUN tools/merge-locales.sh
|
RUN tools/merge-locales.sh
|
||||||
|
|
||||||
##################################################################################
|
##################################################################################
|
||||||
|
|||||||
@ -0,0 +1,12 @@
|
|||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host:
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: ocelot-webapp
|
||||||
|
port:
|
||||||
|
number: 3000
|
||||||
@ -0,0 +1,12 @@
|
|||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host:
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: ocelot-maintenance
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
@ -36,7 +36,7 @@ export default ({ app, req, cookie, store }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const expires = new Date()
|
const expires = new Date()
|
||||||
expires.setDate(expires.getDate() + app.$env.COOKIE_EXPIRE_TIME)
|
expires.setDate(expires.getDate() + app.$env && app.$env.COOKIE_EXPIRE_TIME)
|
||||||
app.$cookies.set(key, localeInStore, {
|
app.$cookies.set(key, localeInStore, {
|
||||||
expires,
|
expires,
|
||||||
// maxAge: app.$env.COOKIE_EXPIRE_TIME * 60 * 60 * 24, // days to seconds
|
// maxAge: app.$env.COOKIE_EXPIRE_TIME * 60 * 60 * 24, // days to seconds
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user