91 次代码提交 (7f20499768c30ca70934a1a8628ad9bd57933875)

作者 SHA1 备注 提交日期
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>
6 年前
Tim Möhlmann 2a20c1e8ee
Tests for initial admin create 6 年前
Tim Möhlmann 62b17a0a7b
Revert "Stop building certdumper since it is not supported by traefik anymore"
This reverts commit 0b484a8c2d.
6 年前
kaiyou 0b484a8c2d Stop building certdumper since it is not supported by traefik anymore 7 年前
Manuel Vázquez Acosta 6cc6f2742b
Activate ClamAV in filters tests.
See https://github.com/Mailu/Mailu/pull/907#issuecomment-462043036
7 年前
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
7 年前
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
7 年前
Ionut Filip f2bc441e9e
Merge pull request #800 from Nebukadneza/add_tests
Add more tests: Auto-Forwarding and Sending to an Alias
7 年前
Ionut Filip cb1c90b423
Removed DISABLE_FTS_LUCENE 7 年前
Ionut Filip f50e9055c1
Unused imports and bad indentation 7 年前
Ionut Filip ebed267c1b
Removed unused imports and fixed indentation 7 年前
Ionut Filip 6914028e9c
Fix indentation 7 年前
Ionut Filip 7a85d01f9f
Removed unused imports and fixed indentation 7 年前
Dario Ernst bbb24a8863 Add more tests: Auto-forwarding, sending to an alias and auto-reply
Add simple test for auto-reply
7 年前
Tim Möhlmann b2823c23b8
Merge remote-tracking branch 'upstream/master' into feat-psql-support 7 年前
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.
7 年前
Daniel Huber b4f6f6b354
Merge branch 'master' into fix-docker-prefix 7 年前
Tim Möhlmann 7c7b52d935
Include certdumper in autobuild 7 年前
Daniel Huber d357ed67f5
Add DOCKER_PREFIX in tests and setup files 7 年前
Tim Möhlmann a5d6acfb96
Use MAILU_VERSION from Travis for Docs build 7 年前
kaiyou f6520eace6 Merge branch 'feat-psql-support' of https://github.com/usrpro/Mailu into usrpro-feat-psql-support 7 年前
Tim Möhlmann f0906073e3
Merge remote-tracking branch 'upstream/master' into feat-subnet2 7 年前
Tim Möhlmann c0972face6
Correct subnetting functionality for the tests and setup 7 年前
Ionut Filip 35be1710a6
Changed user creation command 7 年前
Ionut Filip 8acf9451fa
Changed admin and user creation command 7 年前
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.
7 年前
hoellen 02367d1447
Merge branch 'master' into feat-image-prefix 7 年前
Tim Möhlmann d84254ccd8
Update user creation to python3 7 年前
Ionut Filip e668d360e8 Changed user creation command 7 年前
Ionut Filip ddd4be8f9a Changed admin and user creation command 7 年前
Tim Möhlmann 79246cf2a3
Create Postgresql image 7 年前
Tim Möhlmann eccadeca16
Merge pull request #8 from usrpro/feat-email-test
Feat email test
7 年前
Ionut Filip 76d9fc3865 Rewrite of email test script and added eicar virus file 7 年前
Ionut Filip 4032e7128d Calling email test as hook with msg as arg 7 年前
Ionut Filip fca3dc4e70 Flushing stream before calling subprocess 7 年前
Ionut Filip 9a7fc1416a Replaces os.popen with subprocess.check_output 7 年前
Daniel Huber b3ac4465f2
Add docker image prefix 7 年前
Ionut Filip 982e586e49 Replaced os.system calls with native python calls 7 年前
Ionut Filip fd8ed3dfa6 Moved certs copy in travis 7 年前
Ionut Filip 88f5e6e4cf Moved users creation in core 7 年前
Ionut Filip c3bc7988c9 Implemented email test for travis 7 年前
Ionut Filip 4e9dc0c3c9 Implemented sending/reading email(local tests) 7 年前
Tim Möhlmann ca4804653d
Merge branch 'master' into feat-setup 7 年前
Tim Möhlmann a46d0fe581
Fix path for hooks 7 年前
Tim Möhlmann 35e0fa1b9d
Drop IPv6 for travis 7 年前
Tim Möhlmann dde7ccca97
Created test cases from latest setup revision 7 年前
Tim Möhlmann 72e931f4b4
Modify setup templates to allow for DOCKER_ORG and VERSION override. (Needed for Travis) 7 年前
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
7 年前
Tim Möhlmann 238d4e7f20
Provide test cases created with the new setup utility 7 年前
Tim Möhlmann 12d8872a09
Fix unbound build path 7 年前