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
Ionut Filip
fca3dc4e70
Flushing stream before calling subprocess
2018-11-03 19:34:47 +02:00
Ionut Filip
9a7fc1416a
Replaces os.popen with subprocess.check_output
2018-11-03 19:15:05 +02:00
Daniel Huber
b3ac4465f2
Add docker image prefix
2018-11-03 14:54:17 +01:00
Ionut Filip
982e586e49
Replaced os.system calls with native python calls
2018-11-02 16:25:55 +02:00
Ionut Filip
fd8ed3dfa6
Moved certs copy in travis
2018-11-02 15:17:59 +02:00
Ionut Filip
88f5e6e4cf
Moved users creation in core
2018-11-02 15:05:16 +02:00
Ionut Filip
c3bc7988c9
Implemented email test for travis
2018-11-02 14:27:46 +02:00
Ionut Filip
4e9dc0c3c9
Implemented sending/reading email(local tests)
2018-11-01 11:40:54 +02:00
Tim Möhlmann
ca4804653d
Merge branch 'master' into feat-setup
2018-10-31 20:11:52 +01:00
Tim Möhlmann
a46d0fe581
Fix path for hooks
2018-10-25 18:45:24 +03:00
Tim Möhlmann
35e0fa1b9d
Drop IPv6 for travis
2018-10-25 18:23:42 +03:00
Tim Möhlmann
dde7ccca97
Created test cases from latest setup revision
2018-10-25 17:35:53 +03:00
Tim Möhlmann
72e931f4b4
Modify setup templates to allow for DOCKER_ORG and VERSION override. (Needed for Travis)
2018-10-25 16:35:08 +03:00
Ionut Filip
3b1fdc6166
Migrate test script from shell to python
...
- test.py needs to be called with 2 arguments : test_name and timeout
- it will cd to test_name dir and use the test_name.yml from there
- it will sleep for an amount of time equals to timeout in minutes
- it will perform health checks for containers. If healtcheck isn't enabled will check for running state
- it will run hooks inside the test_name dir ( .py and .sh) if there are any
- printing logs in any case
2018-10-25 15:27:09 +03:00
Tim Möhlmann
238d4e7f20
Provide test cases created with the new setup utility
2018-10-24 12:02:28 +03:00
Tim Möhlmann
12d8872a09
Fix unbound build path
2018-10-23 16:09:59 +03:00
Tim Möhlmann
bcfce27ee2
Standarize unbound, prepare for setup inclusion
...
- Use jinja template for configuration file (start.py)
- Limit access to the Mailu subnet
- Implement health checks
2018-10-23 15:07:49 +03:00
Tim Möhlmann
5b7b29ee3f
Merge remote-tracking branch 'upstream/master' into feat-unbound-dns
2018-10-23 12:16:36 +03:00
mergify[bot]
28a5f8574d
Merge pull request #661 from usrpro/feat-sys-log
...
Option to send front logs to journald or syslog
2018-10-16 18:29:09 +00:00
Tim Möhlmann
f3ebf35c75
Fix autotest
2018-10-16 12:56:12 +03:00
Tim Möhlmann
acbb586e71
Option to send logs to journald or syslog
2018-10-16 12:38:17 +03:00
Tim Möhlmann
3f7e7ca3a6
Use defaults in variables, to allow for local builds
2018-10-15 19:36:37 +03:00
kaiyou
00b5ae11db
Merge branch 'master' into feat-abstract-db
2018-10-10 08:41:56 +02:00
Tim Möhlmann
013d02d726
Add unbound to the build directive
2018-10-09 14:11:59 +03:00
Tim Möhlmann
c316c040c5
Use travis_wait for sleep
2018-10-07 14:08:45 +03:00
Tim Möhlmann
1bbb86eab5
Add autobuild for 'setup'
2018-10-06 20:26:39 +03:00
Tim Möhlmann
5716ca933e
Fix autodeploy after merge with master
2018-10-06 20:24:54 +03:00
Tim Möhlmann
32224202d6
Merge branch 'master' into feat-test-suite-v2
2018-10-06 18:38:34 +03:00
Tim Möhlmann
f7d8f20c87
Move DOCKER_ORG default to travis.yml
2018-10-06 17:24:42 +03:00
Tim Möhlmann
a19e11d552
Clean terminal distortion from docker-compose in travis
2018-10-06 17:06:23 +03:00
Tim Möhlmann
bb6b984610
Exclude fetchmail for the time being. See Mailu/Mailu#412
2018-10-06 16:46:01 +03:00
Tim Möhlmann
39c159bae9
Make the code a bit more DRY. Put sleep back into main loop
2018-10-06 16:34:57 +03:00
Tim Möhlmann
508796eaab
Verbose sleep
2018-10-06 16:25:12 +03:00
Tim Möhlmann
59eb4a5a00
Minor script flow restructure
2018-10-06 16:12:05 +03:00
Tim Möhlmann
42f557ff38
Cleanup containers
2018-10-06 16:03:07 +03:00
Tim Möhlmann
4133bab280
Default to mailu for DOCKER_ORG
2018-10-06 15:52:39 +03:00
Ionut Filip
38db35f1d6
Make docker ps more verbose
2018-10-05 15:04:04 +03:00
Tim Möhlmann
3224a8ecad
Further introduction of the DOCKER_ORG variable
2018-10-05 12:52:19 +03:00
Tim Möhlmann
5987703631
Tavis-ci to upload images to the Docker hub, after succesfull tests.
...
For this to work, the following variables will need to be set at Docker hub:
- DOCKER_ORG first part of docker repo name (example: mailu)
- DOCKER_UN Docker-hub login username (private)
- DOCKER_PW Docker-hub login password (private)
Note that also Docker hub autobuilds will have to be disabled.
2018-10-05 12:18:29 +03:00
Ionut Filip
20f37607bb
Added docker ps and logs
2018-10-05 11:55:01 +03:00
Ionut Filip
71eed72e21
Changed exit condition
2018-10-04 17:58:34 +03:00
Ionut Filip
027b8f36df
Added a check for container status
2018-10-04 17:58:34 +03:00
Ionut Filip
bc70be35c2
Added function to check docker containers
2018-10-04 17:58:34 +03:00
Ionut Filip
645a7f3c96
Removed BIND_ADDRESS6
2018-10-04 17:58:34 +03:00
Ionut Filip
28ebcd5007
Fixed paths to files
2018-10-04 17:58:34 +03:00
Ionut Filip
ebe90fc447
Added run script for travis
2018-10-04 17:58:34 +03:00
Ionut Filip
0067d97f26
Copied docs/compose/.env to tests/compose/core.env
2018-10-04 17:58:34 +03:00
Ionut Filip
5cc5b7c40a
Copied docs/compose/docker-compose.yml to tests/compose/run.yml
...
Edit for test environment
2018-10-04 17:58:34 +03:00
Tim Möhlmann
07af9978e2
Revert "Build the docs during tests"
...
This reverts commit b287a85124
.
2018-10-01 12:06:56 +03:00
Tim Möhlmann
6490a43492
Revert "Attempt to fix the docs build context"
...
This reverts commit 11bcae4c57
.
2018-10-01 12:06:18 +03:00
Tim Möhlmann
11bcae4c57
Attempt to fix the docs build context
2018-09-28 17:28:46 +02:00
kaiyou
b287a85124
Build the docs during tests
2018-09-28 17:28:46 +02:00
kaiyou
339b3c1b24
Build the documentation as a Docker image
2018-09-28 10:41:17 +02:00
Tim Möhlmann
69c19dca55
Attempt to fix the docs build context
2018-09-27 21:45:06 +03:00
kaiyou
82140baa69
Add a very simple test script for sending mails
2018-09-27 07:52:43 +02:00
kaiyou
72cfadd5e8
Build the docs during tests
2018-09-25 21:08:04 +02:00
Tim Möhlmann
f5f8d1d84b
Test-building using travis-ci
2018-09-24 02:23:07 +03:00