-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/maven/fixes/8.1' into maven/rele…
…ase/8.1
- Loading branch information
Showing
37 changed files
with
687 additions
and
695 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,6 @@ | |
</build> | ||
|
||
<modules> | ||
<module>mysql</module> | ||
<module>postgresql</module> | ||
</modules> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ker/build/mysql/src/main/build/Dockerfile → ...uild/postgresql/src/main/build/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v2 | ||
|
||
name: edu-sharing-services-connector | ||
description: Helm chart for edu-sharing connector app | ||
type: application | ||
version: 8.0.9998 | ||
appVersion: 0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Usage: | ||
Install via | ||
```bash | ||
helm upgrade --install connector . --set baseUrl=example.repo.org --set storageClassName=storage-class --set clusterIssuer=letsencrypt --set passwordDB=example | ||
``` | ||
|
||
View logs of Container `edu-sharing-connector-0` and check for an output like | ||
|
||
``` | ||
Connector is ready. Please register it at your repository (Admin Tools -> Remote-Systems) with the following url: | ||
``` | ||
|
||
Go to the admin tools of your repository and register the app. | ||
|
||
In order to activate H5P as an editor, configure it in the repository. | ||
Go to Admin Tools -> Global System Config -> Cluster-Override and add | ||
``` | ||
connectorList{ | ||
connectors:[ | ||
{ | ||
id:"H5P", icon:"edit", showNew: true, onlyDesktop: true, hasViewMode: false, | ||
filetypes:[ | ||
{mimetype: "application/zip",filetype: "h5p", ccressourcetype: "h5p", createable: true,editable: true} | ||
] | ||
} | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
annotations: | ||
metadata: | ||
name: edu-sharing-connector-ingress | ||
annotations: | ||
cert-manager.io/cluster-issuer: {{ .Values.clusterIssuer }} | ||
spec: | ||
tls: | ||
- hosts: | ||
- connector.services.{{ .Values.baseUrl }} | ||
secretName: edu-sharing-connector-tls | ||
rules: | ||
- host: connector.services.{{ .Values.baseUrl }} | ||
http: | ||
paths: | ||
- backend: | ||
service: | ||
name: edu-sharing-connector | ||
port: | ||
number: 80 | ||
path: / | ||
pathType: Prefix |
13 changes: 13 additions & 0 deletions
13
deploy/docker/helm/src/main/chart/templates/persistentvolumeclaim.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: edu-sharing-services-connector-data | ||
annotations: | ||
"helm.sh/resource-policy": keep | ||
spec: | ||
storageClassName: {{ .Values.storageClassName }} | ||
accessModes: | ||
- ReadWriteMany | ||
resources: | ||
requests: | ||
storage: "30Gi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: edu-sharing-connector | ||
spec: | ||
selector: | ||
app: edu-sharing-connector | ||
ports: | ||
- port: 80 | ||
name: http-api | ||
targetPort: api | ||
|
||
--- | ||
|
||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: edu-sharing-connector-db | ||
spec: | ||
selector: | ||
app: edu-sharing-connector-db | ||
ports: | ||
- port: 3306 | ||
name: tcp-db | ||
targetPort: db |
132 changes: 132 additions & 0 deletions
132
deploy/docker/helm/src/main/chart/templates/statefulset.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: edu-sharing-connector | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: edu-sharing-connector | ||
replicas: 1 | ||
serviceName: edu-sharing-connector | ||
template: | ||
metadata: | ||
labels: | ||
app: edu-sharing-connector | ||
spec: | ||
containers: | ||
- name: edu-sharing-connector | ||
image: docker.edu-sharing.com/community/edu_sharing-community-services-edu-connector-service:{{ .Values.version }} | ||
imagePullPolicy: Always | ||
env: | ||
- name: HOST_EXTERNAL | ||
value: "connector.services.{{ .Values.baseUrl }}" | ||
- name: PROT_EXTERNAL | ||
value: "https" | ||
- name: PORT_EXTERNAL | ||
value: "443" | ||
- name: DATABASE_HOST | ||
value: edu-sharing-connector-db | ||
- name: DATABASE_PORT | ||
value: "3306" | ||
- name: DATABASE_USER | ||
value: "connector" | ||
- name: DATABASE_NAME | ||
value: "connector" | ||
- name: DATABASE_PASSWORD | ||
value: {{ required "A valid .Values.passwordDB is required!" .Values.passwordDB }} | ||
- name: ONLYOFFICE_DOCUMENT_SERVER | ||
value: {{ .Values.onlyofficeDocumentServer | default "" }} | ||
- name: ONLYOFFICE_PLUGIN_URL | ||
value: {{ .Values.onlyofficePluginUrl | default "" }} | ||
- name: ONLYOFFICE_JWT_SECRET | ||
value: {{ .Values.onlyofficeJwtSecret | default "" }} | ||
- name: MOODLE_BASE_DIR | ||
value: {{ .Values.moodleBaseDir | default "" }} | ||
- name: MOODLE_TOKEN | ||
value: {{ .Values.moodleToken | default "" }} | ||
livenessProbe: | ||
httpGet: | ||
path: /metadata | ||
port: api | ||
periodSeconds: 10 | ||
timeoutSeconds: 10 | ||
readinessProbe: | ||
httpGet: | ||
path: /metadata | ||
port: api | ||
failureThreshold: 3 | ||
initialDelaySeconds: 10 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
timeoutSeconds: 10 | ||
resources: | ||
limits: | ||
cpu: "4000m" | ||
memory: "4Gi" | ||
requests: | ||
cpu: "500m" | ||
memory: "4Gi" | ||
ports: | ||
- containerPort: 80 | ||
name: api | ||
volumeMounts: | ||
- name: data | ||
mountPath: /var/data | ||
volumes: | ||
- name: data | ||
persistentVolumeClaim: | ||
claimName: edu-sharing-services-connector-data | ||
|
||
--- | ||
|
||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: edu-sharing-connector-db | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: edu-sharing-connector-db | ||
replicas: 1 | ||
serviceName: edu-sharing-connector-db | ||
template: | ||
metadata: | ||
labels: | ||
app: edu-sharing-connector-db | ||
spec: | ||
containers: | ||
- name: edu-sharing-connector-db | ||
image: docker.edu-sharing.com/community/edu_sharing-community-services-edu-connector-deploy-docker-build-postgresql:{{ .Values.version }} | ||
env: | ||
- name: POSTGRESQL_DATABASE | ||
value: connector | ||
- name: POSTGRESQL_USERNAME | ||
value: connector | ||
- name: POSTGRESQL_PASSWORD | ||
value: {{ .Values.passwordDB }} | ||
- name: POSTGRESQL_POSTGRES_PASSWORD | ||
value: {{ .Values.passwordDB }} | ||
resources: | ||
limits: | ||
cpu: "2000m" | ||
memory: "2Gi" | ||
requests: | ||
cpu: "1000m" | ||
memory: "2Gi" | ||
ports: | ||
- name: db | ||
containerPort: 5432 | ||
volumeMounts: | ||
- name: data | ||
mountPath: /bitnami/postgresql | ||
|
||
volumeClaimTemplates: | ||
- metadata: | ||
name: data | ||
spec: | ||
storageClassName: {{ .Values.storageClassName }} | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: "16Gi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
baseUrl: | ||
storageClassName: | ||
clusterIssuer: letsencrypt | ||
version: maven-fixes-8.0-SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.