diff --git a/charts/incubator/seafile/.helmignore b/charts/incubator/seafile/.helmignore new file mode 100644 index 00000000000..77ca5567b26 --- /dev/null +++ b/charts/incubator/seafile/.helmignore @@ -0,0 +1,30 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ +# OWNERS file for Kubernetes +OWNERS +# helm-docs templates +*.gotmpl +# docs folder +/docs +# icon +icon.png diff --git a/charts/incubator/seafile/CHANGELOG.md b/charts/incubator/seafile/CHANGELOG.md new file mode 100644 index 00000000000..825c32f0d03 --- /dev/null +++ b/charts/incubator/seafile/CHANGELOG.md @@ -0,0 +1 @@ +# Changelog diff --git a/charts/incubator/seafile/Chart.yaml b/charts/incubator/seafile/Chart.yaml new file mode 100644 index 00000000000..bbd4c8156d4 --- /dev/null +++ b/charts/incubator/seafile/Chart.yaml @@ -0,0 +1,36 @@ +apiVersion: v2 +appVersion: "10.0.1" +dependencies: + - name: common + repository: https://library-charts.truecharts.org + version: 12.14.2 + - condition: mariadb.enabled + name: mariadb + repository: https://deps.truecharts.org/ + version: 7.0.50 +deprecated: false +description: Reliable and Performant File Sync and Share Solution +home: https://truecharts.org/charts/incubator/seafile +icon: https://truecharts.org/img/hotlink-ok/chart-icons/seafile.png +keywords: + - files + - cloud + - file-storage +kubeVersion: ">=1.16.0-0" +maintainers: + - email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +name: seafile +sources: + - https://github.com/truecharts/charts/tree/master/charts/incubator/seafile + - https://seafile.com + - https://hub.docker.com/r/seafileltd/seafile-mc +type: application +version: 0.0.1 +annotations: + truecharts.org/catagories: | + - file-storage + - cloud + - storage + truecharts.org/SCALE-support: "true" diff --git a/charts/incubator/seafile/LICENSE b/charts/incubator/seafile/LICENSE new file mode 100644 index 00000000000..33a8cbb23f0 --- /dev/null +++ b/charts/incubator/seafile/LICENSE @@ -0,0 +1,106 @@ +Business Source License 1.1 + +Parameters + +Licensor: The TrueCharts Project, it's owner and it's contributors +Licensed Work: The TrueCharts "Blocky" Helm Chart +Additional Use Grant: You may use the licensed work in production, as long + as it is directly sourced from a TrueCharts provided + official repository, catalog or source. You may also make private + modification to the directly sourced licenced work, + when used in production. + + The following cases are, due to their nature, also + defined as 'production use' and explicitly prohibited: + - Bundling, including or displaying the licensed work + with(in) another work intended for production use, + with the apparent intend of facilitating and/or + promoting production use by third parties in + violation of this license. + +Change Date: 2050-01-01 + +Change License: 3-clause BSD license + +For information about alternative licensing arrangements for the Software, +please contact: legal@truecharts.org + +Notice + +The Business Source License (this document, or the “License”) is not an Open +Source license. However, the Licensed Work will eventually be made available +under an Open Source License, as stated in this License. + +License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved. +“Business Source License” is a trademark of MariaDB Corporation Ab. + +----------------------------------------------------------------------------- + +Business Source License 1.1 + +Terms + +The Licensor hereby grants you the right to copy, modify, create derivative +works, redistribute, and make non-production use of the Licensed Work. The +Licensor may make an Additional Use Grant, above, permitting limited +production use. + +Effective on the Change Date, or the fourth anniversary of the first publicly +available distribution of a specific version of the Licensed Work under this +License, whichever comes first, the Licensor hereby grants you rights under +the terms of the Change License, and the rights granted in the paragraph +above terminate. + +If your use of the Licensed Work does not comply with the requirements +currently in effect as described in this License, you must purchase a +commercial license from the Licensor, its affiliated entities, or authorized +resellers, or you must refrain from using the Licensed Work. + +All copies of the original and modified Licensed Work, and derivative works +of the Licensed Work, are subject to this License. This License applies +separately for each version of the Licensed Work and the Change Date may vary +for each version of the Licensed Work released by Licensor. + +You must conspicuously display this License on each original or modified copy +of the Licensed Work. If you receive the Licensed Work in original or +modified form from a third party, the terms and conditions set forth in this +License apply to your use of that work. + +Any use of the Licensed Work in violation of this License will automatically +terminate your rights under this License for the current and all other +versions of the Licensed Work. + +This License does not grant you any right in any trademark or logo of +Licensor or its affiliates (provided that you may use a trademark or logo of +Licensor as expressly required by this License). + +TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON +AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, +EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND +TITLE. + +MariaDB hereby grants you permission to use this License’s text to license +your works, and to refer to it using the trademark “Business Source License”, +as long as you comply with the Covenants of Licensor below. + +Covenants of Licensor + +In consideration of the right to use this License’s text and the “Business +Source License” name and trademark, Licensor covenants to MariaDB, and to all +other recipients of the licensed work to be provided by Licensor: + +1. To specify as the Change License the GPL Version 2.0 or any later version, + or a license that is compatible with GPL Version 2.0 or a later version, + where “compatible” means that software provided under the Change License can + be included in a program with software provided under GPL Version 2.0 or a + later version. Licensor may specify additional Change Licenses without + limitation. + +2. To either: (a) specify an additional grant of rights to use that does not + impose any additional restriction on the right granted in this License, as + the Additional Use Grant; or (b) insert the text “None”. + +3. To specify a Change Date. + +4. Not to modify this License in any other way. diff --git a/charts/incubator/seafile/README.md b/charts/incubator/seafile/README.md new file mode 100644 index 00000000000..e0a9b8fa8d7 --- /dev/null +++ b/charts/incubator/seafile/README.md @@ -0,0 +1,27 @@ +# README + +## General Info + +TrueCharts can be installed as both *normal* Helm Charts or as Apps on TrueNAS SCALE. +However only installations using the TrueNAS SCALE Apps system are supported. + +For more information about this App, please check the docs on the TrueCharts [website](https://truecharts.org/charts/stable/) + +**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/truecharts/charts/issues/new/choose)** + + +## Support + +- Please check our [quick-start guides for TrueNAS SCALE](https://truecharts.org/manual/SCALE/guides/scale-intro). +- See the [Website](https://truecharts.org) +- Check our [Discord](https://discord.gg/tVsPTHWTtr) +- Open a [issue](https://github.com/truecharts/charts/issues/new/choose) + +--- + +## Sponsor TrueCharts + +TrueCharts can only exist due to the incredible effort of our staff. +Please consider making a [donation](https://truecharts.org/sponsor) or contributing back to the project any way you can! + +*All Rights Reserved - The TrueCharts Project* diff --git a/charts/incubator/seafile/ci/ingress-values.yaml b/charts/incubator/seafile/ci/ingress-values.yaml new file mode 100644 index 00000000000..59972584b5b --- /dev/null +++ b/charts/incubator/seafile/ci/ingress-values.yaml @@ -0,0 +1,3 @@ +ingress: + main: + enabled: true diff --git a/charts/incubator/seafile/icon.png b/charts/incubator/seafile/icon.png new file mode 100644 index 00000000000..61207a20d04 Binary files /dev/null and b/charts/incubator/seafile/icon.png differ diff --git a/charts/incubator/seafile/questions.yaml b/charts/incubator/seafile/questions.yaml new file mode 100644 index 00000000000..cbaef545f19 --- /dev/null +++ b/charts/incubator/seafile/questions.yaml @@ -0,0 +1,123 @@ +# Include{groups} +portals: + open: +# Include{portalLink} +questions: +# Include{global} +# Include{workload} +# Include{workloadDeployment} + +# Include{replicas1} +# Include{podSpec} +# Include{containerMain} + + - variable: env + group: "App Configuration" + label: "Image Environment" + schema: + additional_attrs: true + type: dict + attrs: + - variable: SEAFILE_SERVER_HOSTNAME + label: "Seafile Server Hostname" + description: "If using ingress, set your FQDN here" + schema: + type: string + default: "" + - variable: SEAFILE_ADMIN_EMAIL + label: "Seafile Admin Email" + description: "Initial admin email." + schema: + type: string + default: "me@example.com" + - variable: SEAFILE_ADMIN_PASSWORD + label: "Seafile Admin Password" + description: "Initial admin password. Change this" + schema: + type: string + required: true + private: true + default: "a_very_secret_password" + - variable: FORCE_HTTPS_IN_CONF + label: "Force HTTPS (Must be enabled to use with Reverse Proxies)" + description: "If using Traefik or another reverse proxy enable this to use HTTPS" + schema: + type: boolean + default: false +# Include{containerBasic} +# Include{containerAdvanced} +# Include{containerConfig} +# Include{podOptions} +# Include{serviceRoot} +# Include{serviceMain} +# Include{serviceSelectorLoadBalancer} +# Include{serviceSelectorExtras} + - variable: main + label: Main Service Port Configuration + schema: + additional_attrs: true + type: dict + attrs: + - variable: port + label: Port + description: This port exposes the container port on the service + schema: + type: int + default: 13080 + required: true +# Include{serviceExpertRoot} +# Include{serviceExpert} +# Include{serviceList} +# Include{persistenceRoot} + - variable: config + label: "App Config Storage" + description: "Stores the Application Configuration." + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} +# Include{persistenceList} +# Include{ingressRoot} + - variable: main + label: "Main Ingress" + schema: + additional_attrs: true + type: dict + attrs: +# Include{ingressDefault} +# Include{ingressTLS} +# Include{ingressTraefik} +# Include{ingressAdvanced} +# Include{ingressList} +# Include{securityContextRoot} + + - variable: runAsUser + label: "runAsUser" + description: "The UserID of the user running the application" + schema: + type: int + default: 0 + - variable: runAsGroup + label: "runAsGroup" + description: "The groupID of the user running the application" + schema: + type: int + default: 0 +# Include{securityContextContainer} +# Include{securityContextAdvanced} +# Include{securityContextPod} + - variable: fsGroup + label: "fsGroup" + description: "The group that should own ALL storage." + schema: + type: int + default: 568 + +# Include{resources} +# Include{advanced} +# Include{addons} +# Include{codeserver} +# Include{netshoot} +# Include{vpn} +# Include{documentation} diff --git a/charts/incubator/seafile/templates/NOTES.txt b/charts/incubator/seafile/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/seafile/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/seafile/templates/common.yaml b/charts/incubator/seafile/templates/common.yaml new file mode 100644 index 00000000000..b51394e00a4 --- /dev/null +++ b/charts/incubator/seafile/templates/common.yaml @@ -0,0 +1 @@ +{{ include "tc.v1.common.loader.all" . }} diff --git a/charts/incubator/seafile/values.yaml b/charts/incubator/seafile/values.yaml new file mode 100644 index 00000000000..b19a367991b --- /dev/null +++ b/charts/incubator/seafile/values.yaml @@ -0,0 +1,54 @@ +image: + repository: tccr.io/truecharts/seafile + tag: v10.0.1@sha256:7cae32631d0b9075d65ef20a671031fd9c4ff28e30dc592d1dc6253f8a325106 + pullPolicy: IfNotPresent + +service: + main: + ports: + main: + port: 13080 + protocol: http + targetPort: 80 + +securityContext: + container: + readOnlyRootFilesystem: false + runAsNonRoot: false + runAsUser: 0 + runAsGroup: 0 + +workload: + main: + podSpec: + containers: + main: + env: + DB_HOST: + secretKeyRef: + expandObjectName: false + name: '{{ printf "%s-%s" .Release.Name "mariadbcreds" }}' + key: plainhost + DB_ROOT_PASSWD: + secretKeyRef: + expandObjectName: false + name: '{{ printf "%s-%s" .Release.Name "mariadbcreds" }}' + key: mariadb-root-password + SEAFILE_SERVER_LETSENCRYPT: false + SEAFILE_SERVER_HOSTNAME: "{{ if .Values.ingress }}{{ if .Values.ingress.main.enabled }}{{ ( index .Values.ingress.main.hosts 0 ).host }}{{ else }}placeholder.com{{ end }}{{ else }}placeholder.com{{ end }}" + SEAFILE_ADMIN_EMAIL: me@example.com + SEAFILE_ADMIN_PASSWORD: a_very_secret_password + FORCE_HTTPS_IN_CONF: false + +persistence: + config: + enabled: true + mountPath: "/shared/seafile" + +mariadb: + enabled: true + mariadbUsername: seafile + mariadbDatabase: seafile +portal: + open: + enabled: true