diff --git a/deploy/helm/aws-login/templates/aws-ecr-login-cronjob.yaml b/deploy/helm/aws-login/templates/aws-ecr-login-cronjob.yaml index 4a60994388..168958b695 100644 --- a/deploy/helm/aws-login/templates/aws-ecr-login-cronjob.yaml +++ b/deploy/helm/aws-login/templates/aws-ecr-login-cronjob.yaml @@ -59,7 +59,11 @@ spec: configMapKeyRef: key: DOCKER_EMAIL name: {{ .Values.awsEcr.configName }} - resources: {} + resources: + requests: + memory: 128Mi + limits: + memory: 128Mi securityContext: capabilities: {} terminationMessagePath: /dev/termination-log diff --git a/deploy/helm/aws-login/templates/aws-ecr-login-oneshot.yaml b/deploy/helm/aws-login/templates/aws-ecr-login-oneshot.yaml index f4737396e8..8f7266da63 100644 --- a/deploy/helm/aws-login/templates/aws-ecr-login-oneshot.yaml +++ b/deploy/helm/aws-login/templates/aws-ecr-login-oneshot.yaml @@ -59,7 +59,11 @@ spec: configMapKeyRef: key: DOCKER_EMAIL name: "{{ .Values.awsEcr.configName }}" - resources: {} + resources: + requests: + memory: 128Mi + limits: + memory: 128Mi securityContext: capabilities: {} terminationMessagePath: /dev/termination-log diff --git a/deploy/helm/cert-proxy-client/templates/update-cert-cronjob.yaml b/deploy/helm/cert-proxy-client/templates/update-cert-cronjob.yaml index 8b6d303673..97a51a3da4 100644 --- a/deploy/helm/cert-proxy-client/templates/update-cert-cronjob.yaml +++ b/deploy/helm/cert-proxy-client/templates/update-cert-cronjob.yaml @@ -73,7 +73,11 @@ spec: configMapKeyRef: key: VERBOSE name: {{ .Values.envName | quote }} - resources: {} + resources: + requests: + memory: 128Mi + limits: + memory: 128Mi securityContext: capabilities: {} terminationMessagePath: /dev/termination-log diff --git a/deploy/helm/cert-proxy-client/templates/update-cert-oneshot.yaml b/deploy/helm/cert-proxy-client/templates/update-cert-oneshot.yaml index 5011eb043a..a6de7a6c37 100644 --- a/deploy/helm/cert-proxy-client/templates/update-cert-oneshot.yaml +++ b/deploy/helm/cert-proxy-client/templates/update-cert-oneshot.yaml @@ -72,7 +72,11 @@ spec: configMapKeyRef: key: VERBOSE name: {{ .Values.envName | quote }} - resources: {} + resources: + requests: + memory: 128Mi + limits: + memory: 128Mi securityContext: capabilities: {} terminationMessagePath: /dev/termination-log diff --git a/deploy/helm/cert-proxy-server/templates/deployment-cert-proxy-server.yaml b/deploy/helm/cert-proxy-server/templates/deployment-cert-proxy-server.yaml index 7c23b4cb71..c7ea2c55bd 100644 --- a/deploy/helm/cert-proxy-server/templates/deployment-cert-proxy-server.yaml +++ b/deploy/helm/cert-proxy-server/templates/deployment-cert-proxy-server.yaml @@ -66,9 +66,9 @@ spec: resources: requests: cpu: 2m - memory: 100M + memory: 128Mi limits: - memory: 150M + memory: 128Mi restartPolicy: Always {{- if ne .Values.global.pullSecretName "None" }} imagePullSecrets: diff --git a/deploy/helm/cert-proxy-server/templates/deployment-nuc-proxy.yaml b/deploy/helm/cert-proxy-server/templates/deployment-nuc-proxy.yaml index 3ac30a1463..21be6f8608 100644 --- a/deploy/helm/cert-proxy-server/templates/deployment-nuc-proxy.yaml +++ b/deploy/helm/cert-proxy-server/templates/deployment-nuc-proxy.yaml @@ -51,9 +51,9 @@ spec: resources: requests: cpu: 1m - memory: 10M + memory: 128Mi limits: - memory: 50M + memory: 128Mi volumeMounts: - name: nginx-html mountPath: /usr/share/nginx/html diff --git a/deploy/helm/create-admin-user/templates/job-create-admin-user.yaml b/deploy/helm/create-admin-user/templates/job-create-admin-user.yaml index 7c60ca5e2c..eaf79685fb 100644 --- a/deploy/helm/create-admin-user/templates/job-create-admin-user.yaml +++ b/deploy/helm/create-admin-user/templates/job-create-admin-user.yaml @@ -50,7 +50,11 @@ spec: image: {{ include "create-admin-user.containerImage" . }} imagePullPolicy: {{ .Values.global.imagePullPolicy }} name: create-admin-user - resources: {} + resources: + requests: + memory: 128Mi + limits: + memory: 128Mi volumeMounts: - mountPath: /home/app/.CombineFiles name: backend-data diff --git a/deploy/helm/thecombine/charts/backend/templates/deployment-backend.yaml b/deploy/helm/thecombine/charts/backend/templates/deployment-backend.yaml index bcfdc71c3a..60a2f75de8 100644 --- a/deploy/helm/thecombine/charts/backend/templates/deployment-backend.yaml +++ b/deploy/helm/thecombine/charts/backend/templates/deployment-backend.yaml @@ -100,7 +100,7 @@ spec: resources: requests: cpu: 5m - memory: 960Mi + memory: 2Gi {{- if .Values.global.includeResourceLimits }} limits: memory: 4Gi diff --git a/deploy/helm/thecombine/charts/database/templates/database.yaml b/deploy/helm/thecombine/charts/database/templates/database.yaml index 6e681ca546..7c30530888 100644 --- a/deploy/helm/thecombine/charts/database/templates/database.yaml +++ b/deploy/helm/thecombine/charts/database/templates/database.yaml @@ -51,7 +51,7 @@ spec: resources: requests: cpu: 25m - memory: 950Mi + memory: 1Gi {{- if .Values.global.includeResourceLimits }} limits: memory: 2Gi diff --git a/deploy/helm/thecombine/charts/frontend/templates/deployment-frontend.yaml b/deploy/helm/thecombine/charts/frontend/templates/deployment-frontend.yaml index 739efab059..36e025f392 100644 --- a/deploy/helm/thecombine/charts/frontend/templates/deployment-frontend.yaml +++ b/deploy/helm/thecombine/charts/frontend/templates/deployment-frontend.yaml @@ -77,10 +77,10 @@ spec: resources: requests: cpu: 1m - memory: 15M + memory: 128Mi {{- if .Values.global.includeResourceLimits }} limits: - memory: 40M + memory: 128Mi {{- end }} volumeMounts: - mountPath: /usr/share/nginx/fonts diff --git a/deploy/helm/thecombine/charts/maintenance/templates/cronjob-daily-backup.yaml b/deploy/helm/thecombine/charts/maintenance/templates/cronjob-daily-backup.yaml index e37bd8df77..73b28a0ebf 100644 --- a/deploy/helm/thecombine/charts/maintenance/templates/cronjob-daily-backup.yaml +++ b/deploy/helm/thecombine/charts/maintenance/templates/cronjob-daily-backup.yaml @@ -33,9 +33,9 @@ spec: resources: requests: cpu: 200m - memory: 150M + memory: 128Mi limits: - memory: 150M + memory: 128Mi securityContext: capabilities: {} terminationMessagePath: /dev/termination-log diff --git a/deploy/helm/thecombine/charts/maintenance/templates/cronjob-update-fonts.yaml b/deploy/helm/thecombine/charts/maintenance/templates/cronjob-update-fonts.yaml index 8b306ec0c5..4fa9da913d 100644 --- a/deploy/helm/thecombine/charts/maintenance/templates/cronjob-update-fonts.yaml +++ b/deploy/helm/thecombine/charts/maintenance/templates/cronjob-update-fonts.yaml @@ -30,7 +30,11 @@ spec: - deployment/maintenance - -- - get-fonts.sh - resources: {} + resources: + requests: + memory: 128Mi + limits: + memory: 128Mi securityContext: capabilities: {} terminationMessagePath: /dev/termination-log diff --git a/deploy/helm/thecombine/charts/maintenance/templates/deployment-maintenance.yaml b/deploy/helm/thecombine/charts/maintenance/templates/deployment-maintenance.yaml index 6ffb0a0d5a..33821d5308 100644 --- a/deploy/helm/thecombine/charts/maintenance/templates/deployment-maintenance.yaml +++ b/deploy/helm/thecombine/charts/maintenance/templates/deployment-maintenance.yaml @@ -106,10 +106,10 @@ spec: resources: requests: cpu: 200m - memory: 1200Mi + memory: 1Gi {{- if .Values.global.includeResourceLimits }} limits: - memory: 4Gi + memory: 2Gi {{- end }} volumeMounts: - mountPath: {{ .Values.fontsDir }} diff --git a/deploy/helm/thecombine/charts/maintenance/templates/get-fonts-hook.yaml b/deploy/helm/thecombine/charts/maintenance/templates/get-fonts-hook.yaml index 8ca7f66f48..0327191cfc 100644 --- a/deploy/helm/thecombine/charts/maintenance/templates/get-fonts-hook.yaml +++ b/deploy/helm/thecombine/charts/maintenance/templates/get-fonts-hook.yaml @@ -45,7 +45,11 @@ spec: - {{ $lang | quote }} {{- end }} {{- end }} - resources: {} + resources: + requests: + memory: 128Mi + limits: + memory: 128Mi securityContext: capabilities: {} terminationMessagePath: /dev/termination-log diff --git a/deploy/scripts/build.py b/deploy/scripts/build.py index 8bc1b45860..ef8a086f6c 100755 --- a/deploy/scripts/build.py +++ b/deploy/scripts/build.py @@ -267,18 +267,16 @@ def main() -> None: # Setup required build engine - docker or nerdctl container_cmd = [os.getenv("CONTAINER_CLI", "docker")] - build_cmd = container_cmd - push_cmd = container_cmd match container_cmd[0]: case "nerdctl": if args.debug: container_cmd.append("--debug-full") - build_cmd.extend(["-n", args.namespace, "build"]) - push_cmd.extend(["-n", args.namespace, "push"]) + build_cmd = container_cmd + ["-n", args.namespace, "build"] + push_cmd = container_cmd + ["-n", args.namespace, "push"] case "docker": if args.debug: container_cmd.extend(["-D", "-l", "debug"]) - build_cmd.extend(["buildx", "build"]) + build_cmd = container_cmd + ["buildx", "build"] if args.repo is not None: build_cmd.append("--push") case _: @@ -311,6 +309,7 @@ def main() -> None: job_set: Dict[str, JobQueue] = {} for component in to_do: spec = build_specs[component] + logging.info(f"Starting pre-build for {component}") spec.pre_build() image_name = get_image_name(args.repo, spec.name, args.tag) job_opts = ["-t", image_name, "-f", "Dockerfile", "."] @@ -335,6 +334,7 @@ def main() -> None: time.sleep(5.0) # Run the post_build cleanup functions for component in to_do: + logging.info(f"Starting post-build for {component}") build_specs[component].post_build() # Print job summary if output mode is ALL diff --git a/deploy/scripts/setup_files/collector_config.yaml b/deploy/scripts/setup_files/collector_config.yaml index e9a6cc2562..30e243b965 100644 --- a/deploy/scripts/setup_files/collector_config.yaml +++ b/deploy/scripts/setup_files/collector_config.yaml @@ -56,6 +56,6 @@ useGOMEMLIMIT: true resources: requests: cpu: 25m - memory: 256Mi + memory: 128Mi limits: - memory: 512Mi + memory: 128Mi diff --git a/deploy/scripts/setup_files/combine_config.yaml b/deploy/scripts/setup_files/combine_config.yaml index ca9030bbbe..25755f0e17 100644 --- a/deploy/scripts/setup_files/combine_config.yaml +++ b/deploy/scripts/setup_files/combine_config.yaml @@ -125,9 +125,10 @@ profiles: # Set of charts # The set of charts defines properties for each of the charts listed in the profiles above. -# There are 2 keys for each chart: +# There are 3 keys for each chart: # namespace: the namespace where helm should install the chart. Note that the namespace needs to be # created beforehand +# install_langs: add font support for languages specified beyond the defaults # secrets: a list of secrets that are required for each chart. Each secret contains: # config_item: the name of the configuration value that is referenced in the chart's template files # env_var: the name of the environment variable that holds the value for the config_item. diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 5f2b8a25f9..7e757db4b4 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -182,6 +182,7 @@ "deleteAnalysisLanguage": "Delete this analysis language", "getGlossLanguages": "Find all language codes used in the current data", "updateVernacularLanguageNameFailed": "Failed to update vernacular language name", + "updateVernacularLanguageNameSuccess": "Vernacular language updated!", "addAnalysisLanguageFailed": "Failed to add analysis language", "makeDefaultAnalysisLanguageFailed": "Failed to make default analysis language", "deleteAnalysisLanguageFailed": "Failed to delete analysis language", diff --git a/src/components/ProjectSettings/ProjectLanguages.tsx b/src/components/ProjectSettings/ProjectLanguages.tsx index fff0870d58..f3894436d4 100644 --- a/src/components/ProjectSettings/ProjectLanguages.tsx +++ b/src/components/ProjectSettings/ProjectLanguages.tsx @@ -142,6 +142,7 @@ export default function ProjectLanguages( setAdd(false); setLangsInProj(""); setNewLang(newWritingSystem()); + setChangeVernName(false); }; const updateVernacularName = async (): Promise => { @@ -158,7 +159,12 @@ export default function ProjectLanguages( }; await props .setProject({ ...props.project, vernacularWritingSystem }) - .then(() => resetState()) + .then(() => { + resetState(); + toast.success( + t("projectSettings.language.updateVernacularLanguageNameSuccess") + ); + }) .catch((err) => { console.error(err); toast.error(