From 30c0b8728041d23a25c87e10a95fa5433d2249e0 Mon Sep 17 00:00:00 2001 From: Xstar97 Date: Sat, 22 Oct 2022 16:37:24 -0400 Subject: [PATCH] fix(protonmail-bridge) add installations docs + added imap port. (#4158) * fix(protonmail-bridge) add installations docs + added imap * update ver to v2.3.0 | major upgrade. * cleanup * fix commands in docs Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> --- charts/stable/protonmail-bridge/Chart.yaml | 4 +- .../docs/installation_notes.md | 23 ++++++ .../stable/protonmail-bridge/questions.yaml | 73 +++++++++++++------ charts/stable/protonmail-bridge/values.yaml | 9 ++- 4 files changed, 84 insertions(+), 25 deletions(-) create mode 100644 charts/stable/protonmail-bridge/docs/installation_notes.md diff --git a/charts/stable/protonmail-bridge/Chart.yaml b/charts/stable/protonmail-bridge/Chart.yaml index 5f74909e0ed..a0eadeca7f0 100644 --- a/charts/stable/protonmail-bridge/Chart.yaml +++ b/charts/stable/protonmail-bridge/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 -appVersion: "1.8.10" +appVersion: "2.3.0" dependencies: - name: common repository: https://library-charts.truecharts.org @@ -20,7 +20,7 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/stable/protonmail-bridge - https://github.com/shenxn/protonmail-bridge-docker - https://hub.docker.com/r/shenxn/protonmail-bridge -version: 6.0.37 +version: 7.0.0 annotations: truecharts.org/catagories: | - media diff --git a/charts/stable/protonmail-bridge/docs/installation_notes.md b/charts/stable/protonmail-bridge/docs/installation_notes.md new file mode 100644 index 00000000000..7d91da905d3 --- /dev/null +++ b/charts/stable/protonmail-bridge/docs/installation_notes.md @@ -0,0 +1,23 @@ +# Installation Notes + +- In order to run this chart, you need to be a _paid_ end-user for [proton](https://proton.me/mail/bridge). +- Shell into the app after installing it to complete the login phase. +- Run the following commands in order: + +```terminal +chmod +x entrypoint.sh && ps aux | grep [b]ridge | awk '{print $2}' | xargs -I {} kill -9 {} && ./entrypoint.sh init +``` + +```terminal +login +``` + +- You can then login with your username and password. + +:::tip + +To save time and energy, you can paste the password by holding SHIFT and pressing INSERT. + +Password field is still blank, just hit enter as normal. + +::: diff --git a/charts/stable/protonmail-bridge/questions.yaml b/charts/stable/protonmail-bridge/questions.yaml index f23324fabf2..3342c1153fd 100644 --- a/charts/stable/protonmail-bridge/questions.yaml +++ b/charts/stable/protonmail-bridge/questions.yaml @@ -13,21 +13,21 @@ questions: # Include{containerConfig} # Include{serviceRoot} - variable: main - label: "main Service" - description: "The main service" + label: main Service + description: The main service schema: type: dict hidden: true attrs: - variable: enabled - label: "Enable the service" + label: Enable the service schema: type: boolean default: false hidden: true - variable: smtp - label: "smtp Service" - description: "The smtp service" + label: SMTP Service + description: The smtp service schema: additional_attrs: true type: dict @@ -35,33 +35,62 @@ questions: # Include{serviceSelectorLoadBalancer} # Include{serviceSelectorExtras} - variable: smtp - label: "smtp Service Port Configuration" + label: SMTP Service Port Configuration schema: additional_attrs: true type: dict attrs: - variable: port - label: "Port" - description: "This port exposes the container port on the service" + label: Port + description: This port exposes the container port on the service schema: type: int default: 25 required: true # Include{advancedPortTCP} - variable: targetPort - label: "Target Port" - description: "The internal(!) port on the container the Application runs on" + label: Target Port + description: The internal(!) port on the container the Application runs on schema: type: int default: 25 + - variable: imap + label: IMAP Service + description: The IMAP service + schema: + additional_attrs: true + type: dict + attrs: +# Include{serviceSelectorLoadBalancer} +# Include{serviceSelectorExtras} + - variable: imap + label: IMAP 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: 143 + required: true +# Include{advancedPortTCP} + - variable: targetPort + label: Target Port + description: The internal(!) port on the container the Application runs on + schema: + type: int + default: 143 # Include{serviceExpertRoot} default: false # Include{serviceExpert} # Include{serviceList} # Include{persistenceRoot} - variable: config - label: "App Config Storage" - description: "Stores the Application Configuration." + label: App Config Storage + description: Stores the Application Configuration. schema: additional_attrs: true type: dict @@ -73,42 +102,42 @@ questions: # Include{security} # Include{securityContextAdvancedRoot} - variable: privileged - label: "Privileged mode" + label: Privileged mode schema: type: boolean default: false - variable: readOnlyRootFilesystem - label: "ReadOnly Root Filesystem" + label: ReadOnly Root Filesystem schema: type: boolean default: false - variable: allowPrivilegeEscalation - label: "Allow Privilege Escalation" + label: Allow Privilege Escalation schema: type: boolean default: false - variable: runAsNonRoot - label: "runAsNonRoot" + label: runAsNonRoot schema: type: boolean default: false # Include{securityContextAdvanced} # Include{podSecurityContextRoot} - variable: runAsUser - label: "runAsUser" - description: "The UserID of the user running the application" + label: runAsUser + description: The UserID of the user running the application schema: type: int default: 0 - variable: runAsGroup - label: "runAsGroup" - description: "The groupID this App of the user running the application" + label: runAsGroup + description: The groupID this App of the user running the application schema: type: int default: 0 - variable: fsGroup - label: "fsGroup" - description: "The group that should own ALL storage." + label: fsGroup + description: The group that should own ALL storage. schema: type: int default: 568 diff --git a/charts/stable/protonmail-bridge/values.yaml b/charts/stable/protonmail-bridge/values.yaml index 874c4704267..ff466a0eedd 100644 --- a/charts/stable/protonmail-bridge/values.yaml +++ b/charts/stable/protonmail-bridge/values.yaml @@ -1,6 +1,6 @@ image: repository: tccr.io/truecharts/protonmail-bridge - tag: v1.8.10-1@sha256:58a54002123cc9a83cfb3170deb0a1dbf4cedabdced09a9c6bcafc19ee4b5631 + tag: v2.3.0@sha256:539b1c9188dfccd2bc10efa63e4e009ec8ac131732bcfa0d596c1ca37ba84816 pullPolicy: IfNotPresent securityContext: @@ -24,6 +24,13 @@ service: enabled: true port: 25 targetPort: 25 + imap: + enabled: true + ports: + imap: + enabled: true + port: 143 + targetPort: 143 persistence: config: