77 Commits
next ... master

Author SHA1 Message Date
Julien Valverdé
deb9b88e84 Removed 0.0.0.0 bind patch
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-10 03:47:00 +02:00
Julien Valverdé
988de6e93b Fixed CI event triggers
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-08 02:18:00 +02:00
2f420a0bf9 CI: automatic builds (#1)
All checks were successful
continuous-integration/drone/push Build is passing
Adds CI pipelines to build and push the project to the Gitea Docker repository.

Co-authored-by: Julien Valverdé <julien.valverde@mailo.com>
Reviewed-on: https://git.jvalver.de/Thilawyn/protonmail-bridge-docker/pulls/1
2023-08-08 01:47:06 +02:00
Julien Valverdé
946cd4ea8e Remove the localhost restriction 2023-08-07 19:24:46 +02:00
GitHub Actions
932bc92e2a Bump build version to 3.4.0 2023-08-05 00:13:04 +00:00
GitHub Actions
0ed338435d Bump build version to 3.3.2 2023-07-14 00:15:56 +00:00
GitHub Actions
1b9e896e30 Bump deb version to 3.3.2-1 2023-07-14 00:15:56 +00:00
GitHub Actions
d9fec14796 Bump build version to 3.3.1 2023-07-08 00:16:29 +00:00
GitHub Actions
b6a470849e Bump deb version to 3.3.0-1 2023-06-22 00:14:57 +00:00
GitHub Actions
ddb3df2c7c Bump build version to 3.3.0 2023-06-09 00:17:58 +00:00
GitHub Actions
58cd2eee1d Bump deb version to 3.2.0-1 2023-05-27 00:13:19 +00:00
GitHub Actions
3cbc54a93b Bump build version to 3.2.0 2023-05-16 00:12:45 +00:00
GitHub Actions
868b1a48c6 Bump build version to 3.1.3 2023-05-11 00:12:36 +00:00
GitHub Actions
0419d36658 Bump deb version to 3.1.3-1 2023-05-11 00:12:35 +00:00
Daniel Nathan Gray
67415bd261 Add a docker compose file (#70)
It's quite the norm to include a docker-compose file, generally in the
README or the root for people to copy and modify. For example as
https://github.com/wfg/docker-openvpn-client has done so.

If there are [Environmental
variables](https://github.com/wfg/docker-openvpn-client#environment-variables),
they should also be documented - in this case there isn't.
2023-05-02 14:26:43 +08:00
GitHub Actions
d0e4bcd866 Bump build version to 3.1.2 2023-04-28 00:13:24 +00:00
GitHub Actions
5a0238e8f4 Bump deb version to 3.1.2-1 2023-04-28 00:13:23 +00:00
GitHub Actions
1dff35b541 Bump build version to 3.1.1 2023-04-12 00:12:15 +00:00
GitHub Actions
7790563b9f Bump build version to 3.1.0 2023-04-06 00:12:09 +00:00
GitHub Actions
7c0d8737dc Bump build version to 3.0.21 2023-03-24 00:13:03 +00:00
GitHub Actions
50ac4c2e44 Bump deb version to 3.0.21-1 2023-03-24 00:13:02 +00:00
Aziz Hasanain
b1b6706030 Update Ubuntu tag for deb to fix GLIBC dependency (#80)
GLIBC dependency issue highlighted in
https://github.com/shenxn/protonmail-bridge-docker/issues/79 is caused
by v3 of the bridge not supporting bionic. This PR simply updates the
"deb" version to match the "build" version which is already on
ubuntu:jammy.
2023-03-23 09:13:58 +08:00
GitHub Actions
b0eeddd83d Bump build version to 3.0.20 2023-03-11 00:12:48 +00:00
GitHub Actions
a264602469 Bump deb version to 3.0.20-1 2023-03-11 00:12:47 +00:00
GitHub Actions
6a492a15e7 Bump build version to 3.0.19 2023-03-02 00:15:24 +00:00
GitHub Actions
bb34034cbb Bump deb version to 3.0.19-1 2023-03-02 00:15:23 +00:00
GitHub Actions
109da843e7 Bump build version to 3.0.18 2023-02-25 00:14:35 +00:00
GitHub Actions
b5938721aa Bump deb version to 3.0.17-1 2023-02-23 00:15:10 +00:00
GitHub Actions
dc8590849b Bump build version to 3.0.16 2023-02-18 00:14:05 +00:00
GitHub Actions
8c80cf2d03 Bump build version to 3.0.15 2023-02-15 00:14:54 +00:00
GitHub Actions
e6319a0dda Bump build version to 3.0.14 2023-02-10 00:14:30 +00:00
GitHub Actions
da1b515c2f Bump build version to 3.0.12 2023-02-02 00:13:53 +00:00
GitHub Actions
18626db87f Bump build version to 3.0.10 2023-01-18 00:13:48 +00:00
Daniel Nathan Gray
89b3ef69f4 Rebase on Jammy (#71)
If you're going to build v3 you need to have Jammy, or you will get
glibc errors
2023-01-14 14:56:03 +08:00
GitHub Actions
04a2fae963 Bump build version to 3.0.9 2022-12-21 00:12:33 +00:00
GitHub Actions
bd9addf4f4 Bump build version to 3.0.7 2022-12-17 00:12:20 +00:00
GitHub Actions
c3140a3fa0 Bump build version to 3.0.6 2022-12-08 00:13:17 +00:00
GitHub Actions
51015361c5 Bump build version to 3.0.5 2022-12-06 00:12:45 +00:00
GitHub Actions
0e92386a93 Bump build version to 3.0.4 2022-12-03 00:12:21 +00:00
GitHub Actions
2e3bcdef1f Bump build version to 3.0.2 2022-11-30 00:15:14 +00:00
GitHub Actions
cf1e025209 Bump deb version to 2.3.0-1 2022-11-26 00:13:33 +00:00
GitHub Actions
4dbf2f806e Bump deb version to 2.4.8-1 2022-11-23 00:14:33 +00:00
Xiaonan Shen
712de23988 Add riscv64 support to CI docker builds (#54) 2022-11-21 00:14:03 +08:00
Olof Nord
0541f29d98 Add riscv64 support to docker builds
* Adjust GitHub CI to also build for riscv64
* Update base Ubuntu base for build from 18.04 LTS to 20.04 LTS as to support riscv64
* Minor: Exclude idea IDE files from git
2022-11-20 23:32:58 +08:00
Xiaonan Shen
252397a86d Switch to carlosedp/golang for riscv64 support 2022-11-20 23:12:46 +08:00
GitHub Actions
6a2a413d0a Bump build version to 2.4.8 2022-11-17 00:15:47 +00:00
GitHub Actions
60c8a9ecc4 Bump build version to 2.4.5 2022-11-09 00:16:36 +00:00
Xiaonan Shen
535c80379d Copy bridge executable to the image (fixes #66) 2022-11-05 14:30:33 +08:00
GitHub Actions
acefed1b95 Bump build version to 2.4.3 2022-10-26 00:16:54 +00:00
Xiaonan Shen
6decf657c2 Bump golang to 1.18 2022-10-16 15:04:58 +08:00
Xiaonan Shen
0fa5f9fc13 Fix entrypoint init fail issue 2022-10-16 14:49:38 +08:00
Xiaonan Shen
e0b0ce653c Add .vscode to .gitignore 2022-10-16 14:47:32 +08:00
GitHub Actions
fa4ddf7126 Bump build version to 2.4.0 2022-09-29 00:23:38 +00:00
GitHub Actions
07d3779fc6 Bump deb version to 2.3.0-1 2022-09-09 00:17:44 +00:00
GitHub Actions
2e9d95d90b Bump build version to 2.3.0 2022-09-02 00:15:28 +00:00
GitHub Actions
a8f5c0a096 Bump build version to 2.2.2 2022-07-28 00:15:49 +00:00
GitHub Actions
14cac1052d Bump deb version to 2.2.2-1 2022-07-28 00:15:47 +00:00
GitHub Actions
92b0c5bd5f Bump build version to 2.2.1 2022-07-22 00:16:20 +00:00
Xiaonan Shen
812646acb9 Fix entrypoint so it works correctly on init #57 2022-05-28 12:40:24 +08:00
GitHub Actions
664b5e924d Bump build version to 2.2.0 2022-05-26 00:14:14 +00:00
Nilesh
680e82076e Fix entrypoint so it works correctly on init
Ran into this issue when trying to use in kubernetes via k8s-at-home/protonmail-bridge. Took a bit of figuring out before I realized I had to manually kill the other instance. The only output from the failed load is a dbus issue, and an immediate exit.
2022-05-12 11:31:03 -07:00
GitHub Actions
86e10823e0 Bump deb version to 2.1.3-1 2022-04-28 00:15:49 +00:00
GitHub Actions
22b04d941d Bump build version to 2.1.3 2022-04-12 00:12:24 +00:00
GitHub Actions
4e11382bdb Bump build version to 2.1.2 2022-03-31 00:11:19 +00:00
Rafael Blumberg
ba5d5297dc Add linux/arm/v7 to automate builds
After working around 32bits issues, this PR automate arm/v7 builds
2022-02-26 11:30:47 +08:00
GitHub Actions
758406337f Bump build version to 2.1.1 2022-02-10 00:08:25 +00:00
GitHub Actions
db7f0eb889 Bump deb version to 2.1.1-1 2022-02-10 00:08:25 +00:00
GitHub Actions
d73f3f4a63 Bump deb version to 2.1.0-1 2022-02-04 00:07:28 +00:00
GitHub Actions
683dd16a80 Bump build version to 2.1.0 2022-01-19 00:08:03 +00:00
Rafael Blumberg
75bee435f5 Workaround to compile for 32bit (#40)
* Workaround to compile for 32bit

This is a workaround based on [this
comment](https://github.com/antlr/antlr4/issues/2433#issuecomment-774514106).
It is not a pretty solution but it worked well on my test file.

It runs once to compile, if make fails, then it apply the fix and try
again, this is done so builds that don't need workaround don't use it
and also because the workaround is done on top of downloaded files
during ethe first compilation.

* Update README to remove ARMv7 error comment
2022-01-02 02:41:44 +08:00
GitHub Actions
e7020854f2 Bump build version to 2.0.1 2021-12-16 00:48:19 +00:00
GitHub Actions
1ebd048bf8 Bump deb version to 1.8.12-1 2021-12-07 00:50:09 +00:00
GitHub Actions
a76b7f2725 Bump build version to 1.8.12 2021-12-01 00:49:54 +00:00
GitHub Actions
616e4562a9 Bump build version to 1.8.11 2021-11-19 00:46:26 +00:00
GitHub Actions
0372093a19 Bump deb version to 1.8.10-1 2021-10-14 00:44:23 +00:00
GitHub Actions
a147e41001 Bump build version to 1.8.10 2021-10-07 00:48:28 +00:00
GitHub Actions
c45548e768 Bump deb version to 1.8.9-1 2021-09-14 00:47:48 +00:00
11 changed files with 103 additions and 12 deletions

57
.drone.yml Normal file
View File

@@ -0,0 +1,57 @@
kind: pipeline
type: docker
name: docker-build
steps:
- name: build
image: plugins/docker
settings:
registry: git.jvalver.de
username:
from_secret: username
password:
from_secret: password
repo: git.jvalver.de/thilawyn/protonmail-bridge-docker
dockerfile: build/Dockerfile
dry_run: true
context: build
autotag: true
compress: true
platform: linux/amd64
trigger:
event:
exclude:
- tag
branch:
exclude:
- master
---
kind: pipeline
type: docker
name: docker-build-and-publish
steps:
- name: build-and-publish
image: plugins/docker
settings:
registry: git.jvalver.de
username:
from_secret: username
password:
from_secret: password
repo: git.jvalver.de/thilawyn/protonmail-bridge-docker
dockerfile: build/Dockerfile
context: build
autotag: true
compress: true
platform: linux/amd64
trigger:
event:
exclude:
- pull_request
branch:
- master

View File

@@ -16,7 +16,7 @@ on:
env: env:
DOCKER_REPO: shenxn/protonmail-bridge DOCKER_REPO: shenxn/protonmail-bridge
DOCKER_REPO_DEV: ghcr.io/shenxn/protonmail-bridge-dev DOCKER_REPO_DEV: ghcr.io/shenxn/protonmail-bridge-dev
PLATFORMS: linux/amd64,linux/arm64/v8 PLATFORMS: linux/amd64,linux/arm64/v8,linux/arm/v7,linux/riscv64
jobs: jobs:
build: build:

3
.gitignore vendored
View File

@@ -0,0 +1,3 @@
# Ignoring IDE-specific files
.idea/*
.vscode

View File

@@ -12,10 +12,6 @@ Docker Hub: [https://hub.docker.com/r/shenxn/protonmail-bridge](https://hub.dock
GitHub: [https://github.com/shenxn/protonmail-bridge-docker](https://github.com/shenxn/protonmail-bridge-docker) GitHub: [https://github.com/shenxn/protonmail-bridge-docker](https://github.com/shenxn/protonmail-bridge-docker)
## ARMv7 Builds
Currently there is a problem building the new parser targeting 32-bit architectures (i.e. `arm/v7`). The latest working build is `1.4.5-build`. Therefore, if you are using an `arm/v7` device like Raspberry Pi, do not upgrade to newer version. More information about the problem can be found [here](https://www.reddit.com/r/ProtonMail/comments/jvzm12/issue_building_bridge_150/). If you have any idea on how to fix this, a PR is welcome.
## ARM Support ## ARM Support
We now support ARM devices (`arm64` and `arm/v7`)! Use the images tagged with `build`. See next section for details. We now support ARM devices (`arm64` and `arm/v7`)! Use the images tagged with `build`. See next section for details.
@@ -24,7 +20,7 @@ We now support ARM devices (`arm64` and `arm/v7`)! Use the images tagged with `b
There are two types of images. There are two types of images.
- `deb`: Images based on the official [.deb release](https://protonmail.com/bridge/install). It only supports the `amd64` architecture. - `deb`: Images based on the official [.deb release](https://protonmail.com/bridge/install). It only supports the `amd64` architecture.
- `build`: Images based on the [source code](https://github.com/ProtonMail/proton-bridge). It supports `amd64`, `arm64`, and `arm/v7`. Supporting to more architectures is possible. PRs are welcome. - `build`: Images based on the [source code](https://github.com/ProtonMail/proton-bridge). It supports `amd64`, `arm64`, `arm/v7` and `riscv64`. Supporting to more architectures is possible. PRs are welcome.
tag | description tag | description
-- | -- -- | --

View File

@@ -1,14 +1,14 @@
FROM golang:1.15 AS build FROM golang:1.20-bookworm AS build
# Install dependencies # Install dependencies
RUN apt-get update && apt-get install -y libsecret-1-dev RUN apt-get update && apt-get install -y git build-essential libsecret-1-dev
# Build # Build
WORKDIR /build/ WORKDIR /build/
COPY build.sh VERSION /build/ COPY build.sh VERSION /build/
RUN bash build.sh RUN bash build.sh
FROM ubuntu:bionic FROM ubuntu:jammy
LABEL maintainer="Xiaonan Shen <s@sxn.dev>" LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
EXPOSE 25/tcp EXPOSE 25/tcp
@@ -23,6 +23,7 @@ RUN apt-get update \
COPY gpgparams entrypoint.sh /protonmail/ COPY gpgparams entrypoint.sh /protonmail/
# Copy protonmail # Copy protonmail
COPY --from=build /build/proton-bridge/bridge /protonmail/
COPY --from=build /build/proton-bridge/proton-bridge /protonmail/ COPY --from=build /build/proton-bridge/proton-bridge /protonmail/
ENTRYPOINT ["bash", "/protonmail/entrypoint.sh"] ENTRYPOINT ["bash", "/protonmail/entrypoint.sh"]

View File

@@ -1 +1 @@
1.8.9 3.4.0

View File

@@ -9,5 +9,15 @@ git clone https://github.com/ProtonMail/proton-bridge.git
cd proton-bridge cd proton-bridge
git checkout v$VERSION git checkout v$VERSION
ARCH=$(uname -m)
if [[ $ARCH == "armv7l" ]] ; then
# This is expected to fail, and we use the following patch to fix
make build-nogui || true
# For 32bit architectures, there was a overflow error on the parser
# This is a workaround for this problem found at:
# https://github.com/antlr/antlr4/issues/2433#issuecomment-774514106
find $(go env GOPATH)/pkg/mod/github.com/\!proton\!mail/go-rfc5322*/ -type f -exec sed -i.bak 's/(1<</(int64(1)<</g' {} +
fi
# Build # Build
make build-nogui make build-nogui

View File

@@ -9,6 +9,12 @@ if [[ $1 == init ]]; then
gpg --generate-key --batch /protonmail/gpgparams gpg --generate-key --batch /protonmail/gpgparams
pass init pass-key pass init pass-key
# Kill the other instance as only one can be running at a time.
# This allows users to run entrypoint init inside a running conainter
# which is useful in a k8s environment.
# || true to make sure this would not fail in case there is no running instance.
pkill protonmail-bridge || true
# Login # Login
/protonmail/proton-bridge --cli $@ /protonmail/proton-bridge --cli $@

View File

@@ -1,4 +1,4 @@
FROM ubuntu:bionic FROM ubuntu:jammy
LABEL maintainer="Xiaonan Shen <s@sxn.dev>" LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
EXPOSE 25/tcp EXPOSE 25/tcp

View File

@@ -1 +1 @@
1.8.7-1 3.3.2-1

18
docker-compose.yml Normal file
View File

@@ -0,0 +1,18 @@
version: '2.1'
services:
protonmail-bridge:
image: shenxn/protonmail-bridge
# build:
# context: ./build
# dockerfile: Dockerfile
container_name: pm_bridge
ports:
- 1025:25/tcp
- 1143:143/tcp
restart: unless-stopped
stdin_open: true
tty: true
volumes:
protonmail:
name: protonmail