1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-12 10:45:38 +02:00
Commit Graph

207 Commits

Author SHA1 Message Date
Florent Daigniere
86637f0259 Make setup use the base image 2022-11-17 14:18:51 +01:00
Florent Daigniere
d7b80e94a4 try again. 2022-11-12 16:21:28 +01:00
Florent Daigniere
7ebac75045 fix tests 2022-11-12 16:11:38 +01:00
Florent Daigniere
b488e57602 debug 2022-11-12 15:39:11 +01:00
Florent Daigniere
4517ce23a6 Aliases be damned. 2022-11-12 15:28:01 +01:00
Florent Daigniere
6d8cc9083b test 2022-11-12 15:21:04 +01:00
Florent Daigniere
729838c8fe Grrr. 2022-11-12 15:12:22 +01:00
Florent Daigniere
1379a58352 Basic hardening 2022-11-12 14:50:30 +01:00
Florent Daigniere
50f94a282f doh 2022-11-12 14:35:17 +01:00
Florent Daigniere
710dde1faf Fix #948: ensure the admin panel is disabled 2022-11-12 14:27:32 +01:00
Florent Daigniere
ae64c6cc30 Doh 2022-11-12 11:51:12 +01:00
Florent Daigniere
13adf4aeec Fix tests 2022-11-12 11:46:59 +01:00
Florent Daigniere
dc9e2a3e70 Upgrade Snappymail to 2.21 and merge the webmail containers 2022-11-12 11:34:58 +01:00
Dimitri Huisman
92f270c94e
Update the webmail images:
Roundcube
  - Switch to base image (alpine)
  - Switch to php-fpm
SnappyMail
  - Switch to base image
  - Upgrade php7 to php8.
2022-11-10 15:51:22 +00:00
bors[bot]
5703e97c73
Merge #2460
2460: Switch to a base image containing base tools and the podop and socrate libs r=mergify[bot] a=ghostwheel42

## What type of PR?

enhancement of build process

## What does this PR do?

Changes build.hcl to build core images using a base image.
Also adds a "assets" base image for the admin container.


Co-authored-by: Alexander Graf <ghostwheel42@users.noreply.github.com>
Co-authored-by: Pierre Jaury <pierre@jaury.eu>
Co-authored-by: kaiyou <pierre@jaury.eu>
Co-authored-by: Dimitri Huisman <52963853+Diman0@users.noreply.github.com>
2022-10-28 15:21:56 +00:00
Vincent Kling
23d06a5761 Fix a bunch of typos 2022-10-19 19:41:49 +02:00
Alexander Graf
5c31120895
Remove obsolete contexts from base image 2022-10-14 14:37:40 +02:00
Alexander Graf
a29f066858
Move even more python deps to base image 2022-10-12 16:32:27 +02:00
Alexander Graf
9fe452e3d1
Use base image when building core images 2022-10-12 16:32:20 +02:00
Dimitri Huisman
3493e9ffa9 Doh! 2022-08-19 20:32:53 +00:00
Dimitri Huisman
867c71ca83 Fix date (deadline) calculation and comparison in test.py 2022-08-19 20:24:07 +00:00
Dimitri Huisman
9339ce78e8 Fix datetime usage in test.py 2022-08-19 18:57:58 +00:00
Florent Daigniere
72b8939ad7 doh 2022-08-19 20:25:34 +02:00
Florent Daigniere
630a23da3c Don't wait for the timeout in the tests
If the containers are ready use them.
2022-08-19 20:04:45 +02:00
Dimitri Huisman
4bb0bd8fb2 Forgot to update snappymail test 2022-08-03 11:45:01 +00:00
Dimitri Huisman
7e21ab4007 Merge master cont'd 2022-08-03 09:48:54 +00:00
Dimitri Huisman
3aafecafe7 Merge branch 'master' into feat-switch-buildx 2022-08-03 09:45:20 +00:00
Dimitri Huisman
f6de2b2938 Switch from docker build to buildx for CI/CD.
- The main workflow file has been optimised and simplified.
- Images are built in parallel when building locally resulting in faster build times.
- The github action workflow is about 50% faster.
- Arm images are built as well. These images are not tested due to restrictions of github actions (no arm runners). The tags of the images have -arm appended to it.
- Arm images can also be built locally.
- Reusable workflow is introduced for building, testing and deploying the images.
  This allows the workflow to be reused for other purposes in the future.
