-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NEW] enable advanced SMTP config #110
Conversation
@yajo some did did'nt pass but It's not due to my commit .. what should I do ? |
smtp_user = $SMTP_USER | ||
smtp_password = $SMTP_PASSWORD | ||
smtp_ssl = $SMTP_SSL | ||
email_from = $EMAIL_FROM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 Does this actually work? Isn't a record in ir.mail.server
required?
cc @pedrobaeza
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will check in my test database .. but think I have no ir.mail.server
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to check this 4 params I just take odoo.conf from https://github.com/odoo/docker/blob/16d5988408434e4678f3bf6318aabad542dec4ee/11.0/odoo.conf.
server and port is working but never really try this 4 params.
Yeah, Travis is sick since recently with #109, dunno why, it started happening suddenly. I'll have to do manual tests instead. Please add docs under development (opening port for mailhog) and testing (using extra routing path from traefik). |
Please rebase and add tests, now that #109 is fixed |
8b58881
to
8a91369
Compare
@Yago: I have to correct travis or this is in your work list ? |
@yajo All green now :) is it ok for you ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 minor details please
8.0.Dockerfile
Outdated
@@ -20,7 +20,13 @@ ONBUILD ARG COMPILE=true | |||
ONBUILD ARG CONFIG_BUILD=true | |||
ONBUILD ARG PIP_INSTALL_ODOO=true | |||
ONBUILD ARG ADMIN_PASSWORD=admin | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
11.0.Dockerfile
Outdated
ONBUILD ARG SMTP_PASSWORD=false | ||
ONBUILD ARG SMTP_SSL=false | ||
ONBUILD ARG EMAIL_FROM="" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
ee5fbe5
to
219b72e
Compare
@yajo ok done :) sorry miss this ! |
219b72e
to
afa9d02
Compare
@@ -36,6 +41,11 @@ ONBUILD ENV ADMIN_PASSWORD="$ADMIN_PASSWORD" \ | |||
PGDATABASE="$PGDATABASE" \ | |||
PROXY_MODE="$PROXY_MODE" \ | |||
SMTP_SERVER="$SMTP_SERVER" \ | |||
SMTP_PORT=$SMTP_PORT \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason why this has no surrounding quotes? I'd put them, just for consistency.
@@ -38,6 +43,11 @@ ONBUILD ENV ADMIN_PASSWORD="$ADMIN_PASSWORD" \ | |||
PGDATABASE="$PGDATABASE" \ | |||
PROXY_MODE="$PROXY_MODE" \ | |||
SMTP_SERVER="$SMTP_SERVER" \ | |||
SMTP_PORT=$SMTP_PORT \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same about quotes.
Apart from those 2 minor details, there's still one thing remaining here: tests. You're adding here the default settings to make work the bundled Wanna try yourself? 😉 |
@yajo yes I will give it a try, but can you merge this one (will open a new for test) because today I need to rebuild my personnal docker all the time there is a change just to add this params. It's up to you, i will work on test next week I think I have some module to end before :) |
Fine, we can wait. I really like the feature, but Doodba is really a very critical piece of software in many companies' production toolchain, I usually don't merge anything without tests, not even my own PRs... Surely you understand 😇 |
afa9d02
to
ae27c11
Compare
I added the test, it was quite simple. |
88af2a1
to
bd4476c
Compare
@yajo try to make ci green but did not understand actual error .. can you help me ? |
bd4476c
to
61e8e14
Compare
It seems the DB was missing, I did a new try. |
61e8e14
to
b75b35c
Compare
I added a new test scaffolding. The dotd one is a little bit crowded and did not require a DB until now. Adding a DB into it clutters it even more, so I guess it's time to have a new one for the settings things. It will help testing #62 too. |
b75b35c
to
d3c0a16
Compare
Use a new scaffolding that makes sure there's a preexisting database.
dd7a4a6
to
2be84ff
Compare
Finally I decided to skip the mail sending part. It's too low level to investigate. Just testing settings are OK should be OK for this project's support surface. Thanks pal! |
Needed by #107