- Workflow can be manually triggered. This allows forked Mailu projects to also use the workflow for building images.
2022-08-03 09:36:53 +00:00
Dimitri Huisman
9519d07ba2 Switch from RainLoop to SnappyMail 2022-03-22 09:04:56 +00:00
Florent Daigniere
8595893af9 doh 2022-01-06 11:37:18 +01:00
Florent Daigniere
0f25075fa3 fix test 2022-01-06 09:40:24 +01:00
Dimitri Huisman
2efad07c0b Merge branch 'master' of github.com:Diman0/Mailu into remove-mailu-postgresql 2021-12-15 10:00:47 +00:00
Dimitri Huisman
04bbd9f515 Fix folder path twice in deploy.sh. 2021-12-05 16:10:55 +00:00
Dimitri Huisman
1eeffe29c0 Remove Mailu PostgreSQL. Make roundcube database configurable via setup. Fix #1838. 2021-12-01 15:59:47 +00:00
Dimitri Huisman
f247520fe5 Forgot to update tests to use PINNED_MAILU_VERSION as tag. 2021-11-19 07:35:08 +00:00
Dimitri Huisman
f7677543c6 Process code review remarks
- Moved run to bottom of Dockerfile to allow using unmodified / cached states.
- Simplified bash code in deploy.sh.
- Improved the large bash one-liner in CI.yml. It could not handle >9 for 1.x.
2021-11-18 17:21:56 +00:00
Dimitri Huisman
56dd70cf4a Implement versioning for CI/CD workflow (see #1182). 2021-11-17 20:00:04 +00:00
Florent Daigniere
265ab7b5af Remove PASSWORD_SCHEME from test envs 2021-10-16 09:31:09 +02:00
Erriez
6b3c208fc9 Update Alpine version from 3.10 to 3.14 2021-08-08 14:50:20 +02:00
Dimitri Huisman
7aa9b496fa Moved logic for building testing images from deploy job to build job. This should save time. Test number for ci workflow #1234 2021-07-05 17:09:48 +00:00
bors[bot]
fc1a663da2
Merge #1754
1754: centralize Webmail authentication behind the admin panel (SSO) r=mergify[bot] a=nextgens

## What type of PR?

Enhancement: it centralizes the authentication of webmails to the admin interface.

## What does this PR do?

It implements the glue required for webmails to do SSO using the admin interface.
One of the main advantages of centralizing things this way is that it reduces significantly the attack surface available to an unauthenticated attacker (no webmail access until there is a valid Flask session).

Others include the ability to implement 2FA down the line and rate-limit things as required.

### Related issue(s)
- #783

## Prerequistes
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [x] In case of feature or enhancement: documentation updated accordingly
- [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/guide.html#changelog) entry file.


Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
2021-06-29 12:32:21 +00:00
Dimitri Huisman
e16e9f19fd Run test jobs in parallel for CI/CD. 2021-06-27 08:54:17 +00:00
bors[bot]
5d1264e381
Merge #1694
1694: update compression algorithms for current dovecot r=nextgens a=lub

## What type of PR?

enhancement

## What does this PR do?

This adds additional compression algorithms in accordance with
https://doc.dovecot.org/configuration_manual/zlib_plugin/

### Related issue(s)

## Prerequistes
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [x] In case of feature or enhancement: documentation updated accordingly
- [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/guide.html#changelog) entry file.


Co-authored-by: lub <git@lubiland.de>
2021-06-26 23:38:35 +00:00
Dimitri Huisman
606c039a6f Switch back to sequential workflow 2021-06-26 21:00:51 +00:00
Dimitri Huisman
54dd4cf224 Added new docker repo for test image. Adapted deploy script to use env var for test repo name. Modified travis references to github actions references in docs. Added changelog entry. 2021-06-26 19:16:56 +00:00
Dimitri Huisman
58235bcc44 Switch to github actions for CI/CD 2021-06-26 08:25:15 +00:00
lub
2316ef1162 update compression algorithms for dovecot 3.3.14
xz is deprecated; lz4 and zstd were not present in our configs before
2021-06-16 14:56:09 +02:00
Florent Daigniere
dd3d03f06d Merge remote-tracking branch 'upstream/master' into webmail-sso 2021-03-10 14:41:12 +01:00
Florent Daigniere
29306d5abb Fix the tests (again) 2021-03-09 12:04:42 +01:00
Florent Daigniere
89d88e0c19 Fix the test 2021-03-09 12:04:42 +01:00
Florent Daigniere
0917a6817f Set ADMIN=false to ensure that the tests pass 2021-02-08 10:17:43 +01:00
lub
98a6ffb497 add compression via xz and lz4 2020-11-21 12:37:08 +01:00
Dario Ernst
1ffc92887a Pin test/build pip-dependencies to their last known versions
Fix current travis docker API-version mismatches … in a crude, but safe
way.
2020-08-11 21:42:56 +02:00
ofthesun9
d5d097eebc docker-compose exec needs a -T flag it no TTY is allocated
This flag is missing in 00_create_users.sh and is failing the tests on travis arm architecture
2020-03-21 13:19:56 +00:00
Tim Möhlmann
4e4b071fb0
Move services into core and optional 2019-10-23 18:27:25 +03:00
bors[bot]
0417c791ff
Merge #985
985: Permit raspberry pi (and other architectures) builds r=mergify[bot] a=abondis

## What type of PR?

Enhancement

## What does this PR do?

Add an option to select base images and permit building for different CPU architectures.

### Related issue(s)
N/A

## Prerequistes

- [X] documentation updated accordingly
- [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/guide.html#changelog) entry file.


Co-authored-by: Aurélien Bondis <aurelien.bondis@gmail.com>
Co-authored-by: Aurelien <aurelien.bondis@gmail.com>
2019-10-20 20:41:03 +00:00
hoellen
d3dd4802f4 Change default password scheme to PBKDF2 (#1194) 2019-10-07 22:29:03 +02:00
Aurélien Bondis
e1a4bf32a6 only insert qemu binary if building for arm 2019-08-23 15:24:21 -04:00
bors[bot]
2785bca1f4
Merge #883
883: Admin create user enhancement r=mergify[bot] a=cr1st1p

## What type of PR?
Enhancement

## What does this PR do?
It allows the admin docker image to also create the admin user.
The idea is that in my kubernetes setup, I do not want to manually do anything, as such, I need a way for the admin user to also be created automatically without me getting inside the pod.
So I had to change the manage.py function that creates the user to allow different 'modes' (me, I'll be using 'ifmissing') and also start.py to call that functionality if appropriate environment variables are present.

So now, in my Deployment, I add 3 more environment variables and I get the admin user created, IF not already present.

### Related issue(s)
none?

## Prerequistes
Before we can consider review and merge, please make sure the following list is done and checked.
If an entry in not applicable, you can check it or remove it from the list.

- [x] In case of feature or enhancement: documentation updated accordingly
- [x] Unless it's docs or a minor change: place entry in the [changelog](CHANGELOG.md), under the latest un-released version.


Co-authored-by: cristi <cristi.posoiu@gmail.com>
Co-authored-by: cr1st1p <cristi.posoiu@gmail.com>
Co-authored-by: Tim Möhlmann <muhlemmer@gmail.com>
2019-08-21 20:58:25 +00:00
Aurélien Bondis
124b1d4c71 rebase and update for 3.10, avoid adding qemu file to x86 images 2019-08-21 12:24:30 -04:00
Aurélien Bondis
a8f55aa73a copy arm qemu 2019-08-21 12:02:35 -04:00
Aurélien Bondis
199b74a144 update comments, add helper script to push local build to rpi 2019-08-21 12:02:24 -04:00
Aurélien Bondis
b711ef82da use edge for radicale 2019-08-21 12:02:24 -04:00
Aurélien Bondis
c0f4126a6c use 3.8 for arm too 2019-08-21 12:02:10 -04:00
Aurélien Bondis
3a10865824 install python for setup image, accept args for build_arm script 2019-08-21 12:02:10 -04:00
Aurélien Bondis
120b07c572 use different alpine image for arm, add config for php images+arm 2019-08-21 12:02:10 -04:00
Aurélien Bondis
572a852e09 script to build arm images 2019-08-21 12:01:51 -04:00
Tim Möhlmann
2a20c1e8ee
Tests for initial admin create 2019-08-21 17:50:14 +03:00
Tim Möhlmann
62b17a0a7b
Revert "Stop building certdumper since it is not supported by traefik anymore"
This reverts commit 0b484a8c2d.
2019-07-25 22:47:36 +03:00
kaiyou
0b484a8c2d Stop building certdumper since it is not supported by traefik anymore 2019-05-07 09:50:51 +02:00
Manuel Vázquez Acosta
6cc6f2742b
Activate ClamAV in filters tests.
See https://github.com/Mailu/Mailu/pull/907#issuecomment-462043036
2019-02-09 10:29:15 -05:00
Tim Möhlmann
33db705194
Use bors-ng to create and upload test images
- Reinstate Travis deploy phase
- Better labeling of Mergify rules
- Automatic `bors try` by Mergify
- Explain bors in comment message
- Skip push for staging branch
- Re-update docs to current situation
2019-01-24 15:23:25 +02:00
Tim Möhlmann
faca9983a8
Automatic creation of review images
- Enable bors-ng for better merging
- Re-enable mergify with a fixed up syntax, it will now only issue bors commands.
- Pull request build images are now pushed to docker hub
- Automatic backport rule
- Fix build tag for branches with slash (/)
- Only push when master and 1.6 target branch
2019-01-23 18:21:48 +02:00
Ionut Filip
f2bc441e9e
Merge pull request #800 from Nebukadneza/add_tests
Add more tests: Auto-Forwarding and Sending to an Alias
2019-01-11 16:07:29 +02:00
Ionut Filip
cb1c90b423
Removed DISABLE_FTS_LUCENE 2019-01-11 15:18:42 +02:00
Ionut Filip
f50e9055c1
Unused imports and bad indentation 2019-01-11 12:57:45 +02:00
Ionut Filip
ebed267c1b
Removed unused imports and fixed indentation 2019-01-11 12:55:47 +02:00
Ionut Filip
6914028e9c
Fix indentation 2019-01-11 12:50:41 +02:00
Ionut Filip
7a85d01f9f
Removed unused imports and fixed indentation 2019-01-11 12:13:52 +02:00
Dario Ernst
bbb24a8863 Add more tests: Auto-forwarding, sending to an alias and auto-reply
Add simple test for auto-reply
2019-01-06 21:47:01 +01:00
Tim Möhlmann
b2823c23b8
Merge remote-tracking branch 'upstream/master' into feat-psql-support 2018-12-31 18:20:39 +02:00
Daniel Huber
16c47faf35
Fix default docker prefix value of traefik certdumper
docker-compose logs a warning if a environment variable is not set and has no default value.
This adds a default string as the default for traefik certdumper which was added in 7c7b52d9.
2018-12-31 12:39:35 +01:00
Daniel Huber
b4f6f6b354
Merge branch 'master' into fix-docker-prefix 2018-12-31 11:54:43 +01:00
Tim Möhlmann
7c7b52d935
Include certdumper in autobuild 2018-12-30 18:46:08 +02:00
Daniel Huber
d357ed67f5
Add DOCKER_PREFIX in tests and setup files 2018-12-21 18:13:08 +01:00
Tim Möhlmann
a5d6acfb96
Use MAILU_VERSION from Travis for Docs build 2018-12-15 21:40:00 +02:00
kaiyou
f6520eace6 Merge branch 'feat-psql-support' of https://github.com/usrpro/Mailu into usrpro-feat-psql-support 2018-12-10 14:50:38 +01:00
Tim Möhlmann
f0906073e3
Merge remote-tracking branch 'upstream/master' into feat-subnet2 2018-12-07 11:08:28 +02:00
Tim Möhlmann
c0972face6
Correct subnetting functionality for the tests and setup 2018-12-06 16:44:12 +02:00
Ionut Filip
35be1710a6
Changed user creation command 2018-12-06 12:36:56 +02:00
Ionut Filip
8acf9451fa
Changed admin and user creation command 2018-12-06 12:34:56 +02:00
Tim Möhlmann
8172f3eab8
Move the Mailu Docker network to a fixed subnet.
This will make network configuration and host based authentication
more robust, across different deployment platforms.
The options `RELAYNETS` and`POD_ADDRESS_RANGE` are kept for compatibility.
However, their usage have become optional.
2018-12-06 12:08:22 +02:00
hoellen
02367d1447
Merge branch 'master' into feat-image-prefix 2018-12-05 19:48:51 +01:00
Tim Möhlmann
d84254ccd8
Update user creation to python3 2018-12-05 16:23:16 +02:00
Ionut Filip
e668d360e8 Changed user creation command 2018-11-23 14:37:55 +02:00
Ionut Filip
ddd4be8f9a Changed admin and user creation command 2018-11-23 14:12:22 +02:00
Tim Möhlmann
79246cf2a3
Create Postgresql image 2018-11-18 18:35:13 +02:00
Tim Möhlmann
eccadeca16
Merge pull request #8 from usrpro/feat-email-test
Feat email test
2018-11-09 12:58:32 +02:00
Ionut Filip
76d9fc3865 Rewrite of email test script and added eicar virus file 2018-11-05 17:28:40 +02:00
Ionut Filip
4032e7128d Calling email test as hook with msg as arg 2018-11-05 12:34:52 +02:00